Jeecg-Boot 前后端linux部署流程

linux 部署流程

前提准备

  1. 安装mysql
    mysql5.7安装教程
  2. 安装redis
    redis安装教程
  3. 安装nginx
    nginx安装教程
  4. 安装jdk
    jdk1.8安装教程
  5. 安装minio(如果你使用的话)
    安装docker
    docker下安装minio

部署流程

. 后台打包

  1. 新建一个目录存放jar包
[root@iZbp1268ldc0zhxbsmny6xZ opt]# mkdir cspboot

  1. 把jar包上传上来
[root@iZbp1268ldc0zhxbsmny6xZ cspboot]# ll
total 107600
-rwxr-xr-x 1 root root 110143835 Jul 20 16:33 csp-boot-module-system-3.0.0.jar

  1. 启动项目
[root@iZbp1268ldc0zhxbsmny6xZ cspboot]# nohup java -jar csp-boot-module-system-3.0.0.jar >catalina.out 2>&1 &
[1] 27690

. 前端打包

  1. 进入前端项目的根目录:编译项目,生成dist文件
yarn run build
  1. 把dist文件压缩上传到nginx html目录下
[root@iZbp1268ldc0zhxbsmny6xZ ~]# cd /usr/local/nginx/html/
[root@iZbp1268ldc0zhxbsmny6xZ html]# ls
50x.html   dist.zip  index.html
[root@iZbp1268ldc0zhxbsmny6xZ html]# 

  1. 把dist.zip解压
[root@iZbp1268ldc0zhxbsmny6xZ html]# unzip dist.zip
[root@iZbp1268ldc0zhxbsmny6xZ html]# ls
50x.html   dist dist.zip  index.html
  1. nginx配置
    进入
cd /usr/local/nginx/conf
vim nginx.conf

在这里插入图片描述
9. 访问:ip+端口(nginx监听端口)

  • 4
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值