Linux入门之常用命令(9)进程及端口查看

【Linux下查看进程】

查看程序对应进程号:ps –ef|grep 程序名

查看进程占用端口:ss -pl | grep 进程号

【通过进程查看端口】

查看占用的端口号:netstat –nltp|grep 端口号

【Linux下查看端口号所使用的进程号】

使用lsof命令: lsof –i:端口号