linux apache报Permission denied: make_sock: could not bind to address

在apache中绑定非http标准端口时,出现错误提示:
Starting httpd: Permission denied: make_sock: could not bind to address 0.0.0.0:89
no listening sockets available, shutting down
Unable to open logs
解决方法:
增加selinux中http的端口
semanage port -l|grep http #查看SELinux下http相关端口

semanage port -a -t http_port_t -p tcp 89 #增加89这个非标准端口即可

重启apache [root@localhost ~]# /etc/init.d/httpd restart 或者 service httpd start

你可能感兴趣的:(Linix,Apache,Mysql)