zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Nginx for windows 安装部署

2023-09-11 14:21:52 时间

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