linux apache端口更改错误 (13)Permission denied: make_sock: could not bind to address[

问题:linux apache端口更改错误 

 

[root@localhost ~]# apachectl -k start
(13)Permission denied: make_sock: could not bind to address [::]:1988
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:1988
no listening sockets available, shutting down
Unable to open logs
 

解决方案:

[root@localhost ~]# semanage port -l|grep http 
http_cache_port_t              tcp      8080, 8118, 10001-10010
http_cache_port_t              udp      3130
http_port_t                    tcp      81, 80, 443, 488, 8008, 8009, 8443
pegasus_http_port_t            tcp      5988
pegasus_https_port_t           tcp      5989
[root@localhost ~]# semanage port -a -t http_port_t -p tcp 1988
[root@localhost ~]# apachectl -k start
[root@localhost ~]# 

  成功访问界面如附件所示:

 

你可能感兴趣的:(apache)