學習springBoot(8)RabbitMQ

接下來想研究一下mq消息隊列,打算在linux上面弄,因此先安裝一個Centos 7 ,推薦這個安裝教程,感受比較全面 blog.csdn.net/yiyihuazi/a…html

[root@localhost ~]# 分別表明用戶名(root),主機名(localhost),當前路徑(~,當前用戶的home目錄),權限標誌位(#表明root,$表明普通用戶)node

安裝rpm包出現信賴錯誤: blog.csdn.net/jinyun1984/…linux

參考安裝教程1: www.cnblogs.com/skychenjiaj…centos

參考安裝教程2: blog.battcn.com/2017/08/20/…bash

參考安裝教程3: blog.csdn.net/qq_22075041…cookie

wget、yum、rpm、apt-get區別:www.cnblogs.com/hanggegege/…ide

關於weget 「沒法創建SSL鏈接」的解決方法:blog.csdn.net/qq_35142785…ui

rabbitmq下載地址:www.rabbitmq.com/news.htmlthis

CentOS7.0 使用root登陸桌面:blog.csdn.net/bolg_hero/a…centos7

====================================================

啓動服務:

systemctl start rabbitmq-server.service
複製代碼

查看服務狀態:

systemctl status  rabbitmq-server.service
複製代碼

中止服務:

systemctl stop rabbitmq-server.service
複製代碼

查看rabbit進程:

ps -ef | grep rabbit
複製代碼

哎, 坑實在太多了,好不容易纔弄好了,你們若是在使用」systemctl「有如下問題能夠參考下面的地址 serverfault.com/questions/9…

Error: unable to perform an operation on node 'rabbit@sXXX-XXX-XXX-XXX'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server) * Target node is not running In addition to the diagnostics info below: * See the CLI, clustering and networking guides on http://rabbitmq.com/documentation.html to learn more * Consult server logs on node rabbit@sXXX-XXX-XXX-XXX DIAGNOSTICS =========== attempted to contact: ['rabbit@sXXX-XXX-XXX-XXX'] rabbit@sXXX-XXX-XXX-XXX: * unable to connect to epmd (port 4369) on sXXX-XXX-XXX-XXX: timeout (timed out) Current node details: * node name: 'rabbitmqcli30@sXXX-XXX-XXX-XXX' * effective user's home directory: /var/lib/rabbitmq
 * Erlang cookie hash: BHd73A3DMRT7tM1xEdGGvg==
複製代碼

驗證一下,個人地址是:http://192.168.183.128:15672,你們訪問本身的地址就好,端口是15672

rabbitmq裝好了,有時間就繼續研究在Java中如何使用mq了。。。

相關文章
相關標籤/搜索