一、安装
链接:http://www.nginx.cn/install
sudo ./configure –sbin-path=/usr/local/nginx/nginx
–conf-path=/usr/local/nginx/nginx.conf
–pid-path=/usr/local/nginx/nginx.pid
–with-http_ssl_module
–with-pcre=/usr/local/src/pcre-8.37
–with-zlib=/usr/local/src/zlib-1.2.8
–with-openssl=/usr/local/src/openssl-1.0.2c
–with-http_realip_module
–add-module=/usr/local/src/echo-nginx-module-0.57
&& sudo make && sudo make install
二、启动
1.nginx -t -c