1、下载
http://nginx.org/en/download.html
2、运行
解压缩nginx压缩包,cmd切换到解压目录执行
代码语言:javascript复制start nginx
接着执行以下命令
代码语言:javascript复制tasklist /fi "imagename eq nginx.exe"
安装成功,浏览器输入http://localhost/ 注意默认80端口,确保本机80端口未被占用.
3、其余操作指令
代码语言:javascript复制nginx -s stop fast shutdown
nginx -s quit graceful shutdown
nginx -s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
nginx -s reopen re-opening log files