ActiveMQ在Mac下的设置配备,测试蒙受搭建

By admin in 美高梅手机版4858 on 2019年4月23日

框架中需求用到redis、zookeeper和activemq,方今支付条件搭建在Mac下,使用brew安装是相比较省事飞速的点子:

Redis/zookeeper/ActiveMQ在Mac下的设置配备,rediszookeeper

框架中须要用到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   [email protected]2.6       [email protected]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

美高梅手机版4858 ,启动redis

$ redis-server /usr/local/etc/redis.conf &

启动zookeeper

$ zkServer start

启动activemq

$ activemq start

 

框架中必要用到redis、zookeeper和activemq,近来支付情形搭建在Mac下,使用brew安装是相比较简…

框架中供给用到redis、zookeeper和activemq,近日开辟条件搭建在Mac下,使用brew安装是相比较轻巧快速的法子:

壹,consual:一,下载consul,解压缩后复制consul贰进制文件到/usr/local/bin:cd
路线    sudo scp consul /usr/local/bin

$ 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
$ 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

                 二,consul运行命令:consul agent -data-dir /tmp/consul
-node=zhangxin -bind=1九贰.16捌.0.16六 -join=192.16八.0.一5=========consul
agent -dev

通过search查到对应的安装包,运营brew install实现安装

经过search查到相应的安装包,运营brew install完结安装

二,kafka:1,下载zookeeper:(brew install zookeeper)

brew install redis
brew install zookeeper
brew install activemq
brew install redis
brew install zookeeper
brew install activemq

ActiveMQ在Mac下的设置配备,测试蒙受搭建。            2,解压缩:tar zxvf zookeeper-3.4.6.tar.gz

安装后举行布局和起步

安装后开始展览配备和起步

             三,进入目录: cd zookeeper-三.四.6

vi /usr/local/etc/redis.conf
vi /usr/local/etc/redis.conf

            4,强制复制并读改:cp -rf conf/zoo_sample.cfg conf/zoo.cfg

修改个中的password值

修改当中的password值

            5,vim zoo.cfg

requirepass 123456
requirepass 123456

             6,下载Kafka:brew
Install kafka:目录(/usr/local/Cellar/kafka/0.10.2.0)

启动redis

启动redis

             7,进入此目录:cd /usr/local/Cellar/kafka/0.10.二.0

$ redis-server /usr/local/etc/redis.conf &
$ redis-server /usr/local/etc/redis.conf &

             8,启动zookeeper::./bin/zookeeper-server-start
/usr/local/etc/kafka/zookeeper.properties &

启动zookeeper

启动zookeeper

              9,启动Kafka服务:./bin/kafka-server-start
/usr/local/etc/kafka/server.properties &

$ zkServer start
$ zkServer start

              10,创建topic:./bin/kafka-topics –create –zookeeper
localhost:2181 –replication-factor 1 –partitions 1 –topic test1

启动activemq

启动activemq

               11,查看创立的topic:./bin/kafka-topics –list
–zookeeper localhost:21八一

$ activemq start
$ activemq start

安装Kafka:需要装zookeeper,Kafka,topic

 

 

叁,redis:redis服务开启关闭:

reds:key-value数据库,数据结构服务器

先进入:192.168.0.15

查阅redis是还是不是连接符合规律:redis-cli

查看redis的进程:ps -ef|grep redis

关掉redid进程:kill -9 port

查阅redis进程已关门:ps -ef|grep redis

查阅redis配置文件路线:whereis redis.config

进去redis.config配置文件目录:cd ls

翻开配置文件:cat

查看redid路径:whereis redis-server

进去redid服务目录下:cd /usr/local/bin/

启动redis:./redis-server

crl+c后会关闭掉redis前端运转服务:

先进入数据库:select 五

翻看索引职责:keys *

归来key列表的一定成分:lrange keyname  start(0) end(-一)

本地复制:cp

长途复制:scp

redis原来每一种阶段的任务状态都要封存在redis中,为来节省redis内部存款和储蓄器,以往只更新阶段的风行状态

后台运营redis:

查看redis服务:ps-ef|grep redis

一经服务未起则重启redis:nohup redis-server &

查看redis进程:ps -ef|grep redis

redis 安装 启动,连接:

设置:下载,解压缩,进入文件夹目录,实践make

启动redis:进入src目录,执行redis-server:./redis-server

连接redis:重新张开三个新的极端,进入到src目录下,实行redis-cli:./redis-cli

select 5:进入redis库

keys *:查看库的内容

四,DB

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图
Copyright @ 2010-2019 美高梅手机版4858 版权所有