Access services on linux through browser on windows

----The following operations are performed on centos7
----Add port on
  firewall firewall-cmd --zone=public --add-port=80/tcp --permanent
----Delete port firewall on
  firewall -cmd --zone=public --remove-port=80/tcp --permanent

firewall-cmd --list-ports #View open ports

firewall-cmd --reload #Restart firewall

systemctl stop firewalld.service   #停止firewall

systemctl disable firewalld.service #Prohibit firewall from starting

firewall-cmd --state #View the default firewall status (notrunning is displayed when it is closed, and running is displayed when it is opened)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324836893&siteId=291194637