Home  >  Article  >  Operation and Maintenance  >  Example tutorial for installing rabbitmq on centos7

Example tutorial for installing rabbitmq on centos7

零下一度
零下一度Original
2017-07-19 15:45:332238browse

Installing rabbitmq under centos7. After struggling for three days, I finally made the following summary

Installing Rabbitmq on Centos7: RabbitMq requires erlang, so you need to install Rabbitmq-server and erlang. You can also download it with Thunder and copy it to Centos. .

If Erlang is not installed, you will be prompted when installing RabbitMQ:

erlang> = R16B-03 is required by rabbitmq-server-3.6.6-1.el7.noarch

[root@localhost workspace]#wgethttp://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm

[root @localhost workspace]#wgethttp://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm

Check a computer name first: example

1 #hostname2 3 name

Check the hosts configuration file: if the result is as follows, you need to modify it

1 #cat /etc/hosts2 3 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 
4 ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Modify hosts: as follows

1 #vim /etc/hosts2 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 name3 ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Installation related files: In order not to make mistakes, you need to install the EPEL source and install redis

##1.    安装 EPEL源#yum install epel-release#yum repolist##2.    安装 redis#yum install redis##3.    安装 erlang //rabbit运行支持环境#yum install erlang#Wget   //下载#rpm -ivh rabbitmq-server-3.5.0-1.noarch.rpm  //安装#chkconfig rabbitmq-server on //开机启动###配置配置文件:#cd /etc/rabbitmq #//进入目录#cp /user/share/doc/rabbitmq-server-3.5.0/rabbitmq.config.example /etc/rabbitmq/  #//复制 配置文件#mv rabbitmq.config.example rabbitmq.config  //改名###开启用户远程访问#vi /etc/rabbitmq/rabbitmq.config{loopback_users,[]}.    //改前
{loopback_users,[]}     //改后##13.    开启WEB界面管理工具#rabbitmq-plugins enable rabbitmq_management   //安装插件#service rabbitmq-server restart //重启服务###14.    开放端口  15672  5672

The above is the detailed content of Example tutorial for installing rabbitmq on centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn