关于rabbitMQ的安装步骤
1.下载
rpm -Uvh http://www.rabbitmq.com/releases/erlang/erlang-18.1-1.el7.centos.x86_64.rpm
2. 下载
rpm -Uvh http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm
3. 开放端口和关闭防火墙
开放端口:
firewall-cmd --permanent --add-port=5672/tcp --permanent
firewall-cmd --permanent --add-port=15672/tcp --permanent
firewall-cmd --reload
setsebool -P nis_enabled 1
停止:
systemctl stop firewalld.service
service iptables stop
systemctl stop firewalld
systemctl disable firewalld
firewall-cmd --state
4. 启动服务
service rabbitmq-server start
5. 开启管理15672端口
rabbitmq-plugins enable rabbitmq_management
6. 新增用户并设权限
rabbitmqctl add_user admin 123456 (admin用户名,密码123456)
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'
7. 测试
netstat -na|grep 5672
netstat -na|grep 15672
或在浏览器:(如果上面端口有,却网址打不开,一般是防火墙)
http://192.168.11.250:15672/
输入用户名admin,密码123456
直接复制即可!