linux查看端口对应的应用

根据端口查看对应进程:

lsof -i:端口

根据进程号PID查看对应应用:

ps axu | grep 进程号

根据进程号PID查看对应端口:

netstat -anp | grep 进程号

你可能感兴趣的:(Linux,linux)