lsof很好用的命令,Linux通过端口查看进程
2012-07-09 17:16
513 查看
服务器上放着3个tomcat,通过top或者ps -aux | grep 来找对应的进程名,然后再kill掉,感觉都比较麻烦
弄来弄过还是觉得
lsof的-i参数挺有用的
Multiple addresses (up to a limit of 100) may be specified with multiple -i options.
(A port number or service name range is counted as one address.)
They are joined in a single ORed set before participating in AND option selection.
直接查看某个端口的进程,例如:80端口
Shell代码
lsof -i :80
直接可以查看80端口占用的进程号
弄来弄过还是觉得
lsof的-i参数挺有用的
Multiple addresses (up to a limit of 100) may be specified with multiple -i options.
(A port number or service name range is counted as one address.)
They are joined in a single ORed set before participating in AND option selection.
直接查看某个端口的进程,例如:80端口
Shell代码
lsof -i :80
lsof -i :80
直接可以查看80端口占用的进程号
相关文章推荐
- linux 通过哪个命令可以查看某个服务及其端口、进程号
- linux 通过哪个命令可以查看某个服务及其端口、进程号
- linux 通过哪个命令可以查看某个服务及其端口、进程号
- 【转】Window 通过cmd查看端口占用、相应进程、杀死进程等的命令
- Window 通过cmd查看端口占用、相应进程、杀死进程等的命令
- linux查看进程命令/window pid和端口查看命令/nginx命令
- Linux如何查看进程、杀死进程、查看端口等常用命令
- 在linux环境中,通过监听端口查找进程号命令
- linux命令 — lsof 查看进程打开哪些文件 或者 查看文件给哪个进程使用-zt
- 用Linux命令查看当前某个进程A,并查找该进程所占用的端口
- Linux下通过端口查看进程
- Window 通过cmd查看端口占用、相应进程、杀死进程等的命令
- 如何在windows和linux下查看进程使用的端口或通过端口查看进程
- linux下查看进程占用端口和端口占用进程命令
- 菜鸟学Linux命令:lsof命令 查找指定用户、进程、端口打开的文件
- linux lsof/netstat查看进程和端口号相关命令:
- 查看linux下某端口被哪个进程占用(linux命令)
- Window 通过cmd查看端口占用、相应进程、杀死进程等的命令
- Linux 查看进程占用端口命令
- linux命令 — lsof 查看进程打开哪些文件 或者 查看文件给哪个进程使用-zt