可以在MacOS上与自制的php重新启动php
我通过按照官方网站的说明成功安装了自制( https://brew.sh/ )。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
它是在 /opt /hommbrew下安装的 然后,我确实使用brew install [email  procectived] /代码>
如果我使用brew Services重新启动PHP,重新启动PHP
我会收到以下错误消息:
Permission denied @ rb_sysopen - /Users/USER/Library/LaunchAgents/homebrew.mxcl.php.plist
我使用MACOS Monterey 12.4
使用Sudo重新启动PHP会导致警告:
警告:必须在用户登录时以非root的方式运行PHP!
有人对如何解决此问题有想法吗?
I successfully installed homebrew by following the instructions of the official website (https://brew.sh/).
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
It was installed under /opt/homebrew
I then did install php with brew install [email protected]
If I restart php with brew services restart php
I get the following error message:
Permission denied @ rb_sysopen - /Users/USER/Library/LaunchAgents/homebrew.mxcl.php.plist
I use macOS Monterey 12.4
Using sudo to restart php results in the warning:
Warning: php must be run as non-root to start at user login!
Does anybody have an idea on how to solve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
命令重新启动我的php-fpm:
brew Services重新启动 a>
如果您没有酿造服务,请尝试这样安装:
brew tap Homebrew/Services
Command to restart my php-fpm:
brew services restart [email protected]
If you don't have brew services, try installing it like this:
brew tap homebrew/services
编辑:通过在仍在错误的用户下运行的子目录上使用“ chown”来解决。
Edit: Solved by using 'chown' on a sub directory that was still running under the wrong user.