mall/document/reference/deploy-windows.md
2018-12-12 17:01:33 +08:00

42 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# windows下环境安装
## mysql
- 下载地址https://dev.mysql.com/downloads/mysql/5.7.html#downloads
- 下载后按提示进行安装
- 导入document/sql下的mall.sql文件
## redis
- 下载地址https://github.com/MicrosoftArchive/redis/releases
- 下载后按提示进行安装
## elasticsearch
- 下载地址https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-6
- 下载.zip文件解压到指定目录
- 安装head插件在elasticsearch-2.4.6\bin目录下执行以下命令plugin install mobz/elasticsearch-head
- 安装中文分词插件https://github.com/medcl/elasticsearch-analysis-ik
- 下载地址https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v1.10.6/elasticsearch-analysis-ik-1.10.6.zip
- 解压并拷贝到elasticsearch-2.4.6\plugins目录下
- 启动elasticsearch:运行elasticsearch-2.4.6\bin\elasticsearch.bat
- 打开该地址测试是否安装成功http://localhost:9200/_plugin/head/
## mongo
## rabbitmq
## mall-admin
- 启动项目直接运行com.macro.mall.MallAdminApplication的main方法即可
- 接口文档地址http://localhost:8080/swagger-ui.html
## mall-search
- 启动项目直接运行com.macro.mall.search.MallSearchApplication的main方法即可
- 接口文档地址http://localhost:8081/swagger-ui.html
- 使用前需要先调用接口导入数据http://localhost:8081/esProduct/importAll
- 如出现无法启动的问题可以先删除elasticsearch里面的数据再启动
## mall-portal