我在Ubuntu 12.04上手动安装了nginx。当我运行./configure
时,我使用了以下选项:
./configure --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module
现在,nginx工作进程在www-data组中的www-data用户下运行。但是,我希望将其更改为另一个用户(在我的示例中名为nginx )。
在已经运行了make
和make install
之后,这是可能的吗?
任何帮助都将不胜感激。
发布于 2014-06-25 08:38:53
如果您使用PHP5-FPM并在重启nginx后出现502错误,请查看/var/run/php5-fpm.sock (Debian):
root@ns353941:/var/run# chown nginx:www php5-fpm.sock
在我的例子中:
nginx =新nginx用户
www = web组
显然,nginx用户属于www。
https://stackoverflow.com/questions/18004018
复制相似问题