Rabbitmq installation and pits encountered

1. Install erlang
Execute the following command as root
yum install erlang
yum install erlang xmlto

2. Install the epel source
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
Test whether the installation is successful;
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
Test whether the installation is successful command:
service rabbitmq-server start


Error handling:
1, wget https://packages.erlang-solutions.com/erlangsolutions-1.0-1.noarch.rpm
Report 404 error
The specific instructions are as follows:
I checked online and found that it was a DNS server error. So modify /etc/resolv.conf
Add a nameserver 8.8.8.8 done
# yum clean all
# yum update
Rename /lib/modules/2.6.x/kernel/net/ipv6 and reboot.
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
Error when decompressing tar.gz file
  [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
  The reason is that this compressed package is not compressed in gzip format, so there is no need to add the z command
  [Sun@localhost Downloads]$ tar -xvf clion-141.351.4.tar.gz
  that's it
3.yum install erlang
Error: No package erlang available
PS: Similarly, if the "No package nginx available" prompt appears when installing nginx, it is also solved by this method, which can be solved by installing the EPEL library.
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

//Install

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 uses erlang R14B version
If it is rabbitmq3.6 or above, you must use erlangR16B3 or above, and below 19.3
20 does not support, the official website says there is a change

6, the question:
ERROR: epmd error for host "****": timeout (timed out establishing tcp connection)

# vi /etc/rabbitmq/rabbitmq-env.conf

NODENAME=rabbit@localhost
Just write a sentence "NODENAME=rabbit@localhost" in the file, and it's OK to save it;
# /sbin/service rabbitmq-server start
Starting rabbitmq-server (via systemctl):                  [  确定  ]
Started successfully, the problem is solved!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326351913&siteId=291194637