RabbitMQ安装

RabbitMQ

RabbitMQ官方网站:传送门

RabbitMQ下载网站:下载传送门

系统 centos7
RabbitMQ 3.7.7
Erlang 19.3+

安装

RabbitMQ需要erlang环境,安装erlang

附带Erlang和RabbitMQ对应版本地址传送门,注意有最大和最小版本要求,不是版本越新越好
$ yum install erlang -y
如果提示没有可用软件包 erlang。传送门
下载,安装RabbitMQ
$ wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.7/rabbitmq-server-3.7.7-1.el7.noarch.rpm
$ rpm -ivh rabbitmq-server-3.7.7-1.el7.noarch.rpm

到这里RabbitMQ就安装好了,查看状态

$ rabbitmqctl status 

停止RabbitMQ

$rabbitmqctl stop

设置开机启动

$ systemctl enable rabbitmq-server 

启动RabbitMQ

$ systemctl start rabbitmq-server

开启web管理界面

$ rabbitmq-plugins enable rabbitmq_management

添加admin账号,赋予administrator权限

$ rabbitmqctl add_user admin password
$ rabbitmqctl set_user_tags admin administrator

默认IP:127.0.0.1,默认端口:5672,默认web管理端口:15672


问题

问题一:logrotate is needed by rabbitmq-server-3.7.7-1.el7.noarch

$ yum install logrotate -y

问题二:socat is needed by rabbitmq-server-3.7.7-1.el7.noarch

$ yum install socat -y

问题三:configure: error: no acceptable C compiler found in $PATH

$ yum install gcc -y

问题四:configure: error: GNU make is required!

$ yum install make -y

问题五:error: Perl is required to generate v2 to v1 mib converter script

$ yum install perl -y

问题六:configure: error: No curses library functions found

$ yum install ncurses-devel -y    

问题七:erlang >= 19.3 is needed by rabbitmq-server-3.7.7-1.el7.noarch

上面传送门--(还没写好)

你可能感兴趣的:(工具类)