In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. service mode
View firewall status:
[root@centos6 ~] # service iptables status
Iptables: the firewall is not running.
Recommended tutorial: linux tutorial
II. Iptables mode
Enter the init.d directory first, and use the following command:
[root@centos6 ~] # cd / etc/init.d/
[root@centos6 init.d] #
Then check the firewall status:
[root@centos6 init.d] # / etc/init.d/iptables status
Content extension:
The firewall configuration of CentOS7 is very different from that of the previous version. The firewall of this version of CentOS7 uses firewall by default, which is different from the previous version using iptables.
1. Turn off the firewall:
Systemctl stop firewalld.service
2. Enable the firewall:
Systemctl start firewalld.service
3. Turn it off and start up:
Systemctl disable firewalld.service
4. Turn it on and start:
Systemctl enable firewalld.service
At this point, this is the end of this article on linux to see whether the firewall is off. For more information about how to check whether the firewall is off, please search for previous articles or continue to browse the relevant articles below. I hope you will support it in the future!
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.