If selinux is not disabled, httpd cannot use non-80 or other default ports. In this case, the httpd port is changed to 9080, and the following prompt is displayed: [root @ haifeng ~] # Service httpd startStarting httpd: (13) Permission denied: make_sock: cocould not bind to address [::]: 9080 (13) Permission denied: make_sock: cocould not bind to address 0.0.0.0: 9080no listening sockets available, shutting downUnable to open logs [FAILED] solution: 1. Disable selinux by using setenforce 0 first. 2. Disable selinux in the configuration file/etc/selinux/config and/etc/sysconfig/selinux. the restart will take effect later. Tip: 1. Check whether port 9080 is occupied by other programs # netstat-anpt | grep 9080, not occupied. 2. Check the permission, 3. Check the selinux status # If the getenforce status is Enforcing, the configuration may not take effect. The configuration in/etc/sysconfig/selinux is disabled, and the configuration in/etc/selinux/config is disabled. Note: getenforce/setenforce view and set the current working mode of SELinux