CentOS7安裝RabbitMQ(單機)
單機部署
任務時間:30min ~ 45min
創建erlang.repo庫
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
安裝erlang
yum install erlang
創建rabbitmq-server.repo庫
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
安裝rabbitmq-server
yum install rabbitmq-server
設置開機啟動
chkconfig rabbitmq-server on
啟動rabbitmq服務
service rabbitmq-server start
啟用管理後台
rabbitmq-plugins enable rabbitmq_management
添加用戶
rabbitmqctl add_user test 123456
配置用戶權限
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p "/" test ".*" ".*" ".*"
通過瀏覽器訪問管理後台
- RabbitMQ管理後台:http://<您的CVM IP 地址>:15672/
- 用戶名:test 密碼:123456
停止rabbitmq服務
service rabbitmq-server stop