mall Mac下安装环境
发布于 7 个月前 作者 qjzd 325 次浏览 来自 码农

IDEA

关于IDEA的安装与使用具体参考https://github.com/judasn/IntelliJ-IDEA-Tutorial 搜索插件仓库,安装插件lombok

mysql

redis

https://www.jianshu.com/p/3bdfda703552 brew install redis brew services start redis brew services restart redis redis-server /usr/local/etc/redis.conf

ElasticSearch

https://www.jianshu.com/p/81b0b3a60c01 brew install elasticsearch@2.4 echo ‘export PATH="/usr/local/opt/elasticsearch@2.4/bin:$PATH"’ >> ~/.bash_profile

安装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目录下

brew services start elasticsearch brew services start elasticsearch@2.4 elasticsearch 打开该地址测试是否安装成功:http://localhost:9200/_plugin/head/

mongodb

xcode-select --install 改变编译条件 https://stackoverflow.com/questions/24052145/trouble-reinstalling-mongodb-with-homebrew-using-os-x-10-10-yosemite-beta/24885100#24885100 brew install mongodb@3.2 http://yijiebuyi.com/blog/b6a3f4a726b9c0454e28156dcc96c342.html

mongodb@3.2 is keg-only, which means it was not symlinked into /usr/local, because this is an alternate version of another formula.

If you need to have mongodb@3.2 first in your PATH run: echo ‘export PATH="/usr/local/opt/mongodb@3.2/bin:$PATH"’ >> ~/.bash_profile

To have launchd start mongodb@3.2 now and restart at login: brew services start mongodb@3.2 Or, if you don’t want/need a background service you can just run: /usr/local/opt/mongodb@3.2/bin/mongod --config /usr/local/etc/mongod.conf

rabbitmg

brew install rabbitmq brew services start rabbitmq /usr/local/opt/rabbitmq/sbin/rabbitmq-plugins enable rabbitmq_management 访问地址查看是否安装成功:http://127.0.0.1:15672/ 输入账号密码登录:guest guest 创建用户并设置其角色为管理员:mall mall https://github.com/macrozheng/mall/raw/master/document/resource/rabbitmq_install_2.png 创建virtual host:/mall https://github.com/macrozheng/mall/raw/master/document/resource/rabbitmq_install_3.png 给mall用户配置范围该virtual host的权限 https://github.com/macrozheng/mall/raw/master/document/resource/rabbitmq_install_4.png

回到顶部