#!/bin/sh
export AUTH=/springblade/auth/blade-auth.jar
export DESK=/springblade/desk/blade-desk.jar
export DEVELOP=/springblade/develop/blade-develop.jar
export LOG=/springblade/log/blade-log.jar
export AUTH_log=/springblade/nohup/auth.log
export DESK_log=/springblade/nohup/desk.log
export DEVELOP_log=/springblade/nohup/develop.log
export LOG_log=/springblade/nohup/log.log
export AUTH_port=8100
export DESK_port=8105
export DEVELOP_port=7007
export LOG_port=8103
case "$1" in
start)
## 启动auth
echo "--------auth 开始启动--------------"
nohup java -jar $AUTH > $AUTH_log 2>&1 &
AUTH_pid=`lsof -i:$AUTH_port|grep "LISTEN"|awk '{print $2}'`
until [ -n "$AUTH_pid" ]
do
AUTH_pid=`lsof -i:$AUTH_port|grep "LISTEN"|awk '{print $2}'
sh脚本多启动jar包操作
最新推荐文章于 2024-02-23 18:23:02 发布
本文介绍了如何在Linux环境中使用shell脚本启动并管理多个jar应用程序,包括设置环境变量、参数传递以及进程管理技巧。
摘要由CSDN通过智能技术生成