Merge branch 'master' of 34.102.70.200:ALEX/pro_eld_mqtt_compare
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PORT=8889
|
PORT=8889
|
||||||
JAR_PATH="/home/zhangbiqiong/pro_eld_mqtt_compare/app/pro_eld_mqtt_compare-0.0.1-SNAPSHOT.jar"
|
JAR_PATH="/home/zhangbiqiong/pro_eld_mqtt_compare/target/pro_eld_mqtt_compare-0.0.1-SNAPSHOT.jar"
|
||||||
LOG_PATH="/home/zhangbiqiong/pro_eld_mqtt_compare/logs/pro_eld_mqtt_compare.log"
|
LOG_PATH="/home/zhangbiqiong/pro_eld_mqtt_compare/logs/pro_eld_mqtt_compare.log"
|
||||||
|
|
||||||
# 检测端口是否被占用
|
# 检测端口是否被占用
|
||||||
@@ -12,4 +12,4 @@ else
|
|||||||
echo "Port $PORT is free. Starting application..."
|
echo "Port $PORT is free. Starting application..."
|
||||||
nohup java -jar "$JAR_PATH" > "$LOG_PATH" 2>&1 &
|
nohup java -jar "$JAR_PATH" > "$LOG_PATH" 2>&1 &
|
||||||
echo "Application started with PID $!"
|
echo "Application started with PID $!"
|
||||||
fi
|
fi
|
||||||
|
1
logs/pro_eld_mqtt_compare.log
Executable file
1
logs/pro_eld_mqtt_compare.log
Executable file
@@ -0,0 +1 @@
|
|||||||
|
Error: Unable to access jarfile /home/zhangbiqiong/pro_eld_mqtt_compare/app/pro_eld_mqtt_compare-0.0.1-SNAPSHOT.jar
|
Reference in New Issue
Block a user