现在的位置: 首页 > 综合 > 正文

apache 无法添加端口号

2012年11月21日 ⁄ 综合 ⁄ 共 436字 ⁄ 字号 评论关闭

错误信息

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[Fri Mar 08 16:28:42 2013] [warn] NameVirtualHost *:7002 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address [::]:7002
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:7002
no listening sockets available, shutting down
Unable to open logs

解决办法

#semanage port -l | grep http
#semanage port -a -t http_port_t -p tcp 7002

抱歉!评论已关闭.