【发布时间】:2016-04-24 15:05:12
【问题描述】:
我正在尝试在同一 IP 地址的不同端口上配置两个站点。
(13)Permission denied: make_sock: could not bind to address [::]:9000
我收到错误消息。这个错误的原因是什么以及如何解决这个错误?
我的httpd.conf 文件是
Listen 80
NameVirtualHost 192.168.2.10:80
<VirtualHost 192.168.2.10:80>
DocumentRoot /var/www/html/white-socks
ServerName www.white-socks.com
</VirtualHost>
Listen 9000
NameVirtualHost 192.168.2.10:9000
<VirtualHost 192.168.2.10:9000>
DocumentRoot /var/www/html/black-socks
ServerName www.black-socks.com
</VirtualHost>
我收到如下错误。
[root@ram conf]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for ram
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:9000
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:9000
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@ram conf]#
我该怎么做才能解决这个问题?
【问题讨论】:
-
阅读bind(2)
标签: apache webserver httpd.conf