nginx在windows命令行下重启报错的问题 - Go语言中文社区

nginx在windows命令行下重启报错的问题


假设在windows上输入如下命令:

E:mywampapache2.2bin>E:mywampnginx-1.6.2nginx.exe -s reload

那么输入结果就是这样的:

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified) 2015/01/26 22:07:10 [emerg] 5164#5196: CreateFile() "E:mywampapache2.2bin/conf/nginx.conf" failed (3: The system cannot find the path specified)

解决方法就是首先cd到目录E:mywampapache2.2bin>E:mywampnginx-1.6.2,然后运行nginx -s reload,感觉这样太麻烦了,求教有没有更简单的方法。

转载于:https://my.oschina.net/liting/blog/541187

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_33725272/article/details/91821972
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-06 22:07:56
  • 阅读 ( 1382 )
  • 分类:Go Web框架

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢