本文主要以图文的形式讲解mall项目所需环境在windows下的安装,主要包括IDEA、Mysql、Redis、Elasticsearch、Mongodb、RabbitMQ、OSS。
1.关于IDEA的安装与使用具体参考https://github.com/judasn/IntelliJ-IDEA-Tutorial
2.搜索插件仓库,安装插件lombok
3.将项目下载到本地,然后直接打开
1.下载Redis,下载地址:https://github.com/MicrosoftArchive/redis/releases
2.下载完后解压到指定目录
3.在当前地址栏输入cmd后,执行redis的启动命令:redis-server.exe redis.windows.conf
1.下载Elasticsearch6.2.2的zip包,并解压到指定目录,下载地址:https://www.elastic.co/cn/downloads/past-releases/elasticsearch-6-2-2
2.安装中文分词插件,在elasticsearch-6.2.2\bin目录下执行以下命令:elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.2.2/elasticsearch-analysis-ik-6.2.2.zip
3.运行bin目录下的elasticsearch.bat启动Elasticsearch
4.下载Kibana,作为访问Elasticsearch的客户端,请下载6.2.2版本的zip包,并解压到指定目录,下载地址:https://artifacts.elastic.co/downloads/kibana/kibana-6.2.2-windows-x86_64.zip
5.运行bin目录下的kibana.bat,启动Kibana的用户界面
6.访问http://localhost:5601 即可打开Kibana的用户界面
1.下载Mongodb安装包,下载地址:https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.21-signed.msi
2.选择安装路径进行安装
3.在安装路径下创建data\db和data\log两个文件夹
4.在安装路径下创建mongod.cfg配置文件
systemLog:
destination: file
path: D:\developer\env\MongoDB\data\log\mongod.log
storage:
dbPath: D:\developer\env\MongoDB\data\db
5.安装为服务(运行命令需要用管理员权限)
D:\developer\env\MongoDB\bin\mongod.exe --config "D:\developer\env\MongoDB\mongod.cfg" --install
6.服务相关命令
启动服务:net start MongoDB
关闭服务:net stop MongoDB
移除服务:D:\developer\env\MongoDB\bin\mongod.exe --remove
7.下载客户端程序:https://download.robomongo.org/1.2.1/windows/robo3t-1.2.1-windows-x86_64-3e50a65.zip
8.解压到指定目录,打开robo3t.exe并连接到localhost:27017
1.安装Erlang,下载地址:http://erlang.org/download/otpwin6421.3.exe
2.安装RabbitMQ,下载地址:https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.14/rabbitmq-server-3.7.14.exe
3.安装完成后,进入RabbitMQ安装目录下的sbin目录
4.在地址栏输入cmd并回车启动命令行,然后输入以下命令启动管理功能:
rabbitmq-plugins enable rabbitmq_management
5.访问地址查看是否安装成功:http://localhost:15672/
6.输入账号密码并登录:guest guest
7.创建帐号并设置其角色为管理员:mall mall
8.创建一个新的虚拟host为:/mall
9.点击mall用户进入用户配置页面
10.给mall用户配置该虚拟host的权限
11.至此,RabbitMQ的安装和配置完成。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有