How to check the process port in Linux

王林
Release: 2020-02-15 14:10:31
Original
3810 people have browsed it

How to check the process port in Linux

1. First check the process pid

ps -ef | grep 进程名
Copy after login

Free learning video sharing: linux video tutorial

ps command The following 4 columns of information are displayed by default:

PID: The process number of the running command (CMD)

TTY: The location (terminal) where the command is run

TIME: Running The CPU processing time occupied by the command

CMD: The command run by the process

2. Then check the occupied port through pid

netstat -nap | grep 进程pid
Copy after login

Related tutorials Recommended: linux tutorial

The above is the detailed content of How to check the process port in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template