Nginx for windows 安装部署

2022-09-23 18:45:31 浏览数 (1)

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

0 人点赞