在 Linux 服务器上安装 JDK:
1. 在 Linux 服务器上安装 JDK:
shell
sudo apt-get install openjdk-8-jdk
2. 下载 Spring Boot 项目,并解压到服务器上:
shell
wget http://example.com/spring-boot-project.zip
unzip spring-boot-project.zip
3. 进入项目目录,打包:
shell
cd spring-boot-project
mvn package
4. 启动 Spring Boot 项目:
shell
java -jar target/spring-boot-project.jar
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(84条)