This commit is contained in:
yuzchen 2024-01-30 17:41:06 +08:00
parent af7b9dfd66
commit f74cf03656
2 changed files with 9 additions and 8 deletions

View File

@ -27,6 +27,8 @@ echo "执行"
# cd /opt/webapps/ # cd /opt/webapps/
# 目标服务器后台方式启动jar包 # 目标服务器后台方式启动jar包
#nohup java -jar demo4bonus-0.0.1-SNAPSHOT.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 /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 "启动成功"

View File

@ -5,7 +5,6 @@ server:
enabled: true enabled: true
#reference https://blog.csdn.net/xxj_jing/article/details/134885361 #reference https://blog.csdn.net/xxj_jing/article/details/134885361
pattern: '%{yyyy-MM-dd HH:mm:ss}t %a %A %m %s %D %b %I %U%q %{User-Agent}i' pattern: '%{yyyy-MM-dd HH:mm:ss}t %a %A %m %s %D %b %I %U%q %{User-Agent}i'
# directory: /Users/chenyuzhen/tomcatlog/demo4bonus/
directory: /opt/webapps/logs/demo4bonus/ directory: /opt/webapps/logs/demo4bonus/
prefix: accesslog prefix: accesslog
suffix: .log suffix: .log
@ -14,7 +13,7 @@ server:
renameOnRotate: false renameOnRotate: false
buffered: true buffered: true
requestAttributesEnabled: true requestAttributesEnabled: true
logging: #logging:
file: /opt/webapps/logs/demo4bonus/info.log # file: /opt/webapps/logs/demo4bonus/info.log
level: # level:
root: INFO # root: INFO