Linux根据占用的端口号来关闭相应的进程的shell脚本写法。
kill -9 $(lsof -i:22 |awk '{print $2}' | tail -n 2)
用微信扫码二维码
分享至好友和朋友圈