centos7离线安装rabbitmq
1、准备rabbitmq安装包
erlang-23.3.4.10-1.el7.x86_64.rpm
rabbitmq-server-3.8.26-1.el7.noarch.rpm
socat-1.7.3.2-2.el7.x86_64.rpm
下载地址如下:https://download.csdn.net/download/tomcat523/84964972
2、下载并上传到centos7,文件列表如下:
erlang-23.3.4.10-1.el7.x86_64.rpm
rabbitmq-server-3.8.26-1.el7.noarch.rpm
socat-1.7.3.2-2.el7.x86_64.rpm
3、执行安装
rpm -ivh socat-1.7.3.2-2.el7.x86_64.rpm
rpm -ivh erlang-23.3.4.10-1.el7.x86_64.rpm
rpm -ivh rabbitmq-server-3.8.26-1.el7.noarch.rpm
4、参数配置
1、启动rabbitmq
systemctl start rabbitmq-server
2、添加admin用户
rabbitmqctl add_user admin admin
3、为admin用户添加管理员权限
rabbitmqctl set_user_tags admin administrator
4、允许web管理
rabbitmq-plugins enable rabbitmq_management
5、开启stomp通道:
rabbitmq-plugins enable rabbitmq_web_stomp
rabbitmq-plugins enable rabbitmq_web_stomp_examples
6、重启rabbitmq
sudo service rabbitmq-server restart
5、安装erlang冲突的解决办法
file /usr/lib64/erlang/bin/epmd from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/erlc from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/escript from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/run_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/to_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/no_dot_erlang.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start.script from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_clean.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
file /usr/lib64/erlang/bin/start_sasl.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
解决方案(移除最后一个报错的包):
yum remove erlang-erts-R16B-03.18.el7.x86_64
验证erlang版本:
erl --version
|