In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to open the port to the outside world in Aliyun Centos7.X. The content is simple and easy to understand. I hope you can learn. After learning, there will be some gains. Let's take a look at it.
Bottom line: if you buy CVMs from major manufacturers, go to the security group to configure the ports you need to use.
Because the blogger is using Aliyun, so here is just how to open the port, according to the following three pictures to operate on it
At this time, some students said, not through the platform, I want to exercise my Linux ability. Of course. Next, configure firewall rules directly on Linux to open ports (above Centos7, Centos6 and 7 use different firewall rules, Centos6 is not introduced here)
Master the systemctl+firewall command first.
Description commands View firewall status systemctl status firewalld.service start firewallsystemctl start firewalld stop firewallsystemctl stop firewalld boot firewallsystemctl enable firewalld boot prevent firewallsystemctl disable firewalld from additional learning systemctl command ^ _ ^ check whether the service is powered on systemctl is-enabled firewalld.service View the list of started services systemctl list-unit-files | grep enabled view the list of services that failed to start systemctl-- failed
Secondly, master the firewall-cmd command
Describe commands to view all firewall information firewall-cmd-- list-all view open ports firewall-cmd-- list-ports update firewall rules firewall-cmd-- reload open ports firewall-cmd-- zone=public-- add-port=3000/tcp-- permanent close ports firewall-cmd-- zone=public-- remove-port=3000/tcp-- permanent
Final execution steps:
First check whether firewall is enabled: systemctl status firewalld.service open port (rules need to be updated to take effect after opening): firewall-cmd-- zone=public-- add-port=3000/tcp-- permanent update firewall rules: firewall-cmd-- reload
The above is about how Aliyun Centos7.X can open ports to the outside world. If you have learned knowledge or skills, 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.