MQ
RabbitMQ Server And Clustering Setup on Ubuntu 18.04
RabbitMQ中 exchange、route、queue的关系
Clustering RabbitMQ on CentOS 7
Connection reset by peer RabbitMQ Server And Clustering Setup on Ubuntu 18.04
CentOS
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v25.3.2.12/erlang-25.3.2.12-1.el8.x86_64.rpm wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.10.25/rabbitmq-server-3.10.25-1.el8.noarch.rpm yum install erlang-25.3.2.12-1.el8.x86_64.rpm yum install rabbitmq-server-3.10.25-1.el8.noarch.rpm rabbitmq-plugins enable rabbitmq_management rabbitmqctl delete_user guest rabbitmqctl add_user marsnut rabbitmqctl set_user_tags marsnut administrator rabbitmqctl set_permissions -p / marsnut ".*" ".*" ".*" rabbitmqctl change_password marsnut
ubuntu
apt install erlang apt install rabbitmq-server rabbitmq-plugins enable rabbitmq_management rabbitmqctl add_user marsnut abc123456 rabbitmqctl set_user_tags marsnut administrator rabbitmqctl set_permissions -p / marsnut ".*" ".*" ".*" rabbitmqctl change_password marsnut abc12333 ufw allow 15672
rabbitMQ安装与配置
下载elang wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm yum -y install erlang socat logrotate 下载rabbitmq wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.8/rabbitmq-server-3.8.8-1.el6.noarch.rpm rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc rpm -Uvh rabbitmq-server-3.8.8-1.el6.noarch.rpm #systemctl enable rabbitmq-server #systemctl start rabbitmq-server 设置防火墙 #firewall-cmd --list-all #firewall-cmd --list-services #firewall-cmd --list-ports yum install firewalld systemctl enable firewalld systemctl start firewalld firewall-cmd --zone=public --permanent --add-port=4369/tcp firewall-cmd --zone=public --permanent --add-port=25672/tcp firewall-cmd --zone=public --permanent --add-port=5671-5672/tcp firewall-cmd --zone=public --permanent --add-port=15672/tcp firewall-cmd --zone=public --permanent --add-port=61613-61614/tcp firewall-cmd --zone=public --permanent --add-port=1883/tcp firewall-cmd --zone=public --permanent --add-port=8883/tcp firewall-cmd --reload 设置rabbitmq rabbitmq-plugins enable rabbitmq_management chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/ 增加用户 rabbitmqctl add_user xwq abc123 rabbitmqctl set_user_tags xwq administrator rabbitmqctl set_permissions -p / xwq ".*" ".*" ".*" #vim /etc/hosts 10.0.8.13 artHW 202.101.119.21 artHW