批量处理linux java -jar jar服务模块脚本
来源:互联网 发布:变身之网络妖星系统 编辑:程序博客网 时间:2024/06/14 07:01
#!/bin/sh#comments batch run po server config_nohup='nohup java -jar ';config_command='command 1>'; config_and='86400 & '; alert_1='一键启动PO-SERVER基础服务设施';function configServer(){ #加载批量基础服务 cd /; cd home/witts-java/Desktop/package/192.168.0.124/; ${config_nohup} guadan2.0-9304.jar command 1>guadan2.0.output 2>guadan.error 86400 & if [ $? -eq 0 ]; then echo "挂单模块执行成功"; else echo "挂单模块执行失败"; fi ${config_nohup} order2.0-9311.jar command 1>order2.0.output 2>order2.error 86400 & if [ $? -eq 0 ]; then echo "订单模块执行成功"; else echo "订单模块执行失败"; fi ${config_nohup} project2.0-9302.jar command 1>project2.0.output 2>project2.error 86400 & if [ $? -eq 0 ]; then echo "项目模块执行成功"; else echo "项目模块执行失败"; fi ${config_nohup} reports2.0-9305.jar command 1>reports2.0.output 2>reports2.error 86400 & if [ $? -eq 0 ]; then echo "报表模块执行成功"; else echo "报表模块执行失败"; fi ${config_nohup} share2.0-9303.jar command 1>share2.0.output 2>share2.error 86400 & if [ $? -eq 0 ]; then echo "分享模块执行成功"; else echo "分享模块执行失败"; fi ${config_nohup} shop2.0-9306.jar command 1>shop2.0.output 2>shop2.error 86400 & if [ $? -eq 0 ]; then echo "店铺模块执行成功"; else echo "店铺模块执行失败"; fi ${config_nohup} spend2.0-9307.jar command 1>spend2.0.output 2>spend2.error 86400 & if [ $? -eq 0 ]; then echo "开支模块执行成功"; else echo "开支模块执行失败"; fi ${config_nohup} storage2.0-9308.jar command 1>storage2.0.output 2>storage2.error 86400 & if [ $? -eq 0 ]; then echo "库存模块执行成功"; else echo "库存模块执行失败"; fi ${config_nohup} system2.0-9301.jar command 1>system2.0.output 2>system2.error 86400 & if [ $? -eq 0 ]; then echo "系统模块执行成功"; else echo "系统模块执行失败"; fi ${config_nohup} table2.0-9312.jar command 1>table2.0.output 2>table2.error 86400 & if [ $? -eq 0 ]; then echo "台桌模块执行成功"; else echo "台桌模块执行失败"; fi ${config_nohup} ubs2.0-9309.jar command 1>ubs2.0.output 2>ubs2.error 86400 & if [ $? -eq 0 ]; then echo "师徒系统模块执行成功"; else echo "师徒系统模块执行失败"; fi} echo $alert_1;protData=$(ps -x|grep java|grep -v grep|awk '{print $1}'); echo "!!!杀死端口参数信息 "$protData"!!!";kill -s 9 $protData;###################################################################if [ $? -eq 0 ]; then echo "********************杀死进程成功!开始启动服务********************"; excuteRet1=$(configServer $1); echo $excuteRet1; echo "1号调用返回状态"$?; if [ $? -eq 0 ]; then echo "1号重启服务成功啦"; fielse echo "********************杀死进程失败!直接启动服务********************"; excuteRet2=$(configServer $1); echo $excuteRet2; echo "2号调用返回状态"$?; if [ $? -eq 0 ]; then echo "2号重启服务成功啦"; fifi###################################################################
阅读全文
0 0
- 批量处理linux java -jar jar服务模块脚本
- java jar服务部署脚本编写
- linux脚本 运行java程序引入jar
- python脚本批量上传Jar包到私服
- linux遍历jar包脚本
- linux jar包启动脚本
- linux下shell脚本启动java程序jar包
- linux环境下编写shell脚本启动和关闭jar包服务程序
- Maven本地jar批量安装bat脚本编写
- Linux Shell脚本设置lib*.jar
- linux 启动或停止jar shell脚本
- Linux下shell脚本启动jar包
- SPRING BOOT jar linux部署脚本
- linux 服务器 中脚本启动关闭 jar
- linux shell 运行jar 脚本不退出
- 【Java】【Jar】创建Jar
- Android Java Jar包整合Shell脚本
- 【Java】打包Jar包并用脚本执行
- JS各循环的差别
- SystemUI 剖析
- 华为1
- spring 注解
- mvp框架的简单使用
- 批量处理linux java -jar jar服务模块脚本
- matlab程序控制结构
- ssm
- 关于Statement
- 安装freeradius的GUI管理程序dialup_admin
- MkDocs 快速入门
- 算法练习(12):Longest Valid Parentheses
- Antenna Placement POJ
- Git常用命令大全