框架中需要用到redis、zookeeper和activemq,目前开发环境搭建在Mac下,使用brew安装是比较简便快捷的方式:
$ brew search zookeeper zookeeper ✔ homebrew/php/php53-zookeeper homebrew/php/php55-zookeeper homebrew/php/php54-zookeeper homebrew/php/php56-zookeeper $ brew search redis hiredis redis ✔ redis-leveldb redis@2.6 redis@2.8 homebrew/nginx/redis-nginx-module homebrew/php/php56-redis homebrew/php/php72-redis homebrew/php/php70-redis homebrew/php/php53-redis homebrew/php/php71-redis homebrew/php/php54-redis caskroom/cask/redis-app homebrew/php/php55-redis $ brew search activemq activemq ✔ activemq-cpp
通过search查到对应的安装包,运行brew install完成安装
brew install redis brew install zookeeper brew install activemq
安装后进行配置和启动
vi /usr/local/etc/redis.conf
修改其中的password值
requirepass 123456
启动redis
$ redis-server /usr/local/etc/redis.conf &
启动zookeeper
$ zkServer start
启动activemq
$ activemq start