1. Basic use of firewalld start up: systemctl start firewalld Check the status: systemctl status firewalld stop: systemctl disable firewalld Disable: systemctl stop firewalld 2.systemctl is the main tool in CentOS7's service management tools, which integrates the functions of the previous service and chkconfig. Start the firewall: systemctl start firewalld.service Turn off the firewall: systemctl stop firewalld.service Restart the firewall: systemctl restart firewalld.service Display the status of the firewall: systemctl status firewalld.service Firewall at boot time: systemctl enable firewalld.service To disable the firewall at boot: systemctl disable firewalld.service Check whether the firewall is started: systemctl is-enabled firewalld.service View the list of started services: systemctl list-unit-files|grep enabled View the list of services that failed to start: systemctl --failed 3. Configure firewalld-cmd View version: firewall-cmd --version View Help: firewall-cmd --help Display status: firewall-cmd --state View all open ports: firewall-cmd --zone=public --list-ports Update firewall rules: firewall-cmd --reload View region information: firewall-cmd --get-active-zones Check the area to which the specified interface belongs: firewall-cmd --get-zone-of-interface=eth0 Deny all packets: firewall-cmd --panic-on To cancel the rejected status: firewall-cmd --panic-off Check if rejected: firewall-cmd --query-panic 4: Open the port Add to firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent is effective permanently, and will become invalid after restart without this parameter) #Open port 80 Reload firewall-cmd --reload Check firewall-cmd --zone=public --query-port=80/tcp #Check if port 80 is open delete firewall-cmd --zone= public --remove-port=80/tcp --permanent #Delete port 80 configuration The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Example code of vue + element ui to realize player function
>>: Install mysql offline using rpm under centos 6.4
1. First, create the corresponding folder accordi...
Table of contents Introduction Download and insta...
1. Necessity of Tuning I have always been reluct...
Preface "High Performance MySQL" mentio...
Table of contents sequence 1. Centralized routing...
This article uses javascript+CSS to implement the...
public function json_product_list($where, $order)...
1 method is a property that specifies how data is ...
1. View openjdk rpm -qa|grep jdk 2. Delete openjd...
Key Takeaways: 1. Mastering CSS3 3D animation 2. ...
<meta http-equiv="x-ua-compatible" co...
As one of the most popular front-end frameworks, ...
Table of contents 1. Timer monitoring 2. Event mo...
Delete the previously installed mariadb 1. Use rp...
<iframe src="./ads_top_tian.html" all...