Loading

摘要: 1.重启某个端口,适用于如tomcat重启8080端口,根据lsof命令查出,通过grep获取指定行, awk获取到指定列进而得出pid值关闭即可. pid=`lsof -i:3001|grep -v 'PID'|grep -w '(LISTEN)'|awk '{print $2}' ` echo 阅读全文
posted @ 2019-03-07 17:15 ichar 阅读(253) 评论(0) 推荐(0) 编辑