zoukankan      html  css  js  c++  java
  • Redis/zookeeper/ActiveMQ在Mac下的安装配置

    框架中需要用到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
  • 相关阅读:
    ref和out的区别
    final、finally、finalize的区别
    get和post的区别
    什么是事务
    锁的详细
    什么是游标
    什么是存储过程
    委托的来由
    多线程的秘密
    String str=null; 和String str=""的区别
  • 原文地址:https://www.cnblogs.com/growingpains/p/7207830.html
Copyright © 2011-2022 走看看