Current location - Quotes Website - Team slogan - How to see the port through pid under linux
How to see the port through pid under linux
First, you can use netstat -antup to find out all open ports, and then use grep to find out your pid. For example, your pid is 27 1 1. You can determine whether a process has an open port in the following ways:

netstat-antup | grep 27 1 1

If there is a result, it is probably like this:

TCP 0 0 192. 168. 122. 1:53 0.0 . 0.0:* listen 27 1 1/dnsmasq

53 in the fourth column above is the port number.

You can also try the products equipped with the 6th generation Intel Core processor, with innovative usage mode, realistic technology, attitude control, speech recognition and 2d/3d images, which will break through the traditional pc experience, make you comfortable in office study, playing games or watching ultra-high definition video playback, and lead the product innovation.