Home>Article>Operation and Maintenance> 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!