Rabbitmq安装以及遇到的坑
1、安装erlang 以root身份执行下面命令 yum install erlang yum install erlang xmlto 2、安装epel源 rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo 测试是否安装成功; erl 3。wget https://www.rabbitmq.com/rabbitmq-release-signing-key.asc gpg --import rabbitmq-release-signing-key.asc 4,wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.4.1/rabbitmq-server-3.4.1-1.noarch.rpm yum install rabbitmq-server-3.4.1-1.noarch.rpm 测试是否安装成功命令: service rabbitmq-server start 错误处理: 1, wget https://packages.erlang-solutions.com/erlangsolutions-1.0-1.noarch.rpm 报404错误 具体指令如下: 后来网上查了一下说是DNS服务器错误。于是修改一下 /etc/resolv.conf 添加一个nameserver 8.8.8.8完成 # yum clean all # yum update 重命名/lib/modules/2.6.x/kernel/net/ipv6后重启。 1 [root@localhost ~]# mv /lib/modules/2.6.x/kernel/net/ipv6 /lib/modules/2.6.x/kernel/net/ipv6.bak 2 [root@localhost ~]# init 6 2 在解压tar.gz文件的时候报错 [Sun@localhost Downloads]$ tar -zxvf clion-141.351.4.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now 原因是这个压缩包没有用gzip格式压缩,所以不用加z指令 [Sun@localhost Downloads]$ tar -xvf clion-141.351.4.tar.gz 这样就可以了 3.yum install erlang 报错:No package erlang available PS:同样的,如果我们在安装nginx的时候出现"No package nginx available"提示也是通过这个方法解决,安装EPEL库就可以解决。 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo //安装 4 wget https://www.rabbitmq.com/rabbitmq-release-signing-key.asc gpg --import rabbitmq-release-signing-key.asc 5. rabbitmq-server-3.4.1-1.noarch.rpm用erlang R14B版本 如果是rabbitmq3.6以上,得用erlangR16B3以上,并且19.3以下 20不支持,官网说是有改变 6,问题: ERROR: epmd error for host "****": timeout (timed out establishing tcp connection) # vi /etc/rabbitmq/rabbitmq-env.conf NODENAME=rabbit@localhost 只需要在文件中写是一句“NODENAME=rabbit@localhost”,保存就OK啦; # /sbin/service rabbitmq-server start Starting rabbitmq-server (via systemctl): [ 确定 ] 启动成功,问题解决了!
相关推荐
shenzhenzsw 2020-06-03
NVEFLY 2020-07-04
OnMyHeart 2020-06-06
87447007 2020-05-16
zhuxue 2020-10-14
shenzhenzsw 2020-10-09
shyoldboy 2020-09-27
leihui00 2020-09-16
lishijian 2020-08-17
程序员伊成 2020-08-06
ljcsdn 2020-07-27
waitzkj 2020-07-25
powrexly 2020-07-20
liym 2020-07-20
zhoucheng0 2020-07-19
shenzhenzsw 2020-07-18
woaishanguosha 2020-07-18
waitzkj 2020-07-18
zhoucheng0 2020-07-08