In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to shut down the port number of the CVM, which may not be well understood by many people. In order to make you understand better, the editor summarized the following contents. I hope you can get something from this article.
If you need to know which ports are open in the current CVM system, and the associated processes and users of these ports, you can query them through the netstat command. You can stop port occupancy by following these steps:
1. Find the process occupied by the port
two。 Use the netstat-antp | grep 9000 command to view (take port 9000 as an example):
3. You can see which PID process occupies this port.
4. Then stop the corresponding process.
Commonly used netstat commands
Netstat-n-p | grep SYN_REC | sort-u lists all connected IP addresses.
Netstat-n-p | grep SYN_REC | awk'{print $5}'| awk-F:'{print $1} 'lists the IP addresses of all sending SYN_REC connection nodes.
Netstat-ntu | awk'{print $5}'| cut-d:-F1 | sort | uniq-c | sort-n calculates the number of connections from each host to the local machine.
Netstat-plan | grep: 80 | awk {'print $5'} | cut-d:-f 1 | sort | uniq-c | sort-nk 1 lists all IP addresses connected to port 80 of the machine and their number of connections. Port 80 is generally used to handle HTTP web page requests.
After reading the above, do you have any further understanding of how to shut down the port number of the CVM? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.