centos7安裝rabbitmq 總結,centos7rabbitmq

來源:互聯網
上載者:User

centos7安裝rabbitmq 總結,centos7rabbitmq

centos7下安裝rabbitmq 折騰了三天最後做了以下總結

先查看一電腦名  :樣本

1 #hostname2 3 name

查看一下hosts設定檔:如果如下結果,就要修改下

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

修改hosts: 如下

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

安裝相關檔案:為了不出錯,要裝 EPEL源,順手安裝一下 redis

##1.    安裝 EPEL源#yum install epel-release#yum repolist##2.    安裝 redis#yum install redis##3.    安裝 erlang //rabbit運行支援環境#yum install erlang#Wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm  //下載#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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.