Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of viewing Port in linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First, we open the Linux command interface to view the port, as shown in the figure:

To gain higher privileges (see all ports), switch root login here

The first method is to use the lsof command, for example 80, as shown in the figure:

If there is no output, the port number is not open.

To facilitate the test, I detect an open port number here, and the information shown in the figure will be output:

The second method is to use the netstat -aptn command line to see all open port numbers

The command shown in the figure is to view all port numbers using udp protocol in the system.

This command is to view port number information using tcp protocol in the system

The above is how to check whether the port is open in linux details, more please pay attention to other related articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report