Home>Article>Operation and Maintenance> How to check the process port in Linux

How to check the process port in Linux

王林
王林 Original
2020-02-15 14:10:31 3708browse

How to check the process port in Linux

1. First check the process pid

ps -ef | grep 进程名

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

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!

Statement:
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