linux view port command -netstat

1. Check the port number netstat

If you find that a port is occupied, you can use a command to check which process the port is occupied. The command is as follows: 5

netstat -pan | grep 9300

9300 is the port number;

2. Find the program by process id -ps

Directly pass: ps -aux | grep pid view, process program name,

PID is the process number, such as 13727 Java

3. Then consider whether to KILL the process number

Guess you like

Origin blog.csdn.net/kakak2000/article/details/106245572