shell 脚本
killeraction
这个作者很懒,什么都没留下…
展开
-
查看端口的运行情况
查看8080端口的运行情况lsof -i :8080 干掉8080端口的相关进程lsof -i :80|grep -v "PID"|awk '{print "kill -9",$2}'查看某端口的运行情况。netstat -apn | grep 8080 ...原创 2011-10-25 20:47:26 · 131 阅读 · 0 评论 -
重启tomcat之shell脚本
#!/bin/bashpid=`lsof -i:8080 |sed -n 2p | awk '{print $2}'`echo $pidif [ "-$pid" = "-" ];then echo "start to restart tomcat at port 8080" su - huawei -c 'sh /home/huawei/tomcat/bin/s...原创 2013-09-03 17:59:28 · 95 阅读 · 0 评论 -
查看端口的运行情况
p 8080原创 2011-10-25 20:47:26 · 61 阅读 · 0 评论 -
重启tomcat之shell脚本
tartup.sh' # cd /home/huawei/tomcat/bin #sh startup.shfi原创 2013-09-03 17:59:28 · 92 阅读 · 0 评论