CentOS发布
CentOS快速安装环境/构建/部署/启动spring-boot-plus项目
1. 下载安装脚本
安装
jdk
,git
,maven
,redis
,mysql
wget -O download-install-all.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/docs/bin/install/download-install-all.sh
2. 运行安装脚本
sh download-install-all.sh
3. 修改MySQL密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Springbootplus666!';
exit
mysql -uroot -pSpringbootplus666!
4. 导入MySQL脚本
create database if not exists spring_boot_plus character set utf8mb4;
use spring_boot_plus;
source /root/mysql_spring_boot_plus.sql;
show tables;
exit
deploy.sh
5. 下载部署脚本 wget -O deploy.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/deploy/deploy.sh
6. 执行脚本
sh deploy.sh
7.访问项目
SpringBootAdmin管理页面
spring-boot-plus Swagger文档页面
8. 查看项目运行日志
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log