今天小编就为大家带来一篇CentOS7系统环境中部署RabbitMQ的文章。小编觉得挺实用的,为此分享给大家做个参考。一起跟随小编过来看看吧
setenforce 0
systemctl stop firewalld
yum -y install epel-release
yum -y install rabbitmq-server
rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_management
systemctl start rabbitmq-server
访问网站:http://192.168.0.103:15672
setenforce 0
systemctl stop firewalld
cd /etc/yum.repos.d/ #进入目录
vim rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
vim rabbitmq.repo
[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/8/
gpgcheck=0
repo_gpgcheck=0
enabled=1
yum -y install rabbitmq-server
rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_management
systemctl start rabbitmq-server
访问网站:http://192.168.0.102:15672
登录结果:使用guest证号无法登录
vim /var/log/rabbitmq/rabbit@centos8.log
解决办法:修改配置文件
vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/ebin/rabbit.app
systemctl restart rabbitmq-server.service #重启服务
systemctl start rabbitmq-server #开启
systemctl stop rabbitmq-server #关闭
systemctl status rabbitmq-server 查看状态
systemctl restart rabbitmq-server #重启
rabbitmqctl add_user admin password #创建用户
#赋予权限
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin "." "." ".*"
以上就是CentOS7系统环境中部署RabbitMQ的方法,内容较为全面,而且我也相信有相当的一些工具可能是我们日常工作可能会见到或用到的。通过这篇文章,希望你能收获更多。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。