macos - mac osx中的Nginx重新加载错误

标签 macos nginx

问候,
我有一台服务器安装了 nginx 流
我确实停止了 nginx,然后确实重新加载了它,但它显示以下错误并且没有启动:

nginx -s stop 
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No     such file or directory) 

我做了下面的命令,什么也没做:
sudo nginx 
nginx: [emerg] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)

我该如何解决?
谁能给我 PID 文件内容,以便我可以创建它(假)。

感谢您的帮助。

最佳答案

我通过删除 nginx.pid 来修复它在 /usr/local/var/run然后使用 brew services start nginx

关于macos - mac osx中的Nginx重新加载错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39018388/

相关文章:

c++ - 使用 cocoa 框架的 node.js 插件

nginx - 需要澄清 nginx 和负载平衡

ubuntu - 可以普遍执行严格的运输安全吗?

regex - 如何在 unix (osx) 中搜索/替换一堆文本文件

ios - 了解具有 self 属性的变异函数

c++ - 无法在 mac 上构建 google protocol buffers 教程

node.js - Nodejs从Nginx获取请求头

django - nginx+fastcgi --> 未处理的异常(从 Django 1.2.4 升级到 Django 1.3 后)

phpMyAdmin "Cannot log in to the MySQL server"与 PHP 7.0.0 RC7

macos - 为什么我在 MacOS 中收到 Screen is terminating 错误