问题描述:修改Apache端口为9000,重启报错

# /etc/init.d/httpd start

Starting httpd: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:8885

no listening sockets available, shutting down

Unable to open logs


解决办法1:

安装:

# yum -y install policycoreutils-python

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

解决方法2:

#setenforce 0

重启服务器

启动httpd服务