linux 批量发布命令

start.sh


kill -9 `ps -ef | grep resgo-financial-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms64m -Xmx126m -jar resgo-financial-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-financial-provider.log 2>&1 &

kill -9 `ps -ef | grep resgo-upms-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-upms-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-upms-provider.log 2>&1 &

kill -9 `ps -ef | grep resgo-sale-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-sale-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-sale-provider.log 2>&1 &

kill -9 `ps -ef | grep resgo-purchase-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-purchase-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-purchase-provider.log 2>&1 &


kill -9 `ps -ef | grep resgo-system-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-system-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-system-provider.log 2>&1 &

kill -9 `ps -ef | grep resgo-product-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-product-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-product-provider.log 2>&1 &

kill -9 `ps -ef | grep resgo-gateway.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-gateway.jar > /usr/local/resgo/newerpjar/logs/resgo-gateway.log 2>&1 &

kill -9 `ps -ef | grep resgo-auth.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-auth.jar > /usr/local/resgo/newerpjar/logs/resgo-auth.log 2>&1 &

kill -9 `ps -ef | grep resgo-job.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-job.jar > /usr/local/resgo/newerpjar/logs/resgo-job.log 2>&1 &


kill -9 `ps -ef | grep resgo-dashboard-provider.jar | grep -v 'grep' | awk '{print $2}'`
nohup java  -Xms256m -Xmx512m -jar resgo-dashboard-provider.jar > /usr/local/resgo/newerpjar/logs/resgo-dashboard-provider.log 2>&1 &


echo "The Application is running"

posted @ 2022-04-21 14:40  yufeiyunsui  阅读(67)  评论(0编辑  收藏  举报