您好,登錄后才能下訂單哦!
今天小編就為大家?guī)硪黄狢entOS7系統(tǒng)環(huán)境中部署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
訪問網(wǎng)站: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
訪問網(wǎng)站:http://192.168.0.102:15672
登錄結(jié)果:使用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 #重啟服務(wù)
systemctl start rabbitmq-server #開啟
systemctl stop rabbitmq-server #關(guān)閉
systemctl status rabbitmq-server 查看狀態(tài)
systemctl restart rabbitmq-server #重啟
rabbitmqctl add_user admin password #創(chuàng)建用戶
#賦予權(quán)限
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin "." "." ".*"
以上就是CentOS7系統(tǒng)環(huán)境中部署RabbitMQ的方法,內(nèi)容較為全面,而且我也相信有相當?shù)囊恍┕ぞ呖赡苁俏覀內(nèi)粘9ぷ骺赡軙姷交蛴玫降?。通過這篇文章,希望你能收獲更多。
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。