我希望在名为app_user的用户下运行apache。为此,我在httpd.conf文件中更改了以下内容
User app_user
Group app_userapp_user是此服务器上的有效用户和组。
app_user具有在/var/log/httpd目录中写入的正确权限。
现在,当我启动apache时,它会给出这个错误。
[app_user@localhost conf]$ service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]感谢你在这方面的帮助。
发布于 2015-04-06 04:04:42
发布于 2019-02-21 15:16:58
Root应该启动apache进程来绑定较低的端口,但是,如果您想对子进程使用不同的用户/组,可以通过APACHE_RUN_USER和APACHE_RUN_GROUP环境变量进行配置。请检查/etc/apache2/apache2.conf:
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}https://stackoverflow.com/questions/29464707
复制相似问题