In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Basic use of firewalld
Start:
Systemctl start firewalld
View 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 combines the functions of 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
Displays the status of the firewall:
Systemctl status firewalld.service
Firewall at boot time:
Systemctl enable firewalld.service
Disable the firewall at power on:
Systemctl disable firewalld.service
Check to see if the firewall is powered on:
Systemctl is-enabled firewalld.service
View a list of services that have been started:
Systemctl list-unit-files | grep enabled
View the list of services that failed to start:
Systemctl-failed
3. Configure firewalld-cmd
View the 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 area information:
Firewall-cmd-get-active-zones
View the area to which the specified interface belongs:
Firewall-cmd-get-zone-of-interface=eth0
Reject all packages:
Firewall-cmd-panic-on
Cancel the rejection status:
Firewall-cmd-panic-off
Check to see if you reject:
Firewall-cmd-query-panic
4: open the port
Add
Firewall-cmd-- zone=public-- add-port=80/tcp-- permanent (--permanent is in effect permanently, without this parameter to expire after restart) # Open port 80
Reload
Firewall-cmd-reload
View
Firewall-cmd-- zone=public-- query-port=80/tcp # check whether port 80 is open
Delete
Firewall-cmd-- zone= public-- remove-port=80/tcp-- permanent # Delete port 80 configuration
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.