Homebrew上黄色服务"开始"状态的含义是什么?

Erg*_*gin 46 homebrew

当我尝试brew services list命令时,dnsmasq,nginx状态开始但是黄色.php71和mysql启动并且是绿色的.

以前当我的Mysql状态启动但黄色的Mysql不起作用.

现在我的nginx和dnsmasq状态开始并且黄色但是everthing工作正常.

什么意思开始但黄色书面状态?一切还好还是?

Hus*_*upp 50

不幸的是,黄色意味着状态unknown.不知道为什么它开始说.

我刚刚发现,因为OS X 10.11.6上apache 2.2的状态也是黄色的.不知道它是否真的正常工作.

请参阅自制services listgithub代码 https://github.com/Homebrew/homebrew-services/blob/0ce2f592dc22bce1b4aa2268c6dc416fe131abb2/cmd/brew-services.rb#L165-L177

编辑:更新了代码参考.谢谢@SidOfc(不知道GitHub链接可以突出显示部分)


Ant*_*ito 6

以下步骤可为我解决此问题:

  1. postmaster.pid为您的服务删除文件(即rm /usr/local/var/postgres/postmaster.pid)。

  2. 在自制软件(即brew services restart postgresql)上重新启动服务。

  • 感谢您的评论,这并没有真正回答最初的问题,但对我来说就像一个魅力! (3认同)
  • 对于某些上下文:https://postgresapp.com/documentation/troubleshooting.html#the-data-directory-contains-an-old-postmasterpid-file--the-data-directory-contains-an-unreaded-postmasterpid-file (2认同)

Jas*_*nis 5

我刚刚为 mariadb 解决了这个问题,并通过运行brew reinstall mariadb.

我刚刚安装了新版本的 MAMP,我怀疑 MAMP 的某些内容覆盖了与 mariadb 相关的某些内容。