1.下载nginx;

2.进入nginx.exe目录,双击运行;

3.cmd 启动nginx

4.常用命令

nginx 的使用:


start nginx
检查nginx是否启动成功: http://localhost:80
检查nginx是否启动成功:tasklist /fi "imagename eq nginx.exe"
检查80端口是否被占用的命令是: netstat -ano | findstr 0.0.0.0:80 或 netstat -ano | findstr "80"
修改了nginx的配置文件:nginx -s reload
nginx -s stop(快速停止nginx) 或 nginx -s quit(完整有序的停止nginx)
关闭:taskkill /f /t /im nginx.exe


5.nginx.config配置文件:
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root D:\Project\zzz.WebUI;
index index.html index.htm;
}

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-06-21
  • 2021-06-29
  • 2022-12-23
  • 2021-12-15
  • 2021-11-27
  • 2021-11-17
猜你喜欢
  • 2021-07-12
  • 2021-12-26
  • 2022-12-23
  • 2023-03-07
  • 2021-11-30
  • 2021-10-04
  • 2021-12-21
相关资源
相似解决方案