全部博文(57)
分类: LINUX
2013-05-30 21:03:20
先更新系统,并安装编译环境等等。
二、编译安装uwsgi
uwsgi的官方网站是
,这里我们下载它的当前稳定版本。
wget
tar -avxf uwsgi-1.9.11.tar.gz
tar -zvxf uwsgi-1.9.11.tar.gz
cd uwsgi-1.9.11
python setup.py build
make
cp uwsgi /usr/bin/
三、编译安装nginx
wget
wget
wget
wget
wget
patch nginx_upload_module-2.0.12/ngx_http_upload_module.c ngx_http_upload_module.c.patch
tar zxvf nginx-1.0.15.tar.gz
cd nginx-1.0.15
./configure --prefix=/usr/local/nginx-1.0.15 --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module --with-http_realip_module --with-openssl=../openssl-1.0.1c --with-pcre=../pcre-8.10 --add-module=../nginx_upload_module-2.0.12 --add-module=../ngx_cache_purge-1.3 --with-http_secure_link_module
make && make install
ln -s /usr/local/nginx-1.0.15/sbin/nginx /usr/bin/nginx
ln -s /usr/local/nginx-1.0.15/sbin/nginx /usr/sbin/nginx
ln -s /usr/local/nginx-1.0.15/sbin/nginx /usr/local/sbin/nginx
cd ..
cp nginx /etc/init.d/
chmod +x /etc/init.d/nginx