gpt4 book ai didi

apache - AH00072: make_sock: 无法绑定(bind)到地址 [::]:80 (13)权限被拒绝

转载 作者:行者123 更新时间:2023-12-01 07:24:40 37 4
gpt4 key购买 nike

升级到 macOS Sierra 后我的 apache 没有启动。

apache 的去向 error_log :

AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist

AH00112: Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist

AH00557: httpd: apr_sockaddr_info_get() failed for username.local

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message (13)Permission denied:

AH00072: make_sock: could not bind to address [::]:80 (13)Permission denied:

AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down*

我已经按照这些说明操作但没有成功: http://digitalshore.io/local-web-development-environment-apache-macos-sierra-10-12/

最佳答案

对于前 2 条评论虚拟主机设置

httpd-vhosts.conf



对于 3,4 取消注释 ServerName 并在

httpd.conf

ex: ServerName local_server:80



并在/etc/hosts 中添加相同的值以通过服务器名称访问。

5,6 因为端口 80 被其他应用程序使用

sudo lsof -i:80

关于apache - AH00072: make_sock: 无法绑定(bind)到地址 [::]:80 (13)权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39735175/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com