centos7.2安装rabbitmq教程
环境: centos7.2
rabbitmq依赖erlang,需要先安装erlang
1 安装erlang
rpm -Uvh https://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install erlang
2 安装RabbitMq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm yum -y install rabbitmq-server-3.6.6-1.el7.noarch.rpm
3 启动RabbitMq(如果不能全局执行启动命令,???切换到安装目录执行, 笔者是 /usr/lib/rabbitmq/bin)
systemctl start rabbitmq-server
4 查看RabbitMq状态
systemctl status rabbitmq-server
5 停止RabbitMq服务
systemctl stop rabbitmq-server
6 RabbitMq默认自带一个账号为 guest, 密码也为guest的用户,但是只能本机访问,如果需要在其他服务器访问,需要添加配置文件,默认没有,按照官方推荐方式直接复制一份
cd /etc/rabbitmq cp /usr/share/doc/rabbitmq-server-3.6.6/rabbitmq.config.example rabbitmq.config
7 修改配置文件,rabbitmq.config配置文件打开以下注释,并去掉最后的逗号
{loopback_users, []},
8 开启浏览器访问功能
rabbitmq-plugins enable rabbitmq_management
9 开启防火墙增加可访问端口
firewall-cmd --add-port=15672/tcp --permanent firewall-cmd --reload
10 通过 ip:15672访问rabbitmq主页,默认有一个guest、 guest账户
相关推荐
NVEFLY 2020-07-04
OnMyHeart 2020-06-06
87447007 2020-05-16
zhuxue 2020-10-14
shenzhenzsw 2020-10-09
shyoldboy 2020-09-27
leihui00 2020-09-16
lishijian 2020-08-17
程序员伊成 2020-08-06
ljcsdn 2020-07-27
waitzkj 2020-07-25
powrexly 2020-07-20
liym 2020-07-20
zhoucheng0 2020-07-19
shenzhenzsw 2020-07-18
woaishanguosha 2020-07-18
waitzkj 2020-07-18
zhoucheng0 2020-07-08