
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 · 163 阅读 · 0 评论 -
重启tomcat之shell脚本
#!/bin/bash pid=`lsof -i:8080 |sed -n 2p | awk '{print $2}'` echo $pid if [ "-$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 · 131 阅读 · 0 评论 -
查看端口的运行情况
p 8080原创 2011-10-25 20:47:26 · 90 阅读 · 0 评论 -
重启tomcat之shell脚本
tartup.sh' # cd /home/huawei/tomcat/bin #sh startup.sh fi原创 2013-09-03 17:59:28 · 135 阅读 · 0 评论