centos7下apache配置多端口
vi etc/httpd/conf/httpd.conf
在Listen 80后添加Listen 8081
重启httpd时报错,提示permission dinied,无法绑定到8081端口
SElinux Troubleshooter 提示SELinux is preventing /usr/sbin/httpd from name_bind access on the tcp_socket port 8081.
Allow this access for now by executing:
#ausearch -c ‘httpd’ --raw | audit2allow -M my-httpd
#semodule -i my-httpd.pp