JDK 安装
https://www.oracle.com/cn/java/technologies/downloads/
tar -zxvf jdk-17_linux-aarch64_bin.tar.gz cd jdk-17.0.8
vi /etc/profile #以下为配置环境变量 export JAVA_HOME=/home/tools/jdk-17.0.8 export PATH=$PATH:$JAVA_HOME/bin; export CLASSPATH=.:$JAVA_HOME/lib; source /etc/profile
supervisor 管理配置
[program:webapi_java] command=/home/tools/jdk-17.0.8/bin/java -jar test-1.0-SNAPSHOT.jar --server.port=10029 --spring.profiles.active= producion directory=/home/webapi_java/ autostart=true autorestart=true stderr_logfile=/home/logs/webapi_java.err.log stdout_logfile=/home/logs/webapi_java.out.log user=root logfile_maxbytes=50MB logfile_backups=10 startsecs=1 stopsignal=INT
评论
发表评论