【问题标题】:the "user" directive makes sense only if the master process runs with super-user privileges只有当主进程以超级用户权限运行时,“user”指令才有意义
【发布时间】:2019-01-18 00:17:11
【问题描述】:

我必须在我的项目中删除本地计算机上的一个文件夹(因为 git 文件损坏)并重新 git 克隆它(成功)。 它运行在 MAMP 的 NGINX 服务器上。

现在,当我尝试在浏览器中打开项目的主页并得到“HTTP ERROR 500”时。

/Applications/MAMP/logs/nginx_error.log:

2018/06/08 18:58:29 [警告] 3218#0:“用户”指令有意义 仅当主进程以超级用户权限运行时,在 /Applications/MAMP/conf/nginx/nginx.conf:7

/Applications/MAMP/conf/nginx/nginx.conf:7:

user                         sergeyfomin staff;

(sergeyfomin 是我在 Mac 上的用户名)

我猜这与我需要在 git 克隆后重新设置我的项目的用户权限有关?

不胜感激。

【问题讨论】:

    标签: nginx mamp


    【解决方案1】:

    500 错误和日志警告可能无关,因为警告说它只是忽略了指令。您可能不得不在其他地方挖掘原因。

    【讨论】:

    • 谢谢!是的,我刚刚检查了 /Applications/MAMP/logs/php_error.log - 并且有“[10-Aug-2018 13:44:32 Europe/Berlin] PHP Fatal error: require(): Failed opening required '/Users/ sergeyfomin/code/first/vendor/composer/../psy/psysh/src/Psy/functions.php' (include_path='.:/Applications/MAMP/bin/php/php7.0.27/lib/php') 在/Users/sergeyfomin/code/first/vendor/composer/autoload_real.php 在第 66 行"
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-07
    • 1970-01-01
    • 2023-04-06
    • 2021-02-03
    • 2014-08-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多