You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
965 B

3 months ago
## 一、后端
1. 打包后上传服务器,并解压
![[Pasted image 20250530162804.png]]
2. 在解压后的目录新建java文件夹并放入jdk17
![[Pasted image 20250530162949.png]]
3. 修改配置文件,位于解压目录/conf/
![[Pasted image 20250530163109.png]]
4. 回到解压路径 /bin 执行startup.sh 启动,观察是否启动成功,如果不成功需要查看日志
## 二、前端
1. 打包后放在指定目录并解压
![[Pasted image 20250530163530.png]]
2. 配置nginx , vim /usr/local/nginx/conf/nginx.conf
增加如下配置
![[Pasted image 20250530163611.png]]
3. 配置权限系统
![[Pasted image 20250530163747.png]]
## 三、踩坑
对于springboot 来说,环境变量值优先级大于配置文件,所以安装前一定要执行`env` 命令查看是否存在如下配置(红色标记)
![[Pasted image 20250530163244.png]]
如果存在一定要删除,使用`unset` 命令。否则会覆盖application文件中的配置