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/01 Report--
This article mainly introduces what are the commands related to the firewall in centOs7. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
Check the status of ports that are open to the public, query ports that have been opened, netstat-anp, query whether the specified port is open firewall-cmd-- query-port=666/tcp prompt yes, which means enabled; no: not enabled. View firewall status systemctl status firewalld turn on firewall systemctl start firewalld close firewall systemctl stop firewalld turn on firewall service firewalld start if it cannot be opened first: systemctl unmask firewalld.service then: systemctl start firewalld.service permanently close the firewall close the firewall: systemctl stop firewalld.service check whether the firewall is closed successfully: systemctl status firewalld.service permanently close the firewall: systemctl disable firewalld.service open ports check See whether the port you want to open is open: firewall-cmd-- query-port=6379/tcp add the specified port to be open: firewall-cmd-- add-port=123/tcp-- permanent reload the added port: firewall-cmd-- reload query whether the specified port is opened successfully: firewall-cmd-- query-port=123/tcp removes the specified port: firewall-cmd-- permanent-- remove-port=123/tcp above is "the commands related to firewalls in centOs7 are Which "all the contents of this article" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.