安装erlang方案二
vi /etc/yum.repos.d/rabbitmq-erlang.repo
文件内容:
In /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/22/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
yum install erlang
rabbaitmq 安装
#安装socat
yum -y install socat
#下载rabbitmq 速度有些慢
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-3.8.2-1.el7.noarch.rpm
#安装rabbitmq
rpm -ivh rabbitmq-server-3.8.2-1.el7.noarch.rpm
#试运行rabbitmq
rabbitmq-server
安装二:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server-generic-unix-3.8.2.tar.xz
yum install -y xz (有xz命令可以不用安装)
/bin/xz -d rabbitmq-server-generic-unix-3.8.2.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.8.2.tar
mv rabbitmq_server-3.8.2/ /usr/local
mv /usr/local/rabbitmq_server-3.8.2 rabbitmq
echo ‘export PATH=$PATH:/usr/local/rabbitmq/sbin’ >> /etc/profile
source /etc/profile
mkdir /etc/rabbitmq(创建配置目录)
#参考资料
https://blog.csdn.net/gzy11/article/details/102774678 centos rabbitmq3.8 安装
https://blog.csdn.net/fuck487/article/details/78652927 RabbitMQ环境变量设置
https://www.cnblogs.com/fengyumeng/p/11133924.html CentOS7安装RabbitMQ
https://blog.csdn.net/ebw123/article/details/50239457 RabbitMQ消息队列在PHP下的应用
https://blog.csdn.net/qq_34908844/article/details/88888719 Docker+TP5+RabbitMQ+入消息队列+自动消费队列