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--
Learn how linux can see if the port is open? This problem may be often seen in our daily study or work. I hope you can gain a lot from this article. Here is the reference content brought by the editor. Let's take a look at it!
Linux method to check whether the port is open: first open the port and switch root user login; then use the [lsof-I:] port number command line; finally, use the [netstat-aptn] command line to check all the open port numbers.
Operating environment of this tutorial: windows7 system, linux7.3 version, DELL G3 computer
Linux's method to check whether the port is open:
1. First, let's open the command interface of the Linux that you want to view the port, as shown in the figure (take the Ubuntu system as an example)
2. Then, in order to get higher permissions (view all ports), switch root user login here
3. The first method is to use the lsof-I: Port number command line, taking 80 as an example, as shown in the figure
4. If there is no output, the port number is not opened. To facilitate testing, I detect an open port number here, and the information shown in the figure will be output.
5. The second way is to use the netstat-aptn command line to check all the open port numbers
6. The command shown in the figure is to check all the port numbers in the system that use the udp protocol.
7. Then this command is to view the port number information of the system using the tcp protocol.
8. Finally, there is a client test method, which is to use the Telnet ip port number command, but I did not test successfully in the virtual machine Linux. I did not know what was going on in the remote Linux system.
Thank you for reading the above, do you have a general understanding of the article "how to check whether the port is open in linux"? I hope the content of the article will be helpful to you. If you want to know more about the content of the article, you are 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.