Linux view port occupation command instance details


Linux view port occupation command instance details

Port is a very important part of the system. We often need to check which process occupies which port or which process occupies which port. Don’t say much nonsense, directly on dry goods, teach you how to check the system port occupancy.

Method 1:

1. first useps -ef | grep xxx(a process), you can view the PID of a process.

2. reusenetstat -anp | grep pidNo., you can view the port number occupied by the process!

Method two:

Direct uselsofCommand to view port usage!

The above is the explanation of Linux view port occupation command. If you have any questions, please leave a message, or go to our community to discuss. Thanks for reading, hope to help you, thank you for your support!

Recommended Today

[reading notes] calculation advertising (Part 3)

By logm This article was originally published at and is not allowed to be reproduced~ If the mathematical formula in the article cannot be displayed correctly, please refer to: Tips for displaying the mathematical formula correctly This article isComputing advertising (Second Edition)Reading notes. This part introduces the key technology of online advertising, which is […]