【副业】若依项目部署上线流程
[封面图]
前提
- Nginx
- Redis
Nginx
Centos7 系统
1 | yum -y install gcc gcc- c++ pcre-devel openssl-devel wget |
【验证】访问:http://ip
Redis
略
前端
执行npm run build
打包后的文件在dist
目录下,后面需要将打包后的文件放到Nginx
中
后端
修改MySQL
的ip、用户名和密码后,使用maven
打包,target
目录下生成xxx.jar
后面上传到服务器后执行java -jar xxx.jar
即可
搭建环境
配置Redis
上传后端代码
将前端打包生成的dist
目录上传到/usr/local/nginx/html/dist
将后端打包生成的xxx.jar
文件上传到/usr/service/xxx.jar
Nginx配置
1 | server { |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 王也的个人小站!
评论