Skip to content

Commit 4af1066

Browse files
💻 1.2.3.RELEASE CentOS Quick Installation Environment / Build / Deploy / Launch Spring-boot-plus Project
1 parent c745e18 commit 4af1066

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

README-zh.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ create table sys_user(
116116
-- ----------------------------
117117
INSERT INTO sys_user (id, name, account, pwd, remark, create_time, update_time) VALUES (1, 'Administrator', 'admin', '123456', 'Administrator Account', '2019-08-26 00:52:01', null);
118118

119+
119120
```
120121

121122
### 2.使用代码生成器生成增删改查代码
@@ -233,6 +234,59 @@ public class SpringBootPlusApplication {
233234
## 详细文档
234235
[https://springboot.plus](https://springboot.plus)
235236

237+
## CentOS快速安装环境/构建/部署/启动spring-boot-plus项目
238+
### 1. 下载安装脚本
239+
> 安装 `jdk`, `git`, `maven`, `redis`, `mysql`
240+
241+
```bash
242+
wget -O download-install-all.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/dev/docs/bin/install/download-install-all.sh
243+
```
244+
245+
### 2. 运行安装脚本
246+
```bash
247+
sh download-install-all.sh
248+
```
249+
250+
### 3. 修改MySQL密码
251+
```bash
252+
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Springbootplus666!';
253+
exit
254+
mysql -uroot -pSpringbootplus666!
255+
```
256+
257+
### 4. 导入MySQL脚本
258+
```bash
259+
create database if not exists spring_boot_plus character set utf8mb4;
260+
use spring_boot_plus;
261+
source /root/mysql_spring_boot_plus.sql;
262+
show tables;
263+
exit
264+
```
265+
266+
### 5. 下载部署脚本 `deploy.sh`
267+
```bash
268+
wget -O deploy.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/dev/deploy/deploy.sh
269+
```
270+
271+
### 6. 执行脚本
272+
```bash
273+
sh deploy.sh
274+
```
275+
276+
### 7.访问项目
277+
> SpringBootAdmin管理页面
278+
279+
[http://47.105.159.10:8888](http://47.105.159.10:8888)
280+
281+
> spring-boot-plus Swagger文档页面
282+
283+
[http://47.105.159.10:8888/docs](http://47.105.159.10:8888/docs)
284+
285+
### 8. 查看项目运行日志
286+
```bash
287+
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
288+
```
289+
236290
## 联系
237291
238292
- spring-boot-plus技术交流群

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,60 @@ public class SpringBootPlusApplication {
233233
## Documentation
234234
[https://springboot.plus](https://springboot.plus)
235235

236+
237+
## CentOS Quick Installation Environment / Build / Deploy / Launch Spring-boot-plus Project
238+
### 1. Download the installation script
239+
> Install `jdk`, `git`, `maven`, `redis`, `mysql`
240+
241+
```bash
242+
wget -O download-install-all.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/dev/docs/bin/install/download-install-all.sh
243+
```
244+
245+
### 2. Run the installation script
246+
```bash
247+
sh download-install-all.sh
248+
```
249+
250+
### 3. Modify MySQL password
251+
```bash
252+
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Springbootplus666!';
253+
exit
254+
mysql -uroot -pSpringbootplus666!
255+
```
256+
257+
### 4. Import MySQL scripts
258+
```bash
259+
create database if not exists spring_boot_plus character set utf8mb4;
260+
use spring_boot_plus;
261+
source /root/mysql_spring_boot_plus.sql;
262+
show tables;
263+
exit
264+
```
265+
266+
### 5. Download deployment script `deploy.sh`
267+
```bash
268+
wget -O deploy.sh https://raw.githubusercontent.com/geekidea/spring-boot-plus/dev/deploy/deploy.sh
269+
```
270+
271+
### 6. Execution script
272+
```bash
273+
sh deploy.sh
274+
```
275+
276+
### 7.Access project
277+
> SpringBootAdmin Management page
278+
279+
[http://47.105.159.10:8888](http://47.105.159.10:8888)
280+
281+
> spring-boot-plus Swagger Document page
282+
283+
[http://47.105.159.10:8888/docs](http://47.105.159.10:8888/docs)
284+
285+
### 8. View project run log
286+
```bash
287+
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
288+
```
289+
236290
## Contact
237291
238292
- QQ Group

0 commit comments

Comments
 (0)