http的监听端口为80,为了集群安全,修改http的监听端口。修改http.conf中的监听端口为8010,启动报错。
1.“msg”:”Aborting, target uses selinux but python bindings (libselinux-python) aren’t installed!”
解决办法:
[root@lisery01 cm]# yum install libselinux-python
2.继续执行仍然报错:”msg”: “Unable to start service httpd: Job for httpd.service failed because the control process exited with error code. See \”systemctl status httpd.service\” and \”journalctl -xe\” for details.\n”
查看http的状态:
[root@lisery01 cm]# service httpd status
Redirecting to /bin/systemctl status ntpd.service
Unit ntpd.service could not be found.
[root@lisery01 cm]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2018-05-08 14:35:57 CST; 2min 20s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10371 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10370 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 10370 (code=exited, status=1/FAILURE)
5月 08 14:35:57 lisery01 httpd[10370]: (13)Permission denied: AH00072: make_sock: could not bind to address [::]:8010
5月 08 14:35:57 lisery01 httpd[10370]: (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:8010
5月 08 14: