{"id":40699,"date":"2025-05-30T07:21:29","date_gmt":"2025-05-29T23:21:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/40699.html"},"modified":"2025-05-30T07:21:29","modified_gmt":"2025-05-29T23:21:29","slug":"a%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%a4%87%e4%bb%bdrabbitmq%e6%8c%81%e4%b9%85%e5%8c%96%e7%9b%ae%e5%bd%95%e5%88%b0b%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8d%e6%98%be%e7%a4%bamq%e9%98%9f%e5%88%97%e6%b6%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/40699.html","title":{"rendered":"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f"},"content":{"rendered":"<p>\u573a\u666f:\u5728A\u670d\u52a1\u5668\u4e0adocker\u542f\u52a8mq\u670d\u52a1,\u5728mq\u670d\u52a1\u5668\u4e0a\u6062\u590d\u670d\u52a1,\u7ed3\u679c\u961f\u5217\u6d88\u606f\u4e22\u5931\u95ee\u9898<\/p>\n<h2>1.\u5907\u4efd\u6301\u4e45\u5316\u6587\u4ef6<\/h2>\n<p>docker inspect \u5bb9\u5668id<\/p>\n<p>      <span class=\"token string\">&#034;Mounts&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n            <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token string\">&#034;Type&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#034;bind&#034;<\/span>,<br \/>\n                <span class=\"token string\">&#034;Source&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#034;\/data\/containers\/rabbitmq\/data&#034;<\/span>,<br \/>\n                <span class=\"token string\">&#034;Destination&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#034;\/var\/lib\/rabbitmq&#034;<\/span>,<br \/>\n                <span class=\"token string\">&#034;Mode&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#034;rw&#034;<\/span>,<br \/>\n                <span class=\"token string\">&#034;RW&#034;<\/span><span class=\"token builtin class-name\">:<\/span> true,<br \/>\n                <span class=\"token string\">&#034;Propagation&#034;<\/span><span class=\"token builtin class-name\">:<\/span> <span class=\"token string\">&#034;rprivate&#034;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528tar\u538b\u7f29\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zcvf<\/span> rabbitmq.tar.gz \/data\/containers\/rabbitmq\/data<\/p>\n<p>\u5c06\u538b\u7f29\u6587\u4ef6\u53d1\u9001\u5230\u5907\u7528\u670d\u52a1\u5668103<\/p>\n<h2>2.\u65b0\u670d\u52a1\u5668\u542f\u52a8mq\u670d\u52a1<\/h2>\n<h3>1.\u89e3\u538b\u6587\u4ef6<\/h3>\n<p>\u89e3\u538b\u6587\u4ef6\u5230\u5f53\u524d\u6587\u4ef6\u5939<\/p>\n<p><span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-xzvf<\/span> rabbitmq.tar.gz<\/p>\n<p>\u67e5\u770b\u6587\u4ef6<\/p>\n<p><span class=\"token punctuation\">(<\/span>base<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">[<\/span>root&#064;centos-3 rabbitmq<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># ls<\/span><br \/>\nconfig  data  docker-compose.yml<\/p>\n<p>docker-compose\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b<\/p>\n<p>services:<br \/>\n  rabbitmq:<br \/>\n    container_name: rabbitmq<br \/>\n    image: registry.cn-hangzhou.aliyuncs.com\/spider_tie\/rabbitmq:3.7<br \/>\n    restart: always<br \/>\n    ulimits:<br \/>\n      nofile:<br \/>\n        soft: <span class=\"token number\">65536<\/span><br \/>\n        hard: <span class=\"token number\">65536<\/span><br \/>\n    environment:<br \/>\n      &#8211; <span class=\"token assign-left variable\">TZ<\/span><span class=\"token operator\">&#061;<\/span>Asia\/Shanghai<br \/>\n      &#8211; <span class=\"token assign-left variable\">RABBITMQ_DEFAULT_USER<\/span><span class=\"token operator\">&#061;<\/span>rbadmin<br \/>\n      &#8211; <span class=\"token assign-left variable\">RABBITMQ_DEFAULT_PASS<\/span><span class=\"token operator\">&#061;<\/span>OpsXlab2024<span class=\"token operator\">!<\/span>i<br \/>\n    volumes:<br \/>\n      &#8211; .\/data:\/var\/lib\/rabbitmq<br \/>\n    networks:<br \/>\n      &#8211; app-tier<br \/>\n        <span class=\"token comment\">#ipv4_address: 172.22.1.10<\/span><br \/>\n    ports:<br \/>\n      &#8211; <span class=\"token number\">5672<\/span>:5672<br \/>\n      &#8211; <span class=\"token number\">15672<\/span>:15672<br \/>\nnetworks:<br \/>\n  app-tier:<br \/>\n    name: app-tier<br \/>\n    driver: bridge<br \/>\n    <span class=\"token comment\">#external: true<\/span><br \/>\n    <span class=\"token comment\"># ipam:<\/span><br \/>\n    <span class=\"token comment\">#  config:<\/span><br \/>\n    <span class=\"token comment\">#    &#8211; subnet: 172.22.1.0\/24<\/span><\/p>\n<p><span class=\"token function\">docker-compose<\/span> up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>web\u7aef\u67e5\u770b\u670d\u52a1\u5982\u4e0b,mq\u4e2d\u6ca1\u6709\u961f\u5217\u6d88\u606f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232127-6838ebf7670ea.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u961f\u5217\u65e0\u6d88\u606f,\u4f46\u662f\u539f\u6765\u7684mq\u670d\u52a1\u662f\u6709\u6d88\u606f\u7684 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232127-6838ebf7b98ca.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2.\u89e3\u51b3\u6d88\u606f\u672a\u663e\u793a\u95ee\u9898<\/h3>\n<p>\u9700\u8981\u5907\u4efdhostname\u548ccookie,\u8981\u4e0d\u7136\u6301\u4e45\u5316\u6d88\u606f\u65e0\u6cd5\u88ab\u8bc6\u522b<\/p>\n<p><span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> f43fb7de1ba1 <span class=\"token function\">cat<\/span> \/var\/lib\/rabbitmq\/.erlang.cookie<br \/>\n<span class=\"token function\">docker<\/span> <span class=\"token builtin class-name\">exec<\/span> <span class=\"token parameter variable\">-it<\/span> f43fb7de1ba1 <span class=\"token function\">hostname<\/span><\/p>\n<p>\u4f8b\u5982\u5728101\u4e0a\u64cd\u4f5c<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos-1 mnesia<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec -it f43fb7de1ba1 cat \/var\/lib\/rabbitmq\/.erlang.cookie<\/span><br \/>\nIHMICEQVPBXTPPFDNFTT<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos-1 mnesia<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec -it f43fb7de1ba1 hostname<\/span><br \/>\nf43fb7de1ba1<\/p>\n<p>\u7136\u540e\u518d\u5907\u7528\u670d\u52a1\u5668103\u64cd\u4f5c<\/p>\n<p><span class=\"token punctuation\">(<\/span>base<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">[<\/span>root&#064;centos-3 rabbitmq<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec -it a0dbe129970f cat \/var\/lib\/rabbitmq\/.erlang.cookie<\/span><br \/>\nIHMICEQVPBXTPPFDNFTT<br \/>\n<span class=\"token punctuation\">(<\/span>base<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">[<\/span>root&#064;centos-3 rabbitmq<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># docker exec -it a0dbe129970f hostname<\/span><br \/>\na0dbe129970f<\/p>\n<p>docker-compose.yml\u6587\u4ef6\u5982\u4e0b<\/p>\n<p>services:<br \/>\n  rabbitmq:<br \/>\n    container_name: rabbitmq<br \/>\n    image: registry.cn-hangzhou.aliyuncs.com\/spider_tie\/rabbitmq:3.7<br \/>\n    restart: always<br \/>\n    hostname: f43fb7de1ba1<br \/>\n    ulimits:<br \/>\n      nofile:<br \/>\n        soft: <span class=\"token number\">65536<\/span><br \/>\n        hard: <span class=\"token number\">65536<\/span><br \/>\n    environment:<br \/>\n      &#8211; <span class=\"token assign-left variable\">TZ<\/span><span class=\"token operator\">&#061;<\/span>Asia\/Shanghai<br \/>\n      &#8211; <span class=\"token assign-left variable\">RABBITMQ_DEFAULT_USER<\/span><span class=\"token operator\">&#061;<\/span>rbadmin<br \/>\n      &#8211; <span class=\"token assign-left variable\">RABBITMQ_DEFAULT_PASS<\/span><span class=\"token operator\">&#061;<\/span>OpsXlab2024<span class=\"token operator\">!<\/span>i<br \/>\n      &#8211; <span class=\"token assign-left variable\">RABBITMQ_ERLANG_COOKIE<\/span><span class=\"token operator\">&#061;<\/span>IHMICEQVPBXTPPFDNFTT<br \/>\n    volumes:<br \/>\n      &#8211; .\/data:\/var\/lib\/rabbitmq<br \/>\n    networks:<br \/>\n      &#8211; app-tier<br \/>\n        <span class=\"token comment\">#ipv4_address: 172.22.1.10<\/span><br \/>\n    ports:<br \/>\n      &#8211; <span class=\"token number\">5672<\/span>:5672<br \/>\n      &#8211; <span class=\"token number\">15672<\/span>:15672<br \/>\nnetworks:<br \/>\n  app-tier:<br \/>\n    name: app-tier<br \/>\n    driver: bridge<br \/>\n    <span class=\"token comment\">#external: true<\/span><br \/>\n    <span class=\"token comment\"># ipam:<\/span><br \/>\n    <span class=\"token comment\">#  config:<\/span><br \/>\n    <span class=\"token comment\">#    &#8211; subnet: 172.22.1.0\/24<\/span><\/p>\n<p>\u6ce8:\u4e3b\u8981\u662f\u65b0\u589ehostname,RABBITMQ_ERLANG_COOKIE<\/p>\n<p>\u4fee\u6539\u4e4b\u540e\u91cd\u65b0\u542f\u52a8\u67e5\u770b\u6548\u679c<\/p>\n<p>\u5907\u4efd\u524d <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232127-6838ebf7eb509.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/> \u5907\u4efd\u540e <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232128-6838ebf82432d.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/> \u81f3\u6b64,\u95ee\u9898\u89e3\u51b3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb802\u6b21\u3002\u5728A\u670d\u52a1\u5668\u4e0a\u901a\u8fc7Docker\u542f\u52a8RabbitMQ\u670d\u52a1\u540e\uff0c\u6062\u590d\u670d\u52a1\u65f6\u53d1\u73b0\u961f\u5217\u6d88\u606f\u4e22\u5931\u3002\u95ee\u9898\u89e3\u51b3\u6b65\u9aa4\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u5907\u4efd\u6301\u4e45\u5316\u6587\u4ef6\u5e76\u538b\u7f29\u53d1\u9001\u5230\u5907\u7528\u670d\u52a1\u5668\u3002\u63a5\u7740\uff0c\u5728\u65b0\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u6587\u4ef6\u5e76\u542f\u52a8MQ\u670d\u52a1\uff0c\u4f46\u53d1\u73b0\u961f\u5217\u6d88\u606f\u672a\u663e\u793a\u3002\u901a\u8fc7\u68c0\u67e5\u53d1\u73b0\uff0c\u9700\u8981\u5907\u4efd\u5e76\u540c\u6b65\u539f\u670d\u52a1\u5668\u7684hostname\u548c.erlang.cookie\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u6301\u4e45\u5316\u6d88\u606f\u80fd\u88ab\u8bc6\u522b\u3002\u4fee\u6539docker-compose.yml\u6587\u4ef6\uff0c\u6dfb\u52a0hostname\u548cRABBITMQ_ERLANG_COOKIE\u914d\u7f6e\u540e\uff0c\u91cd\u65b0\u542f\u52a8\u670d\u52a1\uff0c\u961f\u5217\u6d88\u606f\u6210\u529f\u6062\u590d\u3002<\/p>\n","protected":false},"author":2,"featured_media":40695,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[663,43,44],"topic":[],"class_list":["post-40699","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-rabbitmq","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/40699.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb802\u6b21\u3002\u5728A\u670d\u52a1\u5668\u4e0a\u901a\u8fc7Docker\u542f\u52a8RabbitMQ\u670d\u52a1\u540e\uff0c\u6062\u590d\u670d\u52a1\u65f6\u53d1\u73b0\u961f\u5217\u6d88\u606f\u4e22\u5931\u3002\u95ee\u9898\u89e3\u51b3\u6b65\u9aa4\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u5907\u4efd\u6301\u4e45\u5316\u6587\u4ef6\u5e76\u538b\u7f29\u53d1\u9001\u5230\u5907\u7528\u670d\u52a1\u5668\u3002\u63a5\u7740\uff0c\u5728\u65b0\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u6587\u4ef6\u5e76\u542f\u52a8MQ\u670d\u52a1\uff0c\u4f46\u53d1\u73b0\u961f\u5217\u6d88\u606f\u672a\u663e\u793a\u3002\u901a\u8fc7\u68c0\u67e5\u53d1\u73b0\uff0c\u9700\u8981\u5907\u4efd\u5e76\u540c\u6b65\u539f\u670d\u52a1\u5668\u7684hostname\u548c.erlang.cookie\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u6301\u4e45\u5316\u6d88\u606f\u80fd\u88ab\u8bc6\u522b\u3002\u4fee\u6539docker-compose.yml\u6587\u4ef6\uff0c\u6dfb\u52a0hostname\u548cRABBITMQ_ERLANG_COOKIE\u914d\u7f6e\u540e\uff0c\u91cd\u65b0\u542f\u52a8\u670d\u52a1\uff0c\u961f\u5217\u6d88\u606f\u6210\u529f\u6062\u590d\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/40699.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-29T23:21:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232127-6838ebf7670ea.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40699.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/40699.html\",\"name\":\"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-29T23:21:29+00:00\",\"dateModified\":\"2025-05-29T23:21:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/40699.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/40699.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40699.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/40699.html","og_locale":"zh_CN","og_type":"article","og_title":"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb802\u6b21\u3002\u5728A\u670d\u52a1\u5668\u4e0a\u901a\u8fc7Docker\u542f\u52a8RabbitMQ\u670d\u52a1\u540e\uff0c\u6062\u590d\u670d\u52a1\u65f6\u53d1\u73b0\u961f\u5217\u6d88\u606f\u4e22\u5931\u3002\u95ee\u9898\u89e3\u51b3\u6b65\u9aa4\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u5907\u4efd\u6301\u4e45\u5316\u6587\u4ef6\u5e76\u538b\u7f29\u53d1\u9001\u5230\u5907\u7528\u670d\u52a1\u5668\u3002\u63a5\u7740\uff0c\u5728\u65b0\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u6587\u4ef6\u5e76\u542f\u52a8MQ\u670d\u52a1\uff0c\u4f46\u53d1\u73b0\u961f\u5217\u6d88\u606f\u672a\u663e\u793a\u3002\u901a\u8fc7\u68c0\u67e5\u53d1\u73b0\uff0c\u9700\u8981\u5907\u4efd\u5e76\u540c\u6b65\u539f\u670d\u52a1\u5668\u7684hostname\u548c.erlang.cookie\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u6301\u4e45\u5316\u6d88\u606f\u80fd\u88ab\u8bc6\u522b\u3002\u4fee\u6539docker-compose.yml\u6587\u4ef6\uff0c\u6dfb\u52a0hostname\u548cRABBITMQ_ERLANG_COOKIE\u914d\u7f6e\u540e\uff0c\u91cd\u65b0\u542f\u52a8\u670d\u52a1\uff0c\u961f\u5217\u6d88\u606f\u6210\u529f\u6062\u590d\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/40699.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-29T23:21:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250529232127-6838ebf7670ea.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/40699.html","url":"https:\/\/www.wsisp.com\/helps\/40699.html","name":"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-29T23:21:29+00:00","dateModified":"2025-05-29T23:21:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/40699.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/40699.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/40699.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"A\u670d\u52a1\u5668\u5907\u4efdrabbitmq\u6301\u4e45\u5316\u76ee\u5f55\u5230B\u670d\u52a1\u5668,\u4e0d\u663e\u793amq\u961f\u5217\u6d88\u606f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=40699"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40699\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/40695"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=40699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=40699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=40699"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=40699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}