apache 无法添加端口号

错误信息

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

你可能感兴趣的:(apache)