forked from macrozheng/mall-swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e09c063
commit e637af6
Showing
25 changed files
with
106 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# mall-swarm 在windows环境下的部署 | ||
|
||
## 开发环境搭建 | ||
|
||
> `mall-swarm`中使用到的环境和`mall`项目中大致相同,具体可以查看[mall在Windows环境下的部署](https://github.com/macrozheng/mall-learning/blob/master/docs/deploy/mall_deploy_windows.md)。 | ||
简易环境搭建流程: | ||
|
||
- 安装IDEA并导入项目源码; | ||
- 安装MySql,创建一个`mall`数据库,并导入`/document/sql/mall.sql`文件; | ||
- 安装Redis、Elasticsearch、MongoDB、RabbitMQ等环境。 | ||
|
||
## 项目部署 | ||
|
||
> `mall-swarm`项目启动有先后顺序,大家要按照以下顺序启动。 | ||
### 启动注册中心`mall-registory` | ||
|
||
- 直接运行com.macro.mall.MallRegistryApplication的main函数即可; | ||
- 运行完成后可以通过注册中心控制台查看:http://localhost:8001 | ||
|
||
### 启动配置中心`mall-config` | ||
|
||
- 直接运行com.macro.mall.MallConfigApplication的main函数即可; | ||
- 访问以下接口获取mall-admin在dev环境下的配置信息:http://localhost:8301/master/admin-dev.yml | ||
|
||
### 启动监控中心`mall-monitor` | ||
|
||
- 直接运行com.macro.mall.MallMonitorApplication的main函数即可; | ||
- 运行完成后可以通过监控中心控制台查看:http://localhost:8101 | ||
- 输入账号密码`macro:123456`可以登录查看。 | ||
|
||
### 启动网关服务`mall-gateway` | ||
|
||
- 直接运行com.macro.mall.MallGatewayApplication的main函数即可; | ||
- 访问以下接口获取动态路由规则:http://localhost:8201/actuator/gateway/routes | ||
|
||
### 启动后台管理服务`mall-admin` | ||
|
||
- 直接运行com.macro.mall.MallAdminApplication的main函数即可; | ||
- 通过`mall-gateway`网关服务访问接口文档:http://localhost:8201/mall-admin/swagger-ui.html | ||
|
||
![](../resource/mall_swarm_windows_06.png) | ||
|
||
- 登录接口地址:http://localhost:8201/mall-admin/admin/login | ||
- 访问登录接口获取到token后放入认证的头信息即可正常访问其他需要登录的接口: | ||
|
||
![](../resource/mall_swarm_windows_09.png) | ||
|
||
### 启动前台服务`mall-portal` | ||
|
||
- 直接运行com.macro.mall.portal.MallPortalApplication的main函数即可; | ||
- 通过`mall-gateway`网关服务访问接口文档:http://localhost:8201/mall-portal/swagger-ui.html | ||
|
||
![](../resource/mall_swarm_windows_07.png) | ||
|
||
- 登录接口地址:http://localhost:8201/mall-portal/sso/login | ||
- 调用需要登录的接口方式同`mall-admin`。 | ||
|
||
### 启动搜索服务`mall-search` | ||
|
||
- 直接运行com.macro.mall.search.MallSearchApplication的main函数即可; | ||
- 通过`mall-gateway`网关服务访问接口文档:http://localhost:8201/mall-search/swagger-ui.html | ||
|
||
![](../resource/mall_swarm_windows_10.png) | ||
|
||
### 启动测试服务`mall-demo` | ||
|
||
- 直接运行com.macro.mall.MallAdminApplication的main函数即可; | ||
- 通过`mall-gateway`网关服务访问接口文档:http://localhost:8201/mall-demo/swagger-ui.html | ||
|
||
![](../resource/mall_swarm_windows_08.png) | ||
|
||
- 可以通过调用FeignAdminController、FeignPortalController、FeignSearchController来测试使用Feign的远程调用功能。 | ||
|
||
## 效果展示 | ||
|
||
- 注册中心服务信息: | ||
|
||
![](../resource/mall_swarm_windows_01.png) | ||
|
||
- 监控中心服务概览信息: | ||
|
||
![](../resource/mall_swarm_windows_02.png) | ||
|
||
![](../resource/mall_swarm_windows_03.png) | ||
|
||
- 监控中心单应用详情信息: | ||
|
||
![](../resource/mall_swarm_windows_04.png) | ||
|
||
![](../resource/mall_swarm_windows_05.png) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters