xshell快速命令

1.查看tomcat进程

ps -ef|grep tomcat

2.停掉8080端口的服务器

netstat -tlnp|grep 8080|awk '{print $7}'|awk -F '/' '{print $1}'| xargs kill -9

3.启动指定位置的tomcat

rm -rf /home/Application/tomcat-newhouse-8080/work/*;
rm -rf /home/Application/tomcat-newhouse-8080/temp/*;
sh /home/Application/tomcat-newhouse-8080/bin/startup.sh;
tail -f /home/Application/tomcat-newhouse-8080/logs/catalina.out;

 

posted @ 2020-03-23 11:22  十月围城小童鞋  阅读(221)  评论(0编辑  收藏  举报