可以在MacOS上与自制的php重新启动php

发布于 2025-02-13 02:18:01 字数 778 浏览 1 评论 0原文

我通过按照官方网站的说明成功安装了自制( 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

临走之时 2025-02-20 02:18:01

命令重新启动我的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

深海蓝天 2025-02-20 02:18:01

编辑:通过在仍在错误的用户下运行的子目录上使用“ chown”来解决。

Edit: Solved by using 'chown' on a sub directory that was still running under the wrong user.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文