nginx
Posted leaders543
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章