Skip to content
Browse files

fix gevent dev

  • Loading branch information...
1 parent db565ba commit 3377905a9c6614d845498c70859c0fa26b45553b @fyears committed Apr 19, 2012
Showing with 17 additions and 11 deletions.
  1. +10 −6 install_nginx.sh
  2. +3 −3 install_uwsgi.sh
  3. +4 −2 upgrade_nginx.sh
View
16 install_nginx.sh
@@ -64,12 +64,11 @@ date
apt-get update
apt-get autoremove -y
-#apt-get -fy install
-#apt-get install -y build-essential gcc g++ make
-#for packages in build-essential gcc g++ make automake autoconf re2c wget cron bzip2 libzip-dev libc6-dev file rcconf flex vim nano bison m4 gawk less make cpp binutils diffutils unzip tar bzip2 libbz2-dev unrar p7zip libncurses5-dev libncurses5 libncurses5-dev libncurses5-dev libtool libevent-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlibc openssl libsasl2-dev libxml2 libxml2-dev libltdl3-dev libltdl-dev libmcrypt-dev libmysqlclient15-dev zlib1g zlib1g-dev libbz2-1.0 libbz2-dev libglib2.0-0 libglib2.0-dev libpng3 libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev libjpeg-dev libpng-dev libpng12-0 libpng12-dev curl libcurl3 libmhash2 libmhash-dev libpq-dev libpq5 gettext libncurses5-dev libcurl4-gnutls-dev libjpeg-dev libpng12-dev libxml2-dev zlib1g-dev libfreetype6 libfreetype6-dev libssl-dev libcurl3 libcurl4-openssl-dev libcurl4-gnutls-dev mcrypt;
-#do apt-get install -y $packages --force-yes;apt-get -fy install;apt-get -y autoremove; done
+apt-get -fy install
+apt-get install -y build-essential gcc g++ make git-core
+for packages in build-essential gcc g++ make automake autoconf re2c wget cron bzip2 libzip-dev libc6-dev file rcconf flex vim nano bison m4 gawk less make cpp binutils diffutils unzip tar bzip2 libbz2-dev unrar p7zip libncurses5-dev libncurses5 libncurses5-dev libncurses5-dev libtool libevent-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlibc openssl libsasl2-dev libxml2 libxml2-dev libltdl3-dev libltdl-dev libmcrypt-dev libmysqlclient15-dev zlib1g zlib1g-dev libbz2-1.0 libbz2-dev libglib2.0-0 libglib2.0-dev libpng3 libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev libjpeg-dev libpng-dev libpng12-0 libpng12-dev curl libcurl3 libmhash2 libmhash-dev libpq-dev libpq5 gettext libncurses5-dev libcurl4-gnutls-dev libjpeg-dev libpng12-dev libxml2-dev zlib1g-dev libfreetype6 libfreetype6-dev libssl-dev libcurl3 libcurl4-openssl-dev libcurl4-gnutls-dev mcrypt libssl-dev libpcre3-dev git-core;
+do apt-get install -y $packages --force-yes;apt-get -fy install;apt-get -y autoremove; done
-apt-get install -y libpcre3-dev build-essential libssl-dev
echo "============================check files=================================="
@@ -168,6 +167,10 @@ chown -R www:www /home/wwwroot
rm -f /usr/local/php/etc/php-fpm.conf
cp conf/php-fpm.conf /usr/local/php/etc/php-fpm.conf
+# tcp-patch
+cd $cur_dir
+git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git
+
# nginx
cd $cur_dir
tar zxvf pcre-8.30.tar.gz
@@ -178,7 +181,8 @@ cd ../
tar zxvf nginx-1.0.14.tar.gz
cd nginx-1.0.14/
-./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6
+patch -p1 < ../nginx_tcp_proxy_module/tcp.patch
+./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=../nginx_tcp_proxy_module/
make && make install
cd ../
View
6 install_uwsgi.sh
@@ -42,8 +42,7 @@ if [ "$1" != "--help" ]; then
echo "Press any key to start..."
char=`get_char`
-apt-get update
-
+apt-get remove -y python-pip python-setuptools
apt-get update
apt-get autoremove -y
@@ -58,7 +57,8 @@ echo "========================== uwsgi install ==============================="
#groupadd www
#useradd -s /sbin/nologin -g www www
UWSGI_PROFILE=gevent pip install -U uwsgi
-pip install -U http://www.gevent.org/dist/gevent-1.0dev.tar.gz # to support uwsgi
+pip install -U http://www.gevent.org/dist/gevent-1.0b2.tar.gz#md5=dead736753e6d0c780e1295915d9f5b1 # to support uwsgi
+pip install -U gevent-websocket gevent-socketio
mkdir -p /home/pyconf/uwsgiconf
chown -R www:www /home/pyconf/uwsgiconf
View
6 upgrade_nginx.sh
@@ -71,10 +71,12 @@ if [ -s nginx-$nginx_version.tar.gz ]; then
fi
echo "============================check files=================================="
rm -rf nginx-$nginx_version/
-
+rm -rf nginx_tcp_proxy_module/
tar zxvf nginx-$nginx_version.tar.gz
+git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git
cd nginx-$nginx_version/
-./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6
+patch -p1 < ../nginx_tcp_proxy_module/tcp.patch
+./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=../nginx_tcp_proxy_module/
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old

0 comments on commit 3377905

Please sign in to comment.
Something went wrong with that request. Please try again.