nginx 启动及常见错误

Windows 版
备注: 一切命令在解压后的出现 nginx.exe 可执行文件的同级黑窗口操作
1.启动命令: start nginx.exe
2.重启命令: nginx.exe -s reload
3.关闭命令

        (a) 快速关闭: nginx.exe -s stop
        (b)正常关闭 : nginx.exe -s quit (保存信息后停止)

4.版本号的查看: nginx.exe -v

报错问题

  1. The system cannot find the file specified
    当执行重启,或关闭命令报这个错误,报名当前的nginx 根本就没有启动成功,需要查看进程,重新启动

  2. The origin server did not find a current representation for the target resouce
    报这个错误,往往是在启动的时候。这个原因是软件对中文不友好,路径中有中文或者中文符号,防不胜防的就是中文-,中文空格 ,这两个真是让人头大

3.在浏览器访问被拒绝,或者访问路径不对 ?
这个是conf 文件下的 nginx.conf 中没配置好

          a.监听的端口配置错误
          b.默认指向root的代理位置配错
          c.访问时带上代理的位置

猜你喜欢

转载自blog.csdn.net/WindwirdBird/article/details/104739786
今日推荐