Nginx配置

源码安装 

yum -y install pcre-devel zlib-devel openssl-devel gcc wget    
useradd nginx -s /sbin/nologin -M   
wget http://nginx.org/download/nginx-1.10.3.tar.gz        
tar -xzf nginx-1.10.3.tar.gz 
cd nginx-1.10.3
./configure  --prefix=/usr/local/nginx/  --user=nginx  --group=nginx \
--with-http_ssl_module  --with-http_stub_status_module 
echo $?                                         
make && make install
echo $? 
ln -s /usr/local/nginx/sbin/nginx  /usr/sbin/
cd /usr/local/nginx 
egrep -v '^$|#' conf/nginx.conf.default > conf/nginx.conf    

 

posted @ 2018-07-27 13:07  Testder探索者  阅读(191)  评论(0编辑  收藏  举报