linux 启动 springboot常用的一些命令简写

p:

ps -ef | grep my-client.jar | grep -v 'grep'

shutdown.sh

kill -9 `ps -ef | grep 'comp-nm-ivr-client.jar' | grep -v 'grep' |awk '{print $2}'`

start

/opt/aspire/product/my_client/jdk1.7.0_80/bin/java -Xrunjdwp:transport=dt_socket,address=21789,server=y,suspend=n  -jar -Djasypt.encryptor.password=my_client my-client.jar >nohup.out &  tail -f nohup.out

简化start命令

java -jar comp-nm-ivr-client.jar >> service.log 

jboss后台启动process_restart.sh
“`

!/bin/bash

name=whoami
PROID= (psef|grep ( p s − e f | g r e p name|grep ‘7.1.1-jboss’|grep ‘configuration’|grep ‘-XX’|awk ‘{print 2"\t" 2 " \t " 3}’)
BIN=/opt/aspire/product/ppsnm/7.1.1-jboss/bin
PTH=/opt/aspire/product/ppsnm/7.1.1-jboss/standalone/
DISK_C= (df|grepopt|awkprint$4)DISKC1= ( d f | g r e p ′ o p t ′ | a w k ′ p r i n t $ 4 ′ ) D I S K C 1 = {DISK_C%%%}

if [ “$DISK_C1” -gt “98” ] ;then

echo “the free_disk is too small,which will effect you restart process!!”
exit 1
fi

cd BINsleep1;if[z B I N s l e e p 1 ; i f [ − z “ PROID” ];then
sh /opt/aspire/product/ppsnm/7.1.1-jboss/bin/start
else
PROID= (echo" ( e c h o " PROID”)
kill -9 PROIDcd P R O I D c d PTH
rm -rf data/ tmp/
cd $BIN
sh /opt/aspire/product/ppsnm/7.1.1-jboss/bin/start
fi

···

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值