In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
CentOS 7 uses firewall as its firewall by default. Install iptables Firewall first.
1. Close firewall:
Systemctl stop firewalld.service
Systemctl disable firewalld.service
Systemctl mask firewalld.service
2. Install iptables firewall
Yum install iptables-services-y
3. Start the setup firewall
# systemctl enable iptables
# systemctl start iptables
4. View firewall status
Systemctl status iptables
5 Editing the firewall and adding ports
Vi / etc/sysconfig/iptables # Editing Firewall profile
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 22-j ACCEPT
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 80-j ACCEPT
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3306-j ACCEPT
: wq! # Save exit
3. Restart the configuration, restart the system
Systemctl restart iptables.service # restart the firewall to make the configuration effective
Systemctl enable iptables.service # set the firewall to boot
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.