一、下载:http://nginx.org/en/download.html
二、下载后解压:
三、修改配置文件
修改解压文件夹下conf文件夹内的nginx.conf配置文件
解读:本机监听端口60005,当有socket连接到60005端口时,插件自动转接到127.0.0.1:60000中
将多余的内容删除即可。
四.启动
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确
关闭nginx:
nginx -s stop :快速停止nginx
nginx -s quit :完整有序的停止nginx