In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. View firewall status
View firewall status systemctl status firewalld
Turn on firewall systemctl start firewalld
Turn off Firewall systemctl stop firewalld
Turn on firewall service firewalld start
If you can't open it.
First use: systemctl unmask firewalld.service
Then: systemctl start firewalld.service
two。 View the status of ports open to the outside world
Query the open port netstat-ntulp | grep port number: you can view a specific port number.
Query whether the specified port has firewall-cmd enabled-- query-port=666/tcp
The prompt yes indicates that it is enabled, and no indicates that it is not enabled.
3. External development port
Check whether the port you want to open is open: firewall-cmd-- query-port=6379/tcp
Add specified ports that need to be open: firewall-cmd-- add-port=123/tcp-- permanent
Reload the added port: firewall-cmd-- reload
Query whether the specified port is enabled successfully: firewall-cmd-- query-port=123/tcp
Remove designated port: firewall-cmd-- permanent-- remove-port=123/tcp
Summary
The above is the linux that the editor introduced to you to check the status of the firewall and the port status that is open to the outside world. I hope it will be helpful to everyone!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.