跳至主要内容

统信UOS 离线安装 java jdk

 


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

评论

此博客中的热门博文

Docker-Compose 安装 PolarDB

 version: '3.1' services:   polardb:     container_name: polardb     restart: always     image: polardb/polardb_pg_local_instance     ports:       - 5432:5432     networks:       - net_db     environment:       TZ: Asia/Shanghai     volumes:       - ./polardb:/var/polardb networks:   net_db:     external: true

Docker-Compose 安装 xxl-job-admin

 version: '3' services:  xxl-job-admin:    image: xuxueli/xxl-job-admin:2.3.0    restart: always    container_name: xxl-job-admin    #environment:    #  PARAMS: '--spring.datasource.url= jdbc:mysql://192.168.1.110:3305/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&useSSL=false --spring.datasource.username=root --spring.datasource.password=123456'    ports:      - 80:8080    networks:      - net_db    volumes:      - ./data/applogs:/data/applogs networks:  net_db:    external: true

Docker-Compose 安装 Portainer

 version: '3.1' services: portainer: image: portainer/portainer-ce:latest container_name: portainer hostname: portainer restart: always volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "./portainer_data:/data" - "./portainer_cn:/public" environment: TZ: Asia/Shanghai LANG: en_US.UTF-8 ports: - "9001:9000" networks:      - net_db networks: net_db: external: true