参考自腾讯云的实验课堂,减少部署时间的折腾
1、创建Erlang.Repo库
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
2、安装Erlang
yum install -y erlang
3、创建RabbitMQ-Server.Repo库
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
4、安装RabbitMQ-Server
yum install -y rabbitmq-server
5、开机自启动设置(可选)
chkconfig rabbitmq-server on
6、服务启动
service rabbitmq-server start
7、开启访问页面
rabbitmq-plugins enable rabbitmq_management
8、添加登录账号
rabbitmqctl add_user test 123456
9、账号权限设置
rabbitmqctl set_user_tags test administrator rabbitmqctl set_permissions -p "/" test ".*" ".*" ".*"
10、访问后台信息:
http://192.168.2.121:15672/ test 123456
11、服务停止
service rabbitmq-server stop
访问不了,关闭防火墙处理:
systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动
参考腾讯云实验室,很多东西在这里搞安装教程贼方便
https://cloud.tencent.com/developer/labs/gallery
防止依赖缺失,还是加上这段命令:
yum install -y build-essential \ unixODBC \ unixODBC-devel \ kernel-devel \ m4 \ tk \ tc \ xz \ gcc \ gcc-c++ \ glibc-devel \ make \ ncurses-devel \ openssl \ openssl-devel \ xmlto \ perl \ wget \ gtk2-devel \ binutils-devel
草,一年前写了,算了算了,留着吧
https://www.cnblogs.com/mindzone/p/13660810.html