Linux 常用命令

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

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

Linux下查看进程占用端口:

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