java启动脚本



笔记插图(第 1 页)

笔记插图(第 1 页)

笔记插图(第 1 页)

stop-war.sh 257B

笔记插图(第 1 页)

笔记插图(第 1 页)

笔记插图(第 1 页)

start-war.sh 184B

笔记插图(第 1 页)

笔记插图(第 1 页)

笔记插图(第 1 页)

start.sh 84B

#!/bin/bash

JAR_PATH=“hms-exec.war”

CONFIG_PATH=“config”

nohup java -jar -Dfile.encoding=UTF-8 -Dcas.standalone.config="$CONFIG_PATH" “$JAR_PATH” > nohup.out 2>&1

&

tail -f nohup.out

#!/bin/bash

nohup java -jar hnjmepidemic-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &

tail -f log/hnjm.log

Linux下一个特殊的文件/dev/null,它就像一个无底洞,所有重定向到它的信息都会消失得无影无踪。

笔记插图(第 1 页)

笔记插图(第 1 页)

笔记插图(第 1 页)

cmd.sh 1.48KB