In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to configure and close the CentOS operating system firewall, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
When we use the CentOS operating system, our firewall configuration is very important, it is related to the safety of our computers. Once when installing and configuring the ORACLE database under the CentOS operating system, it always showed that the EM installation failed due to the network port, so I planned to turn off the firewall first. Came across a firewall configuration instructions, I think it's not bad.
one。 Execute the "setup" command to start the text mode configuration utility
Select Firewall configuration in "Select a tool", then select the "run tools" button, the firewall configuration interface appears, set the security level to "disabled", and then select "OK".
Or we can use commands in the CentOS operating system:
# / sbin/iptables-I INPUT-p tcp-dport 80-j ACCEPT
# / sbin/iptables-I INPUT-p tcp-dport 22-j ACCEPT
# / etc/rc.d/init.d/iptables save
two。 Restart the computer.
The 1.CentOS operating system firewall has ports 80 and 22 open by default.
two。 It should be possible not to restart the computer here:
# / etc/init.d/iptables restart
If the firewall is turned off, just turn off its service:
3. View firewall information:
# / etc/init.d/iptables status
4. Turn off the firewall service:
# / etc/init.d/iptables stop
3. * disable the firewall
We can also turn off the firewall, but I don't recommend it. * turn off the firewall can do this:
# chkconfig-level 35 iptables off
It can also be modified directly.
/ etc/sysconfig/iptables
Add a
-A RH-Firewall-1-INPUT-m state-- state NEW-m tcp-p tcp-- dport 80-j ACCEPT
In this way, we have introduced how to configure and shut down the CentOS operating system firewall.
On how to configure and close the CentOS operating system firewall to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.