lsof -i:8899
输出:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 38889 root 329u IPv6 5883661 0t0 TCP *:ospf-lite (LISTEN)
ps -aux | grep 38889
查出占用的程序
lsof -i:8899
输出:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 38889 root 329u IPv6 5883661 0t0 TCP *:ospf-lite (LISTEN)
ps -aux | grep 38889
查出占用的程序