Compare commits
No commits in common. "main" and "firstDemo" have entirely different histories.
|
|
@ -28,7 +28,7 @@ echo "执行"
|
||||||
# cd /opt/webapps/
|
# cd /opt/webapps/
|
||||||
# 目标服务器后台方式启动jar包
|
# 目标服务器后台方式启动jar包
|
||||||
#nohup /usr/local/jdk-17.0.9/bin/java -jar /opt/webapps/demo4bonus-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &
|
#nohup /usr/local/jdk-17.0.9/bin/java -jar /opt/webapps/demo4bonus-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &
|
||||||
nohup java -jar /opt/webapps/demo4bonus-0.0.1-SNAPSHOT.jar >/opt/webapps/logs/demo4bonus/info.log 2>&1 &
|
nohup /usr/local/jdk-17.0.9/bin/java -jar /opt/webapps/demo4bonus-0.0.1-SNAPSHOT.jar >/opt/webapps/logs/demo4bonus/info.log 2>&1 &
|
||||||
|
|
||||||
echo "启动成功"
|
echo "启动成功"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ public class GreetingController {
|
||||||
@GetMapping("/health")
|
@GetMapping("/health")
|
||||||
public String healthcheck() {
|
public String healthcheck() {
|
||||||
logger.info("Server status is OK");
|
logger.info("Server status is OK");
|
||||||
return "OKOKOKOK";
|
return "OKOKOK";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue