Install Nginx Manually.

How to install Nginx Manually
1.0 Configure C/C++ compile ENV
apt-get install build-essential
yum groupinstall “Development Tools”
cd [Deploy folder]

1.1 PCRE 8.36 (setup_package\server\pcre-8.36.tar.gz)
cd package\setup_package\server
tar zxf pcre-8.36.tar.gz
cd pcre-8.36
./configure –prefix=/usr/local/pcre-8.36
cd ..

1.2 zlib 1.2.8 (setup_package\server\zlib-1.2.8.tar.gz)
tar zxf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure –prefix=/usr/local/zlib-1.2.8
cd ..

1.3 openssl-1.0.2 (setup_package\server\openssl-1.0.2.tar.gz)
tar zxf openssl-1.0.2.tar.gz

1.3 Nginx 1.6.2 (setup_package\server\nginx-1.6.2.tar.gz) reference: http://nginx.org/en/docs/configure.html
tar zxf nginx-1.6.2.tar.gz
cd nginx-1.6.2
./configure –prefix=/usr/local/nginx-1.6.2 –with-pcre=../pcre-8.36 –with-zlib=../zlib-1.2.8 //–with-openssl=../openssl-1.0.2
make
make install
cd ..

1.4 python-dev, python-pip, libssl-dev
apt-get install python-dev python-pip libssl-dev
pip install psutil lxml

1.5 uWSGI 2.0.8 (setup_package\server\uwsgi-2.0.9.tar.gz)
https://uwsgi-docs.readthedocs.org/en/latest/Install.html
tar zxf uwsgi-2.0.9.tar.gz
cd uwsgi-2.0.9
make
cd ..

1.6 Flask 0.10.1 (setup_package\server\Flask-0.10.1.tar.gz)
tar zxf Flask-0.10.1.tar.gz
cd Flask-0.10.1
python setup.py install

1.6 python-mysqldb
apt-get install python-mysqldb

1.7 install mysqld
apt-get install mysql-server

—————————————-
The Nginx files:
nginx path prefix: “/usr/local/nginx-1.8.0″
nginx binary file: “/usr/local/nginx-1.8.0/sbin/nginx”
nginx configuration prefix: “/usr/local/nginx-1.8.0/conf”
nginx configuration file: “/usr/local/nginx-1.8.0/conf/nginx.conf”
nginx pid file: “/usr/local/nginx-1.8.0/logs/nginx.pid”
nginx error log file: “/usr/local/nginx-1.8.0/logs/error.log”
nginx http access log file: “/usr/local/nginx-1.8.0/logs/access.log”
nginx http client request body temporary files: “client_body_temp”
nginx http proxy temporary files: “proxy_temp”
nginx http fastcgi temporary files: “fastcgi_temp”
nginx http uwsgi temporary files: “uwsgi_temp”
nginx http scgi temporary files: “scgi_temp”
——————————————-
About the configure of Nginx and uWSGI please refer to :
http://my.oschina.net/jk409/blog/366084
http://www.cnblogs.com/xiaogangqq123/archive/2011/03/02/1969006.html

发布者

690130229

coder,喜欢安静,喜欢读书,wechat: leslie-liya

发表评论