current position:Home>How to set to allow the WWW service to pass through the server (port 80)

How to set to allow the WWW service to pass through the server (port 80)

2022-02-02 21:55:35 CSDN Q & A

allow www The service passes through the server (80 port ) And turn it off Linux Systematic SELinux.




Refer to the answer 1:

Firewall setting pass through http The agreement will do

#  The following operations are 7 and 8 Of   System [root@servera ~]# firewall-cmd --permanent --add-service=http[root@servera ~]# firewall-cmd --reload

as for selinux, Modify the configuration file directly and restart the machine to make it permanent disable

echo --------------- close Selinux------------------------setenforce 0sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/selinux/config



Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022155338013.html

Random recommended