标签:mod make usr wsgi log top com uwsgi prefix
yum -y install pcre* openssl*
wget http://nginx.org/download/nginx-???.tar.gz
tar zxf nginx-???.tar.gz
cd nginx-???
./comfigure
---------------------------------------------------------------------------
可以配置
./configure \
--prefix=/usr/local/nginx \
--conf-path=/usr/local/nginx/conf/nginx.conf \
--pid-path=/usr/local/nginx/conf/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi
---------------------------------------------------------------------------
make && make install
whereis nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
服务本地ip即可
-----------------------看看下面3个软件是否通行----------------------------
iptables -F
systemctl stop firewall
selinux
标签:mod make usr wsgi log top com uwsgi prefix
原文地址:https://www.cnblogs.com/Leaders543/p/12360802.html