Linux根据端口号关闭相应的进程Shell脚本
2014-04-29 09:18
330 查看
Linux根据占用的端口号来关闭相应的进程的shell脚本写法。
kill -9 $(lsof -i:22 |awk '{print $2}' | tail -n 2)
经试验可以正常使用来源网址:http://bbs.chinaunix.net/thread-3767801-2-1.html
kill -9 $(lsof -i:22 |awk '{print $2}' | tail -n 2)
经试验可以正常使用来源网址:http://bbs.chinaunix.net/thread-3767801-2-1.html
相关文章推荐
- Shell脚本实现根据端口号kill相应进程功能
- linux中根据端口号来关闭进程的shell命令
- Shell脚本实现根据端口号kill相应进程功能
- 使用shell根据端口号关闭进程
- 在linux中安装jdk以及tomcat并shell脚本关闭启动的进程
- shell脚本中根据端口号kill对应的应用进程
- Shell脚本实现Linux系统和进程资源监控
- Shell脚本实现Linux系统和进程资源监控
- Linux守护进程Shell脚本
- Linux守护进程Shell脚本
- 使用Shell脚本对Linux系统和进程资源进行监控
- Linux根据端口号杀进程
- 使用Shell脚本对Linux系统和进程资源进行监控
- 使用 shell 脚本对 Linux 系统和进程资源进行监控
- Linux之进程管理及Shell脚本
- Linux 下Java 进程启动停止shell脚本
- linux利用shell实现守护进程的脚本
- 使用Shell脚本对Linux系统和进程资源进行监控
- linux中oracle数据库|监听|EM的开启和关闭shell脚本
- Linux根据进程名查看进程号(脚本)