--
參考資源
--
安裝 erl
1 2 3 4 |
yum install epel-release yum -y update yum install erlang socat erl --version |
連續兩次 Ctrl + C 可以退出 erl shell
--
安裝 RabbitMQ
rpm 必須到 github 下載
1 2 3 |
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_10/rabbitmq-server-3.6.10-1.el7.noarch.rpm rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc rpm -Uvh rabbitmq-server-3.6.10-1.el7.noarch.rpm |
服務啟動
1 2 |
systemctl start rabbitmq-server systemctl enable rabbitmq-server |
--
設定 IPv4
預設只監聽在 IPv6,目前 202306 還是 IPv4 為主
1 |
vi /etc/rabbitmq/rabbitmq.config |
1 2 3 4 5 6 |
[ {rabbit, [ {tcp_listeners, [{"0.0.0.0", 5672}]} ] } ]. |
重起服務
1 |
systemctl restart rabbitmq-server |
--
設定 RabbitMQ Management
1 2 3 4 5 6 |
rabbitmq-plugins enable rabbitmq_management chown -R rabbitmq:rabbitmq /var/lib/rabbitmq rabbitmqctl add_user admin my_password rabbitmqctl set_user_tags admin administrator rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" systemctl restart rabbitmq-server |
http://ip:15672
--
271 total views, 1 views today