{"id":44102,"date":"2024-10-06T12:52:14","date_gmt":"2024-10-06T04:52:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/44102\/"},"modified":"2024-10-06T12:52:14","modified_gmt":"2024-10-06T04:52:14","slug":"centos-%e4%b8%8a%e5%ae%89%e8%a3%9d-rabbitmq-3-6-6","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/44102\/","title":{"rendered":"CentOS \u4e0a\u5b89\u88dd RabbitMQ 3.6.6"},"content":{"rendered":"<h1 id=\"centos-%e4%b8%8a%e5%ae%89%e8%a3%9d-rabbitmq-3-6-6-TqKmRyoTbl\">CentOS \u4e0a\u5b89\u88dd RabbitMQ 3.6.6<\/h1>\n<p>RabbitMQ \u662f\u4e00\u500b\u6d41\u884c\u7684\u958b\u6e90\u6d88\u606f\u4ee3\u7406\uff0c\u5ee3\u6cdb\u7528\u65bc\u5be6\u73fe\u6d88\u606f\u50b3\u905e\u548c\u7570\u6b65\u8655\u7406\u3002\u5b83\u652f\u6301\u591a\u7a2e\u6d88\u606f\u5354\u8b70\uff0c\u4e26\u4e14\u53ef\u4ee5\u5728\u591a\u7a2e\u5e73\u53f0\u4e0a\u904b\u884c\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 CentOS \u7cfb\u7d71\u4e0a\u5b89\u88dd RabbitMQ 3.6.6\u3002<\/p>\n<h2 id=\"%e5%89%8d%e7%bd%ae%e6%a2%9d%e4%bb%b6-TqKmRyoTbl\">\u524d\u7f6e\u689d\u4ef6<\/h2>\n<p>\u5728\u5b89\u88dd RabbitMQ \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u78ba\u4fdd\u60a8\u7684 CentOS \u7cfb\u7d71\u5df2\u7d93\u5b89\u88dd\u4e86 Erlang\u3002RabbitMQ \u662f\u57fa\u65bc Erlang \u7684\uff0c\u56e0\u6b64\u5fc5\u9808\u5148\u5b89\u88dd Erlang \u624d\u80fd\u904b\u884c RabbitMQ\u3002<\/p>\n<h3 id=\"%e5%ae%89%e8%a3%9d-erlang-TqKmRyoTbl\">\u5b89\u88dd Erlang<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6dfb\u52a0 Erlang \u7684\u5b98\u65b9\u5b58\u5132\u5eab\u3002\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5b89\u88dd Erlang\uff1a<\/p>\n<pre><code>sudo yum install epel-release\nsudo yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/Packages\/e\/erlang-20.3.8.19-1.el7.x86_64.rpm<\/code><\/pre>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5 Erlang \u662f\u5426\u5b89\u88dd\u6210\u529f\uff1a<\/p>\n<pre><code>erl -version<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-rabbitmq-TqKmRyoTbl\">\u5b89\u88dd RabbitMQ<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u53ef\u4ee5\u4e0b\u8f09 RabbitMQ \u7684 RPM \u5305\u4e26\u9032\u884c\u5b89\u88dd\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u4e0b\u8f09 RabbitMQ 3.6.6\uff1a<\/p>\n<pre><code>wget https:\/\/github.com\/rabbitmq\/rabbitmq-server\/releases\/download\/v3.6.6\/rabbitmq-server-generic-unix-3.6.6.tar.gz<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u89e3\u58d3\u7e2e\u8a72\u6587\u4ef6\uff1a<\/p>\n<pre><code>tar -zxvf rabbitmq-server-generic-unix-3.6.6.tar.gz<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u9032\u5165\u89e3\u58d3\u7e2e\u7684\u76ee\u9304\u4e26\u5b89\u88dd RabbitMQ\uff1a<\/p>\n<pre><code>cd rabbitmq_server-3.6.6\nsudo cp -r * \/usr\/lib\/rabbitmq\/<\/code><\/pre>\n<h3 id=\"%e5%95%9f%e7%94%a8-rabbitmq-%e6%9c%8d%e5%8b%99-TqKmRyoTbl\">\u555f\u7528 RabbitMQ \u670d\u52d9<\/h3>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u555f\u7528 RabbitMQ \u670d\u52d9\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u52d5 RabbitMQ \u670d\u52d9\uff1a<\/p>\n<pre><code>sudo rabbitmq-server -detached<\/code><\/pre>\n<p>\u8981\u6aa2\u67e5 RabbitMQ \u670d\u52d9\u7684\u72c0\u614b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo rabbitmqctl status<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae-rabbitmq-TqKmRyoTbl\">\u914d\u7f6e RabbitMQ<\/h2>\n<p>RabbitMQ \u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u9032\u884c\u4e00\u4e9b\u57fa\u672c\u914d\u7f6e\u3002\u9996\u5148\uff0c\u60a8\u53ef\u4ee5\u555f\u7528\u7ba1\u7406\u63d2\u4ef6\uff0c\u4ee5\u4fbf\u901a\u904e Web \u754c\u9762\u7ba1\u7406 RabbitMQ\uff1a<\/p>\n<pre><code>sudo rabbitmq-plugins enable rabbitmq_management<\/code><\/pre>\n<p>\u555f\u7528\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u8a2a\u554f <a href=\"http:\/\/localhost:15672\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/localhost:15672<\/a> \u4f86\u8a2a\u554f RabbitMQ \u7684\u7ba1\u7406\u754c\u9762\u3002\u9ed8\u8a8d\u7684\u7528\u6236\u540d\u548c\u5bc6\u78bc\u90fd\u662f &#8220;guest&#8221;\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-TqKmRyoTbl\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 CentOS \u4e0a\u5b89\u88dd RabbitMQ 3.6.6\uff0c\u5305\u62ec\u5b89\u88dd Erlang \u548c\u914d\u7f6e RabbitMQ \u7684\u6b65\u9a5f\u3002RabbitMQ \u662f\u4e00\u500b\u5f37\u5927\u7684\u6d88\u606f\u4ee3\u7406\uff0c\u9069\u5408\u7528\u65bc\u5404\u7a2e\u61c9\u7528\u5834\u666f\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u4f86\u904b\u884c RabbitMQ\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u9069\u5408\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6236\u3002\u7121\u8ad6\u662f <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u9084\u662f\u5176\u4ed6\u5730\u5340\u7684\u670d\u52d9\uff0c\u60a8\u90fd\u53ef\u4ee5\u627e\u5230\u5408\u9069\u7684\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install RabbitMQ 3.6.6 on CentOS with step-by-step instructions for a smooth setup and configuration process.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-44102","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=44102"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44102\/revisions"}],"predecessor-version":[{"id":44103,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44102\/revisions\/44103"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=44102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=44102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=44102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}