erlang地址:https://packagecloud.io/rabbitmq/erlang
rabbitmq地址:https://packagecloud.io/rabbitmq/rabbitmq-server
1.1 更新源1.2 安装编译器环境yum update -y
1.3 安装erlang语言环境,新增erlang库地址yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel
1.4 安装erlang语言环境curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
1.5 查看版本号sudo yum install erlang-22.3.4.10-1.el7.x86_64
1.6 新增rabbitmq packagecloud库地址erl -version
1.7 安装rabbitmqcurl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
1.8 启动服务yum install rabbitmq-server-3.8.8-1.el7.noarch
1.9 安装web管理页面systemctl start rabbitmq-server
1.10 重启服务rabbitmq-plugins enable rabbitmq_management
1.11 访问服务 1.12 添加用户systemctl restart rabbitmq-server
2、centos7安装rabbitmq(源码) 2.1 安装依赖环境rabbitmqctl add_user root root #添加用户
rabbitmqctl set_permissions -p / root “." ".” “.*” #添加权限
rabbitmqctl set_user_tags root administrator #设置权限为管理员
2.2 下载erlang语言环境yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel
2.3 解压wget http://erlang.org/download/otp_src_22.0.tar.gz #下载到对应的路径中
2.4 创建安装路径tar -zxvf otp_src_22.0.tar.gzmv otp_src_22.0 /usr/local/ #移动到对应的路径下(自定义)
2.5 安装cd /usr/local/otp_src_22.0/ #切换到解压的路径下面mkdir ../erlang./configure --prefix=/usr/local/erlang #配置erlang install的安装路径
2.6 添加环境变量make install
/usr/local/erlang/bin #查看是否安装成功
2.7 查看版本号echo 'export PATH=$PATH:/usr/local/erlang/bin' >> /etc/profilesource /etc/profile
2.8 下载rabbitmqerl --version
2.9 安装rabittmq地址:https://github.com/rabbitmq/rabbitmq-server/releases
wget wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.15/rabbitmq-server-generic-unix-3.7.15.tar.xz #下载安装包
yum install -y xz #下载xz工具进行解压
2.10 配置环境变量/bin/xz -d rabbitmq-server-3.7.15.tar.xz
tar -xvf rabbitmq-server-3.7.15.tar.xz
mv /usr/local/rabbitmq_server-3.7.15 rabbitmq # 将文件夹进行改名
2.11 服务启动echo ‘export PATH=$PATH:/usr/local/rabbitmq/sbin’ >> /etc/profile
source /etc/profile
2.12 安装WEB管理rabbitmq-server -detached
3、windows安装rabbitmqrabbitmq-plugins enable rabbitmq_management
https://www.cnblogs.com/saryli/p/9729591.html