Ubuntu下部署jar

ubuntu 下部署jar

1.安装jdk 8

https://vitux.com/how-to-install-java-on-ubuntu-20-04/

sudo apt install openjdk-8-jdk openjdk-8-jre

java -version

cat >> /etc/environment <<EOL
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
EOL

2.运行jar

https://blog.csdn.net/bencheng06/article/details/102491420

3.docker下部署jar

https://blog.csdn.net/a835269079/article/details/102519209

分享