mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-16 04:07:51 +00:00
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8849],{1606:(i,e,I)=>{I.d(e,{A:()=>l});const l="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjQzMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8IS0tIOiDjOaZryAtLT4KICA8cmVjdCB3aWR0aD0iODAwIiBoZWlnaHQ9IjQzMCIgZmlsbD0iI2Y4ZjlmYSIgcng9IjEwIiByeT0iMTAiLz4KICAKICA8IS0tIOagh+mimCAtLT4KICA8dGV4dCB4PSI0MDAiIHk9IjQwIiBmb250LWZhbWlseT0iQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjQiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtd2VpZ2h0PSJib2xkIj7lvq7or63ns7vnu5/pm4bnvqTmnrbmnoTlm748L3RleHQ+CiAgCiAgPCEtLSDotJ/ovb3lnYfooaHlsYIgLS0+CiAgPHJlY3QgeD0iMjUwIiB5PSI4MCIgd2lkdGg9IjMwMCIgaGVpZ2h0PSI2MCIgcng9IjUiIHJ5PSI1IiBmaWxsPSIjOTBjYWY5IiBzdHJva2U9IiMxOTc2ZDIiIHN0cm9rZS13aWR0aD0iMiIvPgogIDx0ZXh0IHg9IjQwMCIgeT0iMTE1IiBmb250LWZhbWlseT0iQXJpYWwsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtd2VpZ2h0PSJib2xkIj7otJ/ovb3lnYfooaHlsYIgKE5naW54L+S6keacjeWKoeWVhkxCKTwvdGV4dD4KCiAgPCEtLSDlupTnlKj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mIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXdlaWdodD0iYm9sZCI+UmVkaXMg6ZuG576kPC90ZXh0PgogIAogIDwhLS0g6L+e5o6l57q/IC0g5raI5oGv5Lit6Ze05Lu25Yiw5pWw5o2u5a2Y5YKoIC0tPgogIDxsaW5lIHgxPSI0MDAiIHkxPSIzMjAiIHgyPSIxOTAiIHkyPSIzNTAiIHN0cm9rZT0iIzY2NjY2NiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgPGxpbmUgeDE9IjQwMCIgeTE9IjMyMCIgeDI9IjQwMCIgeTI9IjM1MCIgc3Ryb2tlPSIjNjY2NjY2IiBzdHJva2Utd2lkdGg9IjIiLz4KICA8bGluZSB4MT0iNDAwIiB5MT0iMzIwIiB4Mj0iNjEwIiB5Mj0iMzUwIiBzdHJva2U9IiM2NjY2NjYiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K"},4340:(i,e,I)=>{I.r(e),I.d(e,{assets:()=>t,contentTitle:()=>r,default:()=>o,frontMatter:()=>d,metadata:()=>l,toc:()=>c});const l=JSON.parse('{"id":"deploy/cluster","title":"\u5fae\u8bed\u96c6\u7fa4\u90e8\u7f72\u65b9\u6848","description":"\u6982\u8ff0","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/deploy/cluster.md","sourceDirName":"deploy","slug":"/deploy/cluster","permalink":"/docs/zh-CN/docs/deploy/cluster","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/cluster.md","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"sidebar_label":"\u96c6\u7fa4","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"\u670d\u52a1\u5668\u914d\u7f6e\u53c2\u6570\u8bf4\u660e","permalink":"/docs/zh-CN/docs/deploy/config"},"next":{"title":"Dependencies","permalink":"/docs/zh-CN/docs/category/dependencies"}}');var n=I(5723),s=I(6246);const d={sidebar_label:"\u96c6\u7fa4",sidebar_position:8},r="\u5fae\u8bed\u96c6\u7fa4\u90e8\u7f72\u65b9\u6848",t={},c=[{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u96c6\u7fa4\u67b6\u6784",id:"\u96c6\u7fa4\u67b6\u6784",level:2},{value:"\u96c6\u7fa4\u90e8\u7f72\u6b65\u9aa4",id:"\u96c6\u7fa4\u90e8\u7f72\u6b65\u9aa4",level:2},{value:"1. \u90e8\u7f72 Artemis \u6d88\u606f\u4e2d\u95f4\u4ef6",id:"1-\u90e8\u7f72-artemis-\u6d88\u606f\u4e2d\u95f4\u4ef6",level:3},{value:"2. \u914d\u7f6e\u5fae\u8bed\u670d\u52a1\u8fde\u63a5Artemis",id:"2-\u914d\u7f6e\u5fae\u8bed\u670d\u52a1\u8fde\u63a5artemis",level:3},{value:"3. \u90e8\u7f72\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b",id:"3-\u90e8\u7f72\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b",level:3},{value:"Docker\u90e8\u7f72\u793a\u4f8b",id:"docker\u90e8\u7f72\u793a\u4f8b",level:4},{value:"4. \u914d\u7f6e\u8d1f\u8f7d\u5747\u8861",id:"4-\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861",level:3},{value:"Nginx\u914d\u7f6e\u793a\u4f8b",id:"nginx\u914d\u7f6e\u793a\u4f8b",level:4},{value:"5. \u4f1a\u8bdd\u5171\u4eab\u4e0e\u6d88\u606f\u540c\u6b65",id:"5-\u4f1a\u8bdd\u5171\u4eab\u4e0e\u6d88\u606f\u540c\u6b65",level:3},{value:"\u96c6\u7fa4\u76d1\u63a7\u4e0e\u7ef4\u62a4",id:"\u96c6\u7fa4\u76d1\u63a7\u4e0e\u7ef4\u62a4",level:2},{value:"\u76d1\u63a7Artemis\u961f\u5217",id:"\u76d1\u63a7artemis\u961f\u5217",level:3},{value:"\u670d\u52a1\u5b9e\u4f8b\u5065\u5eb7\u68c0\u67e5",id:"\u670d\u52a1\u5b9e\u4f8b\u5065\u5eb7\u68c0\u67e5",level:3},{value:"\u6700\u4f73\u5b9e\u8df5",id:"\u6700\u4f73\u5b9e\u8df5",level:2},{value:"\u603b\u7ed3",id:"\u603b\u7ed3",level:2}];function j(i){const e={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...i.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.header,{children:(0,n.jsx)(e.h1,{id:"\u5fae\u8bed\u96c6\u7fa4\u90e8\u7f72\u65b9\u6848",children:"\u5fae\u8bed\u96c6\u7fa4\u90e8\u7f72\u65b9\u6848"})}),"\n",(0,n.jsx)(e.h2,{id:"\u6982\u8ff0",children:"\u6982\u8ff0"}),"\n",(0,n.jsx)(e.p,{children:"\u5fae\u8bed\u7cfb\u7edf\u652f\u6301\u4e24\u79cd\u90e8\u7f72\u6a21\u5f0f\uff1a"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5f00\u6e90\u793e\u533a\u7248"}),"\uff1a\u652f\u6301\u5355\u673a\u90e8\u7f72\uff0c\u9002\u5408\u5c0f\u578b\u56e2\u961f\u6216\u4e2a\u4eba\u4f7f\u7528"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u4f01\u4e1a\u7248"}),"\uff1a\u652f\u6301\u96c6\u7fa4\u90e8\u7f72\uff0c\u9002\u5408\u4e2d\u5927\u578b\u4f01\u4e1a\u4f7f\u7528\uff0c\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u6c34\u5e73\u6269\u5c55\u80fd\u529b"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5e73\u53f0\u7248"}),"\uff1a\u540c\u4f01\u4e1a\u7248\uff0c\u652f\u6301\u96c6\u7fa4\u90e8\u7f72\uff0c\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u6c34\u5e73\u6269\u5c55\u80fd\u529b"]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:"\u672c\u6587\u6863\u4e3b\u8981\u4ecb\u7ecd\u4f01\u4e1a\u7248\u7684\u96c6\u7fa4\u90e8\u7f72\u65b9\u6848\uff0c\u5e2e\u52a9\u60a8\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5b9e\u73b0\u9ad8\u53ef\u7528\u3001\u9ad8\u5e76\u53d1\u7684\u5fae\u8bed\u7cfb\u7edf\u3002"}),"\n",(0,n.jsx)(e.h2,{id:"\u96c6\u7fa4\u67b6\u6784",children:"\u96c6\u7fa4\u67b6\u6784"}),"\n",(0,n.jsx)(e.p,{children:"\u5fae\u8bed\u7cfb\u7edf\u7684\u96c6\u7fa4\u67b6\u6784\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u8d1f\u8f7d\u5747\u8861\u5c42"}),"\uff1aNginx\u6216\u4e91\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u8d1f\u8f7d\u5747\u8861\u670d\u52a1"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5e94\u7528\u670d\u52a1\u5c42"}),"\uff1a\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u6d88\u606f\u4e2d\u95f4\u4ef6"}),"\uff1aApache ActiveMQ Artemis"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u6570\u636e\u5b58\u50a8\u5c42"}),"\uff1aMySQL\u3001ElasticSearch\u3001Redis\u96c6\u7fa4"]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"\u96c6\u7fa4\u67b6\u6784\u56fe",src:I(1606).A+"",width:"800",height:"430"})}),"\n",(0,n.jsx)(e.h2,{id:"\u96c6\u7fa4\u90e8\u7f72\u6b65\u9aa4",children:"\u96c6\u7fa4\u90e8\u7f72\u6b65\u9aa4"}),"\n",(0,n.jsx)(e.h3,{id:"1-\u90e8\u7f72-artemis-\u6d88\u606f\u4e2d\u95f4\u4ef6",children:"1. \u90e8\u7f72 Artemis \u6d88\u606f\u4e2d\u95f4\u4ef6"}),"\n",(0,n.jsx)(e.p,{children:"\u96c6\u7fa4\u90e8\u7f72\u7684\u6838\u5fc3\u662f\u8ba9\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b\u5171\u4eab\u540c\u4e00\u4e2a\u6d88\u606f\u4e2d\u95f4\u4ef6\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u90e8\u7f72 Artemis\uff1a"}),"\n",(0,n.jsxs)(e.blockquote,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"\u8be6\u7ec6\u8bf4\u660e"}),"\uff1a\u6709\u5173 Artemis \u6d88\u606f\u4e2d\u95f4\u4ef6\u7684\u5b89\u88c5\u90e8\u7f72\u3001\u914d\u7f6e\u53ca\u4f7f\u7528\u7684\u5b8c\u6574\u8bf4\u660e\uff0c\u8bf7\u53c2\u8003 ",(0,n.jsx)(e.a,{href:"/docs/zh-CN/docs/deploy/depend/artemis",children:"Artemis \u6d88\u606f\u4e2d\u95f4\u4ef6\u6587\u6863"})]}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"2-\u914d\u7f6e\u5fae\u8bed\u670d\u52a1\u8fde\u63a5artemis",children:"2. \u914d\u7f6e\u5fae\u8bed\u670d\u52a1\u8fde\u63a5Artemis"}),"\n",(0,n.jsx)(e.p,{children:"\u96c6\u7fa4\u73af\u5883\u4e2d\uff0c\u6240\u6709\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b\u9700\u8981\u8fde\u63a5\u5230\u540c\u4e00\u4e2aArtemis\u6d88\u606f\u4e2d\u95f4\u4ef6\u3002\u8bf7\u4e3a\u6bcf\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b\u914d\u7f6e\u4ee5\u4e0b\u5185\u5bb9\uff1a"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06Artemis\u6a21\u5f0f\u4fee\u6539\u4e3a",(0,n.jsx)(e.code,{children:"native"})]}),"\n",(0,n.jsx)(e.li,{children:"\u4f7f\u7528\u76f8\u540c\u7684Artemis broker-url\u5730\u5740"}),"\n",(0,n.jsx)(e.li,{children:"\u914d\u7f6e\u9002\u5f53\u7684JMS\u76d1\u542c\u5668\u53c2\u6570"}),"\n"]}),"\n",(0,n.jsxs)(e.blockquote,{children:["\n",(0,n.jsxs)(e.p,{children:[(0,n.jsx)(e.strong,{children:"\u91cd\u8981\u63d0\u793a"}),"\uff1a\u8bf7\u786e\u4fdd\u6240\u6709\u670d\u52a1\u5b9e\u4f8b\u4f7f\u7528\u76f8\u540c\u7684Artemis\u670d\u52a1\u5668\u5730\u5740\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528\u5185\u7f51\u5730\u5740\u4ee5\u63d0\u9ad8\u6d88\u606f\u4f20\u8f93\u6548\u7387\u5e76\u589e\u5f3a\u5b89\u5168\u6027\u3002"]}),"\n"]}),"\n",(0,n.jsxs)(e.p,{children:["\u914d\u7f6e\u5177\u4f53\u793a\u4f8b\u53ca\u8be6\u7ec6\u53c2\u6570\u8bbe\u7f6e\u8bf7\u53c2\u8003 ",(0,n.jsx)(e.a,{href:"/docs/zh-CN/docs/deploy/depend/artemis#spring-boot-%E5%BA%94%E7%94%A8%E9%85%8D%E7%BD%AE",children:"Artemis \u6d88\u606f\u4e2d\u95f4\u4ef6\u6587\u6863"})]}),"\n",(0,n.jsx)(e.h3,{id:"3-\u90e8\u7f72\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b",children:"3. \u90e8\u7f72\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b"}),"\n",(0,n.jsx)(e.p,{children:"\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b\uff0c\u786e\u4fdd\u5b83\u4eec\u90fd\u8fde\u63a5\u5230\u540c\u4e00\u4e2aArtemis\u6d88\u606f\u4e2d\u95f4\u4ef6\u3002"}),"\n",(0,n.jsx)(e.h4,{id:"docker\u90e8\u7f72\u793a\u4f8b",children:"Docker\u90e8\u7f72\u793a\u4f8b"}),"\n",(0,n.jsxs)(e.p,{children:["\u8be6\u7ec6\u7684Docker\u90e8\u7f72\u8bf4\u660e\u8bf7\u53c2\u8003\uff1a",(0,n.jsx)(e.a,{href:"/docs/zh-CN/docs/deploy/docker",children:"Docker\u90e8\u7f72\u6587\u6863"})]}),"\n",(0,n.jsx)(e.h3,{id:"4-\u914d\u7f6e\u8d1f\u8f7d\u5747\u8861",children:"4. \u914d\u7f6e\u8d1f\u8f7d\u5747\u8861"}),"\n",(0,n.jsx)(e.p,{children:"\u4f7f\u7528Nginx\u6216\u4e91\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u8d1f\u8f7d\u5747\u8861\u670d\u52a1\uff0c\u5c06\u8bf7\u6c42\u5206\u53d1\u5230\u591a\u4e2a\u5fae\u8bed\u670d\u52a1\u5b9e\u4f8b\u3002"}),"\n",(0,n.jsx)(e.h4,{id:"nginx\u914d\u7f6e\u793a\u4f8b",children:"Nginx\u914d\u7f6e\u793a\u4f8b"}),"\n",(0,n.jsx)(e.p,{children:"\u9996\u5148\uff0c\u5728nginx.conf\u7684http\u5757\u4e2d\u6dfb\u52a0upstream\u914d\u7f6e\uff1a"}),"\n",(0,n.jsx)(e.pre,{children:(0,n.jsx)(e.code,{className:"language-nginx",children:'# \u5728nginx.conf\u6587\u4ef6\u4e2d\u7684http\u6a21\u5757\u4e2d\u6dfb\u52a0\nhttp {\n # ... \u5df2\u6709\u914d\u7f6e ...\n \n # \u914d\u7f6eREST API\u670d\u52a1\u7684\u8d1f\u8f7d\u5747\u8861\uff08\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4fee\u6539upstream\u540d\u79f0\uff0c\u4f8b\u5982\u66ff\u6362"weiyuai"\u4e3a\u4f60\u7684\u7cfb\u7edf\u540d\u79f0\uff09\n upstream weiyuai {\n ip_hash; # \u540c\u4e00IP\u8bbf\u95ee\u540c\u4e00\u670d\u52a1\u5668\uff0c\u4fdd\u6301\u4f1a\u8bdd\u4e00\u81f4\u6027\n server 127.0.0.1:9003 weight=2 max_fails=10 fail_timeout=60s;\n # \u5982\u9700\u90e8\u7f72\u591a\u53f0\u670d\u52a1\u5668\u5b9e\u4f8b\uff0c\u6dfb\u52a0\u66f4\u591aserver\u884c\uff0c\u4f8b\u5982\uff1a\n # server 172.16.81.2:9003 weight=2 max_fails=10 fail_timeout=60s;\n # server 172.16.81.3:9003 weight=2 max_fails=10 fail_timeout=60s;\n }\n\n # \u914d\u7f6eWebSocket\u670d\u52a1\u7684\u8d1f\u8f7d\u5747\u8861\uff08\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4fee\u6539upstream\u540d\u79f0\uff0c\u4f8b\u5982\u66ff\u6362"weiyuaiwss"\u4e3a\u4f60\u7684\u7cfb\u7edf\u540d\u79f0+wss\uff09\n upstream weiyuaiwss {\n ip_hash; # WebSocket\u8fde\u63a5\u5fc5\u987b\u4fdd\u6301\u4f1a\u8bdd\u4e00\u81f4\u6027\n server 127.0.0.1:9885 weight=2 max_fails=10 fail_timeout=60s;\n # \u5982\u9700\u90e8\u7f72\u591a\u53f0\u670d\u52a1\u5668\u5b9e\u4f8b\uff0c\u6dfb\u52a0\u66f4\u591aserver\u884c\uff0c\u4f8b\u5982\uff1a\n # server 172.16.81.2:9885 weight=2 max_fails=10 fail_timeout=60s;\n # server 172.16.81.3:9885 weight=2 max_fails=10 fail_timeout=60s;\n }\n\n include /etc/nginx/conf.d/*.conf;\n include /etc/nginx/sites-enabled/*;\n}\n'})}),"\n",(0,n.jsxs)(e.p,{children:["\u8be6\u7ec6\u7684Nginx\u914d\u7f6e\u8bf4\u660e\u8bf7\u53c2\u8003\uff1a",(0,n.jsx)(e.a,{href:"/docs/zh-CN/docs/deploy/depend/nginx#nginx%E4%B8%BB%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6",children:"Nginx\u914d\u7f6e\u6587\u6863"})]}),"\n",(0,n.jsx)(e.h3,{id:"5-\u4f1a\u8bdd\u5171\u4eab\u4e0e\u6d88\u606f\u540c\u6b65",children:"5. \u4f1a\u8bdd\u5171\u4eab\u4e0e\u6d88\u606f\u540c\u6b65"}),"\n",(0,n.jsx)(e.p,{children:"\u591a\u4e2a\u670d\u52a1\u5b9e\u4f8b\u4e4b\u95f4\u7684\u4f1a\u8bdd\u5171\u4eab\u4e0e\u6d88\u606f\u540c\u6b65\u901a\u8fc7Artemis\u6d88\u606f\u4e2d\u95f4\u4ef6\u5b9e\u73b0\uff1a"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5ba2\u670d\u4e0a\u7ebf\u6d88\u606f"}),"\uff1a\u5ba2\u670d\u767b\u5f55\u540e\uff0c\u4e0a\u7ebf\u6d88\u606f\u901a\u8fc7Artemis\u5e7f\u64ad\u5230\u6240\u6709\u670d\u52a1\u5b9e\u4f8b"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5b9e\u65f6\u804a\u5929\u6d88\u606f"}),"\uff1a\u5ba2\u6237\u53d1\u9001\u6d88\u606f\u540e\uff0c\u901a\u8fc7Artemis\u8def\u7531\u5230\u5bf9\u5e94\u7684\u5ba2\u670d"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5ba2\u670d\u72b6\u6001\u540c\u6b65"}),"\uff1a\u5ba2\u670d\u72b6\u6001\u53d8\u66f4\uff08\u5728\u7ebf\u3001\u5fd9\u788c\u3001\u79bb\u7ebf\uff09\u901a\u8fc7Artemis\u540c\u6b65\u5230\u6240\u6709\u5b9e\u4f8b"]}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:"\u96c6\u7fa4\u76d1\u63a7\u4e0e\u7ef4\u62a4",children:"\u96c6\u7fa4\u76d1\u63a7\u4e0e\u7ef4\u62a4"}),"\n",(0,n.jsx)(e.h3,{id:"\u76d1\u63a7artemis\u961f\u5217",children:"\u76d1\u63a7Artemis\u961f\u5217"}),"\n",(0,n.jsx)(e.p,{children:"\u901a\u8fc7Artemis\u7ba1\u7406\u63a7\u5236\u53f0\u76d1\u63a7\u6d88\u606f\u961f\u5217\u72b6\u6001\uff1a"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u8bbf\u95ee ",(0,n.jsx)(e.code,{children:"http://your-artemis-host:18161/console"})]}),"\n",(0,n.jsx)(e.li,{children:"\u67e5\u770b\u961f\u5217\u6df1\u5ea6\u3001\u6d88\u606f\u541e\u5410\u91cf\u7b49\u6307\u6807"}),"\n"]}),"\n",(0,n.jsx)(e.h3,{id:"\u670d\u52a1\u5b9e\u4f8b\u5065\u5eb7\u68c0\u67e5",children:"\u670d\u52a1\u5b9e\u4f8b\u5065\u5eb7\u68c0\u67e5"}),"\n",(0,n.jsx)(e.p,{children:"\u901a\u8fc7Spring Boot Actuator\u76d1\u63a7\u5404\u670d\u52a1\u5b9e\u4f8b\u7684\u5065\u5eb7\u72b6\u6001\uff1a"}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["\u8bbf\u95ee ",(0,n.jsx)(e.code,{children:"http://server-ip:8000/actuator/health"})]}),"\n",(0,n.jsx)(e.li,{children:"\u67e5\u770b\u670d\u52a1\u5065\u5eb7\u72b6\u51b5\u3001\u5185\u5b58\u4f7f\u7528\u3001\u7ebf\u7a0b\u72b6\u6001\u7b49"}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:"\u6700\u4f73\u5b9e\u8df5",children:"\u6700\u4f73\u5b9e\u8df5"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5408\u7406\u914d\u7f6e\u6d88\u8d39\u8005\u6570\u91cf"}),"\uff1a\u6839\u636e\u670d\u52a1\u5668CPU\u6838\u5fc3\u6570\u914d\u7f6e",(0,n.jsx)(e.code,{children:"spring.jms.listener.max-concurrency"})]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u76d1\u63a7\u6d88\u606f\u79ef\u538b"}),"\uff1a\u5b9a\u671f\u68c0\u67e5Artemis\u961f\u5217\u6df1\u5ea6\uff0c\u907f\u514d\u6d88\u606f\u5806\u79ef"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u914d\u7f6e\u6d88\u606f\u91cd\u8bd5\u673a\u5236"}),"\uff1a\u8bbe\u7f6e\u9002\u5f53\u7684\u91cd\u8bd5\u6b21\u6570\u548c\u95f4\u9694\uff0c\u786e\u4fdd\u6d88\u606f\u5904\u7406\u53ef\u9760\u6027"]}),"\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:"\u5b9a\u671f\u5907\u4efdArtemis\u6570\u636e"}),"\uff1a\u786e\u4fdd\u6d88\u606f\u4e2d\u95f4\u4ef6\u7684\u6570\u636e\u5b89\u5168"]}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:"\u603b\u7ed3",children:"\u603b\u7ed3"}),"\n",(0,n.jsx)(e.p,{children:"\u901a\u8fc7Artemis\u6d88\u606f\u4e2d\u95f4\u4ef6\u5b9e\u73b0\u5fae\u8bed\u7cfb\u7edf\u7684\u96c6\u7fa4\u90e8\u7f72\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u7cfb\u7edf\u7684\u53ef\u7528\u6027\u548c\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002\u5728\u8be5\u67b6\u6784\u4e0b\uff0c\u591a\u4e2a\u670d\u52a1\u5b9e\u4f8b\u534f\u540c\u5de5\u4f5c\uff0c\u5171\u4eab\u6d88\u606f\u548c\u72b6\u6001\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u5ba2\u670d\u4f53\u9a8c\u3002"}),"\n",(0,n.jsx)(e.p,{children:"\u5bf9\u4e8e\u5927\u578b\u4f01\u4e1a\uff0c\u5efa\u8bae\u90e8\u7f72\u81f3\u5c113\u4e2a\u670d\u52a1\u5b9e\u4f8b\uff0c\u5e76\u914d\u7f6e\u76f8\u5e94\u7684\u76d1\u63a7\u544a\u8b66\u673a\u5236\uff0c\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u3002"})]})}function o(i={}){const{wrapper:e}={...(0,s.R)(),...i.components};return e?(0,n.jsx)(e,{...i,children:(0,n.jsx)(j,{...i})}):j(i)}},6246:(i,e,I)=>{I.d(e,{R:()=>d,x:()=>r});var l=I(2155);const n={},s=l.createContext(n);function d(i){const e=l.useContext(s);return l.useMemo((function(){return"function"==typeof i?i(e):{...e,...i}}),[e,i])}function r(i){let e;return e=i.disableParentContext?"function"==typeof i.components?i.components(n):i.components||n:d(i.components),l.createElement(s.Provider,{value:e},i.children)}}}]); |