1. 程式人生 > >flask例項專案釋出到centos-nginx+uWSGI+flask

flask例項專案釋出到centos-nginx+uWSGI+flask



Nginx 一般有兩個版本,分別是穩定版和開發版,您可以根據您的目的來選擇這兩個版本的其中一個,下面是把 Nginx 安裝到 /usr/local/nginx 目錄下的詳細步驟:


cd /usr/local/src
wget http://nginx.org/download/nginx-1.4.2.tar.gz
wget http://nginx.org/download/nginx-1.9.9.tar.gz   
 
tar -zxvf nginx-1.9.9.tar.gz
cd nginx-1.9.9


./configure --sbin-path=/usr/local/nginx/nginx--conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.38 --with-zlib=/usr/local/src/zlib-1.2.8 --with-openssl=/usr/local/src/openssl-1.0.1c
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/nginx --conf-path=/etc/nginx/nginx.conf --with-http_stub_status_module --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fcgi 

make && make install
--with-pcre=/usr/src/pcre-8.34 指的是pcre-8.34 的原始碼路徑。
--with-zlib=/usr/src/zlib-1.2.7 指的是zlib-1.2.7 的原始碼路徑。