Update deploy-windows.md

This commit is contained in:
zhh 2018-12-13 13:46:39 +08:00
parent 8a81ac9421
commit fb82427d46

View File

@ -22,10 +22,41 @@
- 启动elasticsearch:运行elasticsearch-2.4.6\bin\elasticsearch.bat
- 打开该地址测试是否安装成功http://localhost:9200/_plugin/head/
## mongo
## mongodb
- 下载地址https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
- 选择路径c:\mongodb\进行安装在安装路径下创建data\db和data\log两个文件夹
- 服务端运行程序mongodb\bin\mongod.exe
- 客户端运行程序mongodb\bin\mongo.exe
- 创建配置文件mongodb\mongod.cfg
``` lua
systemLog:
destination: file
path: c:\mongodb\data\log\mongod.log
storage:
dbPath: c:\mongodb\data\db
```
- 安装为服务C:\mongodb\bin\mongod.exe --config "C:\mongodb\mongod.cfg" --install
- 安装为服务F:\developer\IDE\idea\mongodb-bundle\mongodb-server\bin\mongod.exe --config "F:\developer\IDE\idea\mongodb-bundle\mongodb-server\mongod.cfg" --install
- 启动服务net start MongoDB
- 关闭服务net stop MongoDB
- 移除服务C:\mongodb\bin\mongod.exe --remove
- 下载客户端程序https://download.robomongo.org/1.2.1/windows/robo3t-1.2.1-windows-x86_64-3e50a65.zip
- 解压到指定目录打开robo3t.exe并连接到localhost:27017
## rabbitmq
- 安装Erlanghttp://www.erlang.org/download/otp_win64_17.3.exe
- 下载rabbitmq:http://www.rabbitmq.com/releases/rabbitmq-server/v3.4.1/rabbitmq-server-3.4.1.exe
- 按照提示进行安装安装完成后左下角搜索rabbitmq点击如下命令进行安装
![rabbitmq_install_1.png](https://github.com/macrozheng/mall/blob/master/document/resource/rabbitmq_install_1.png)
- 输入命令启用管理工具rabbitmq-plugins enable rabbitmq_management
- 访问地址查看是否安装成功http://127.0.0.1:15672/
- 输入账号密码登录guest guest
- 创建用户并设置其角色为管理员mall mall
- 创建virtual host:/mall
- 给mall用户配置范围该virtual host的权限
## mall-admin
- 启动项目直接运行com.macro.mall.MallAdminApplication的main方法即可
@ -39,3 +70,6 @@
- 如出现无法启动的问题可以先删除elasticsearch里面的数据再启动
## mall-portal
- 启动mall-portal项目直接运行com.macro.mall.portal.MallPortalApplication的main方法即可
- 接口文档地址http://localhost:8085/swagger-ui.html