RabbitMQ-CentOS 7 安裝配置
阿新 • • 發佈:2018-12-13
1、安裝依賴環境
yum -y install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl yum -y install install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl openssl-devel xmlto zip unzip yum -y install gtk2-devel binutils-devel wget http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rp yum install erlangm
2. 下載rabbitMQ
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz
yum -y install xz
xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.9.tar
3.安裝配置 cd rabbitmq_server-3.6.9/sbin
./rabbitmq-server 返回錯誤 ERROR: epmd error for host “****”: timeout (timed out establishing tcp connection)網路查詢以後發現 主機名和ip不匹配 更改 /etc/hosts 增加 127.0.0.1 機器的hostname
啟動
./rabbitmq-server start
檢視狀態
./rabbitmqctl status
4、配置網頁訪問RabbitMQ
1、檢視RabbitMQ中使用者命令
rabbitmqctl list_users
2、建立使用者命令
rabbitmqctl add_user hjp hjp
3、賦予使用者許可權命令
rabbitmqctl set_permissions -p “/” hjp ‘.’ '.’ ‘.*’
4、賦予使用者角色命令
rabbitmqctl set_user_tags hjp administrator
5、開啟rabbitmq管理控制檯命令
rabbitmq-plugins enable rabbitmq_management
6、訪問http://192.168.36.1:15672/