码迷,mamicode.com
首页 > 其他好文 > 详细

nginx

时间:2020-02-25 12:48:35      阅读:73      评论:0      收藏:0      [点我收藏+]

标签: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 

 

nginx

标签:mod   make   usr   wsgi   log   top   com   uwsgi   prefix   

原文地址:https://www.cnblogs.com/Leaders543/p/12360802.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!