1.Nginx默认的端口是80
2.cd /usr/local
3.mkdir nginx
4.cd nginx
5.wget http://nginx.org/download/nginx-1.13.7.tar.gz
6.tar -xvf nginx-1.13.7.tar.gz
7.cd /usr/local/nginx
8.cd nginx-1.13.7
9./configure
10.make
11.make install
12./usr/local/nginx/sbin/nginx -s reload 如遇到报错执行 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
13.启动./nginx
14.关闭./nginx -s stop
15.重启./nginx -s reload
16.ps -ef | grep nginx
17.在location 配置项中增加 proxy_pass http://127.0.0.1:8080; 反省代理设置即可