centos6 nginx1.16.0 反向代理 編譯安裝

centos6.10
yum -y install gcc-c++
yum -y install pcre pcre-devel
yum -y install openssl openssl-devel

cd /usr/local/src/
wget http://nginx.org/download/nginx-1.16.0.tar.gz
tar zxvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --user=nginx --with-http_ssl_module --with-http_gzip_static_module --http-client-body-temp-path=/usr/local/nginx/client/ --http-proxy-temp-path=/usr/local/nginx/proxy/ --http-fastcgi-temp-path=/usr/local/nginx/fcgi/ --with-pcre
make && make install

測試
/usr/local/nginx/sbin/nginx -v
/usr/local/nginx/sbin/nginx
netstat -ntlp |grep 80

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章