查看端口被哪个进程占用:
$ lsof -i tcp:1099
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 806 sunyk 166u IPv6 0x3c31649016e2b52b 0t0 TCP *:rmiregistry (LISTEN)
查看端口被哪个进程占用:
$ lsof -i tcp:1099
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 806 sunyk 166u IPv6 0x3c31649016e2b52b 0t0 TCP *:rmiregistry (LISTEN)