Nginx for windows 安装部署

1、下载

http://nginx.org/en/download.html

 

2、运行

解压缩nginx压缩包,cmd切换到解压目录执行

start nginx

接着执行以下命令

tasklist /fi "imagename eq nginx.exe"

 

 安装成功,浏览器输入http://localhost/   注意默认80端口,确保本机80端口未被占用.

 3、其余操作指令

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

 

posted @ 2022-09-22 11:06  郑小超  阅读(408)  评论(0编辑  收藏  举报