![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
何超杰
http://hechaojie.com 技术、分享、价值...
展开
-
shell脚本启动java se项目
shell脚本启动java se项目[root@hechaojie deploy]# cat start.sh #!/bin/shSERVICE_HOME=/data/blog-servicecd ${SERVICE_HOME}MAIN_CLASS="com.blog.service.server.Server"LIB_DIR=${SERVICE_HOME}/libLOGS...原创 2018-08-15 23:04:17 · 5341 阅读 · 0 评论 -
shell脚本停止java se项目
shell脚本启动java se项目[root@hechaojie deploy]# cat stop.sh #!/bin/shMAIN_CLASS="com.blog.service.server.Server"#kill serverSERVER_PID=`ps auxf | grep "${MAIN_CLASS}" | grep -v "grep"| awk '{print ..原创 2018-08-15 23:06:09 · 1719 阅读 · 0 评论 -
shell发布java se项目
shell发布java se项目root@hechaojie deploy]# cat deploy.sh#/bin/shTIME=`date +%Y%m%d%H%M%S`NAME=blog-servicecd /data/${NAME}sh deploy/stop.shrm -rf ./classes ./libtar zxf *-dist.tar.gz -C ./rm ./...原创 2018-08-15 23:08:17 · 5570 阅读 · 0 评论 -
Linux简单监控服务脚本
[root@hechaojie monitor]# cat process.sh #!/bin/shctime=`date +%Y-%m-%d\ %H:%S:%S`server_name=hechaojieserver_dir=/data/$server_name/tomcatecho $ctime' 监听服务运行状态,'$server_namefunction checkser...原创 2018-09-05 23:16:47 · 4390 阅读 · 0 评论 -
Java web项目简单发布脚本
1.发布脚本[root@hechaojie deploy]# cat deploy.sh #!/bin/shNAME=blog-frontTIME=`date +%Y%m%d%H%M%S`PRO_HOME=/data/${NAME}cd $PRO_HOMEsh deploy/stop.shrm -rf run/*unzip -o *.war -d run/sh deploy...原创 2018-09-16 23:32:15 · 2242 阅读 · 0 评论 -
Java SE项目简单发布脚本
1、发布脚本[root@hechaojie deploy]# cat deploy.sh#/bin/shTIME=`date +%Y%m%d%H%M%S`NAME=blog-servicecd /data/${NAME}sh deploy/stop.shrm -rf ./classes ./libtar zxf *-dist.tar.gz -C ./rm ./lib/${NAM...原创 2018-09-16 23:33:40 · 1744 阅读 · 0 评论