{"id":115031,"date":"2026-10-10T23:17:13","date_gmt":"2026-10-10T15:17:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115031.html"},"modified":"2026-10-10T23:17:13","modified_gmt":"2026-10-10T15:17:13","slug":"%e6%94%b9%e4%b8%80%e8%a1%8c%e9%85%8d%e7%bd%ae%e8%a6%81%e9%87%8d%e5%90%af%e6%95%b4%e4%b8%aa%e6%9c%8d%e5%8a%a1%ef%bc%9f%e7%94%a8-nacos-%e8%ae%a9%e8%bf%90%e8%a1%8c%e6%97%b6%e7%83%ad%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115031.html","title":{"rendered":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4"},"content":{"rendered":"<h2 id=\"nacos-cpolar\">\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1&#xff1f;\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda&#xff0c;cpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4<\/h2>\n<p><img decoding=\"async\" alt=\"\u5c01\u9762\u56fe\uff1aNacos \u914d\u7f6e\u4e2d\u5fc3\u628a\u53d8\u66f4\u5b9e\u65f6\u63a8\u9001\u7ed9\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u5b9e\u73b0\u514d\u91cd\u542f\u70ed\u66f4\u65b0\uff0c\u5e76\u7528 cpolar \u96a7\u9053\u628a\u8131\u654f\u53ea\u8bfb\u9762\u677f\u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010151707-6aca56f3546dd.png\" \/><\/p>\n<p>\u534a\u591c\u8fd0\u8425\u5728\u7fa4\u91cc\u8bf4\u201c\u8fd9\u4e2a\u9608\u503c\u8c03\u5927\u4e00\u70b9\u201d&#xff0c;\u503c\u73ed\u7684\u540c\u5b66\u56de\u4e00\u53e5\u201c\u597d&#xff0c;\u6211\u6539\u4e0b\u914d\u7f6e\u91cd\u65b0\u53d1\u4e2a\u7248\u201d\u3002\u6539\u7684\u53ea\u662f\u4e00\u4e2a\u6570\u5b57&#xff0c;\u4ee3\u4ef7\u5374\u662f\u4e00\u6b21\u5b8c\u6574\u91cd\u542f&#xff1a;\u8fde\u63a5\u65ad\u3001\u7f13\u5b58\u51b7\u3001\u6b63\u5728\u8dd1\u7684\u4efb\u52a1\u88ab\u6253\u65ad\u3002\u771f\u51fa\u95ee\u9898&#xff0c;\u8fd8\u5f97\u518d\u53d1\u4e00\u6b21\u7248\u628a\u914d\u7f6e\u6539\u56de\u53bb\u3002<\/p>\n<p>\u8fd9\u7bc7\u60f3\u89e3\u51b3\u7684&#xff0c;\u5c31\u662f\u201c\u914d\u7f6e\u6539\u52a8\u80fd\u4e0d\u80fd\u4e0d\u91cd\u542f\u5c31\u751f\u6548&#xff0c;\u5e76\u4e14\u6539\u9519\u4e86\u80fd\u9000\u56de\u6765\u201d\u3002\u4e3b\u7ebf\u653e\u5728 Nacos \u7684\u52a8\u6001\u914d\u7f6e\u80fd\u529b\u4e0a&#xff0c;\u7528\u4e00\u4e2a\u6700\u5c0f\u670d\u52a1\u628a\u6574\u6761\u94fe\u8def\u8dd1\u901a\u3002\u5f02\u5730\u8fd0\u7ef4\u8981\u6838\u5bf9\u201c\u6539\u4e86\u4ec0\u4e48\u3001\u4f55\u65f6\u751f\u6548\u3001\u600e\u4e48\u56de\u6eda\u201d\u65f6&#xff0c;cpolar \u53ea\u8d1f\u8d23\u628a\u4e00\u5f20\u8131\u654f\u7684\u53ea\u8bfb\u9762\u677f\u5f00\u51fa\u53bb\u3002<\/p>\n<p>\u5148\u628a\u672c\u6587\u8fb9\u754c\u8bf4\u6e05\u695a&#xff1a;\u4e0b\u9762 Nacos \u7684\u542f\u52a8\u3001\u914d\u7f6e\u76d1\u542c\u3001\u53d8\u66f4\u751f\u6548\u4e0e\u56de\u6eda\u5206\u652f&#xff0c;\u4ee5\u53ca cpolar \u53ea\u8bfb\u9762\u677f\u7684\u9a8c\u8bc1&#xff0c;\u90fd\u662f\u672c\u6587\u9636\u6bb5\u89c4\u5212\u5728\u9694\u79bb\u73af\u5883\u91cc\u6267\u884c\u7684\u5b9e\u9a8c\u63d0\u7eb2&#xff0c;\u672c\u8f6e\u6ca1\u6709\u5b9e\u9645\u5b89\u88c5\u3001\u6ca1\u6709\u542f\u52a8\u670d\u52a1\u3001\u6ca1\u6709\u5f00\u96a7\u9053\u3001\u6ca1\u6709\u751f\u56fe\u3002\u6587\u4e2d\u7ed9\u51fa\u7684\u547d\u4ee4\u3001\u63a5\u53e3\u8def\u5f84\u3001\u53c2\u6570\u90fd\u6765\u81ea Nacos \u5b98\u65b9\u6587\u6863\u4e0e\u955c\u50cf\u9875\u7684\u5f53\u524d\u53e3\u5f84&#xff0c;\u5199\u5728\u6b63\u6587\u91cc\u7684\u662f\u53ef\u6267\u884c\u7684\u64cd\u4f5c\u6b65\u9aa4&#xff0c;\u800c\u4e0d\u662f\u67d0\u4e00\u6b21\u5df2\u7ecf\u8dd1\u5b8c\u7684\u5b9e\u6d4b\u7ed3\u679c\u3002\u6d89\u53ca\u751f\u6548\u5ef6\u8fdf\u3001\u5e76\u53d1\u8868\u73b0\u7684\u7ed3\u8bba&#xff0c;\u90fd\u8981\u7b49\u771f\u5b9e\u73af\u5883\u8dd1\u5b8c\u518d\u8bb0\u5f55&#xff0c;\u672c\u6587\u4e0d\u9884\u5148\u7ed9\u6570\u503c\u3002<\/p>\n<h3 id=\"1-nacos\">1 \u4ec0\u4e48\u662f Nacos&#xff1f;\u8fd9\u7bc7\u91cc\u5b83\u5230\u5e95\u8d1f\u8d23\u54ea\u4e00\u6bb5<\/h3>\n<p>Nacos \u5b98\u7f51\u5bf9\u5b83\u7684\u5b9a\u4f4d\u662f \u201cDynamic Naming and Configuration Service\u201d&#xff0c;\u4e00\u4e2a\u52a8\u6001\u670d\u52a1\u53d1\u73b0\u3001\u914d\u7f6e\u7ba1\u7406\u4e0e\u670d\u52a1\u7ba1\u7406\u5e73\u53f0&#xff0c;\u63d0\u4f9b\u5e2e\u52a9\u5feb\u901f\u5b9e\u73b0\u52a8\u6001\u670d\u52a1\u914d\u7f6e\u7684\u7279\u6027\u96c6\u3002\u8fd9\u4e2a\u540d\u5b57\u62c6\u5f00\u770b\u5c31\u662f\u4e24\u4ef6\u4e8b&#xff1a;\u670d\u52a1\u53d1\u73b0&#xff08;Naming&#xff09;\u548c\u914d\u7f6e\u7ba1\u7406&#xff08;Configuration&#xff09;\u3002<\/p>\n<p>\u653e\u5230\u8fd9\u7bc7\u6587\u7ae0\u91cc&#xff0c;\u6211\u53ea\u7528\u5b83\u914d\u7f6e\u7ba1\u7406\u90a3\u4e00\u534a&#xff1a;\u8ba9\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u670d\u52a1&#xff0c;\u5728\u4e0d\u91cd\u542f\u8fdb\u7a0b\u7684\u524d\u63d0\u4e0b\u62ff\u5230\u65b0\u914d\u7f6e\u3002\u670d\u52a1\u53d1\u73b0\u3001\u5fae\u670d\u52a1\u6cbb\u7406\u3001\u6ce8\u518c\u4e2d\u5fc3\u90a3\u4e00\u6574\u5957&#xff0c;\u8fd9\u7bc7\u4e0d\u5c55\u5f00&#xff0c;\u907f\u514d\u628a\u4e00\u7bc7\u914d\u7f6e\u751f\u6548\u7684\u6587\u7ae0\u5199\u6210\u5fae\u670d\u52a1\u5168\u666f\u4ecb\u7ecd\u3002<\/p>\n<p>\u5b83\u89e3\u51b3\u7684\u6838\u5fc3\u75db\u70b9\u5f88\u5177\u4f53\u3002\u4f20\u7edf\u505a\u6cd5\u4e0b&#xff0c;\u914d\u7f6e\u6765\u81ea\u542f\u52a8\u53c2\u6570\u6216\u672c\u5730\u6587\u4ef6&#xff0c;\u8fdb\u7a0b\u542f\u52a8\u90a3\u4e00\u523b\u8bfb\u8fdb\u53bb\u5c31\u4e0d\u518d\u53d8\u3002\u60f3\u8ba9\u65b0\u503c\u751f\u6548&#xff0c;\u53ea\u80fd\u91cd\u542f\u3002Nacos \u628a\u914d\u7f6e\u653e\u5728\u81ea\u5df1\u8fd9\u8fb9\u6258\u7ba1&#xff0c;\u670d\u52a1\u542f\u52a8\u65f6\u62c9\u4e00\u6b21&#xff0c;\u4e4b\u540e\u4fdd\u6301\u8ba2\u9605\u5173\u7cfb&#xff0c;\u914d\u7f6e\u4e00\u6539&#xff0c;\u670d\u52a1\u8fd9\u8fb9\u5c31\u80fd\u6536\u5230\u53d8\u66f4\u3002<\/p>\n<p>\u8fd9\u91cc\u8981\u533a\u5206\u4e24\u4e2a\u5bb9\u6613\u6df7\u7684\u6982\u5ff5&#xff0c;\u540e\u9762\u6392\u9519\u5f88\u5173\u952e&#xff1a;<\/p>\n<ul>\n<li>\u62c9&#xff08;\u83b7\u53d6\u914d\u7f6e&#xff09;&#xff1a;\u670d\u52a1\u4e3b\u52a8\u53bb Nacos \u8bfb\u4e00\u6b21\u5f53\u524d\u914d\u7f6e&#xff0c;\u662f\u5355\u6b21\u8bf7\u6c42\u3002<\/li>\n<li>\u8ba2\u9605&#xff08;\u76d1\u542c\u914d\u7f6e&#xff09;&#xff1a;\u670d\u52a1\u6ce8\u518c\u4e00\u4e2a\u56de\u8c03&#xff0c;\u914d\u7f6e\u53d8\u52a8\u65f6\u88ab\u901a\u77e5&#xff0c;\u662f\u4e00\u6bb5\u6301\u7eed\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<p>\u53ea\u505a\u7b2c\u4e00\u6b65&#xff0c;\u914d\u7f6e\u786e\u5b9e\u5b58\u5728 Nacos \u91cc&#xff0c;\u4f46\u670d\u52a1\u4e0d\u91cd\u542f\u5c31\u6c38\u8fdc\u770b\u4e0d\u5230\u65b0\u503c\u3002\u771f\u6b63\u8ba9\u201c\u514d\u91cd\u542f\u201d\u6210\u7acb\u7684\u662f\u7b2c\u4e8c\u6b65\u3002\u8fd9\u4e00\u6b65\u4e0d\u505a&#xff0c;\u540e\u9762\u6240\u6709\u73b0\u8c61\u90fd\u4f1a\u548c\u201c\u6ca1\u751f\u6548\u201d\u5bf9\u4e0d\u4e0a&#xff0c;\u6700\u540e\u67e5\u534a\u5929\u53d1\u73b0\u4ee3\u7801\u91cc\u6839\u672c\u6ca1\u52a0\u76d1\u542c\u3002<\/p>\n<h3 id=\"2-colima-docker-docker-nacos\">2 \u73af\u5883\u51c6\u5907&#xff1a;\u7528 Colima \u8d77 Docker&#xff0c;\u518d\u7528 Docker \u8d77 Nacos<\/h3>\n<p>\u8fd9\u7bc7\u4e0d\u9700\u8981 JDK&#xff0c;\u4e5f\u4e0d\u9700\u8981 Maven&#xff0c;\u6574\u6761\u94fe\u8def\u9760\u5bb9\u5668\u8dd1\u3002\u672c\u673a\u786e\u8ba4\u8fc7 Docker \u4e0e Colima \u90fd\u5728&#xff0c;\u7248\u672c\u662f Docker 29.5.2&#xff1a;<\/p>\n<p>docker &#8211;version<br \/>\ncolima status<\/p>\n<p>colima status \u663e\u793a running \u5c31\u591f\u7528\u4e86&#xff1b;\u6ca1\u8d77\u8fc7\u7684\u8bdd\u5148 colima start\u3002\u8fd9\u4e00\u6b65\u4e0d\u662f\u5f62\u5f0f&#xff0c;\u5bb9\u5668\u5f15\u64ce\u6ca1\u8d77\u6765&#xff0c;\u540e\u9762 docker run \u4f1a\u76f4\u63a5\u8fde\u63a5\u5931\u8d25&#xff0c;\u73b0\u8c61\u662f \u201cCannot connect to the Docker daemon\u201d\u3002<\/p>\n<p>Nacos \u5b98\u65b9 Docker \u5feb\u901f\u5f00\u59cb\u7ed9\u7684\u662f standalone \u6a21\u5f0f\u7684\u542f\u52a8\u65b9\u5f0f&#xff0c;\u955c\u50cf\u7528 nacos\/nacos-server\u3002\u4e0b\u9762\u7684 tag \u53d6\u81ea\u955c\u50cf tags \u9875\u9762\u5f53\u524d\u53ef\u62c9\u53d6\u7684\u6b63\u5f0f\u7248\u672c&#xff08;\u975e RC&#xff09;&#xff0c;\u5199\u6587\u7ae0\u65f6\u4ee5\u5b98\u65b9\u9875\u9762\u4e0a\u7684 tag \u4e3a\u51c6&#xff0c;\u522b\u7167\u6284\u4e00\u4e2a\u8001\u65e7 tag&#xff0c;\u4e5f\u522b\u968f\u624b\u7528 v3.3.0 \u8fd9\u79cd\u8fd8\u5904\u5728 RC \u7684\u7248\u672c&#xff1a;<\/p>\n<p>docker pull nacos\/nacos-server:v3.2.4<\/p>\n<p>\u62c9\u955c\u50cf\u7684\u65f6\u5019\u7559\u610f\u4e00\u4e0b\u67b6\u6784\u3002Nacos \u8fd9\u4e2a\u955c\u50cf\u540c\u65f6\u63d0\u4f9b amd64 \u548c arm64&#xff0c;Apple Silicon \u673a\u5668\u8d70 arm64 variant\u3002\u5982\u679c\u62c9\u53d6\u5f88\u6162&#xff0c;\u5148\u786e\u8ba4\u7f51\u7edc&#xff0c;\u4e0d\u8981\u4ee5\u4e3a\u662f\u955c\u50cf\u672c\u8eab\u51fa\u9519\u3002<\/p>\n<p>\u955c\u50cf\u4f53\u79ef\u63a5\u8fd1 600 MB&#xff0c;\u7b2c\u4e00\u6b21\u62c9\u4f1a\u7b49\u4e00\u4f1a\u513f\u3002\u8fd9\u4e00\u6b65\u505a\u5b8c&#xff0c;docker images \u91cc\u80fd\u770b\u5230 nacos\/nacos-server \u5c31\u7b97\u8fc7\u4e86\u3002<\/p>\n<h3 id=\"3-nacosstandalone\">3 \u542f\u52a8 Nacos&#xff1a;standalone \u6a21\u5f0f &#043; \u4e09\u4e2a\u5fc5\u586b\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u5b98\u65b9\u7ed9\u7684\u6700\u5c0f\u542f\u52a8\u547d\u4ee4\u957f\u8fd9\u6837&#xff0c;\u7167\u6284\u65f6\u628a\u4e09\u4e2a ${&#8230;} \u5360\u4f4d\u6362\u6210\u4f60\u81ea\u5df1\u7684\u5f3a\u968f\u673a\u503c&#xff1a;<\/p>\n<p>docker run &#8211;name nacos-standalone-derby \\\\<br \/>\n  -e MODE&#061;standalone \\\\<br \/>\n  -e NACOS_AUTH_TOKEN&#061;&#039;\u6362\u6210\u4f60\u7684Base64\u5bc6\u94a5&#039; \\\\<br \/>\n  -e NACOS_AUTH_IDENTITY_KEY&#061;&#039;\u6362\u6210\u4f60\u7684identity key&#039; \\\\<br \/>\n  -e NACOS_AUTH_IDENTITY_VALUE&#061;&#039;\u6362\u6210\u4f60\u7684identity value&#039; \\\\<br \/>\n  -p 8080:8080 \\\\<br \/>\n  -p 8848:8848 \\\\<br \/>\n  -p 9848:9848 \\\\<br \/>\n  -d nacos\/nacos-server:v3.2.4<\/p>\n<p>\u4e09\u4e2a\u73af\u5883\u53d8\u91cf\u4e0d\u662f\u53ef\u9009\u9879\u3002Nacos 3.x \u7684\u9274\u6743\u9ed8\u8ba4\u5f00\u542f&#xff0c;NACOS_AUTH_TOKEN \u662f token \u7b7e\u540d\u5bc6\u94a5&#xff0c;\u5efa\u8bae\u7528 Base64 \u5b57\u7b26\u4e32\u3001\u539f\u59cb\u5bc6\u94a5\u957f\u5ea6\u4e0d\u5c11\u4e8e 32 \u5b57\u7b26&#xff1b;NACOS_AUTH_IDENTITY_KEY \u548c NACOS_AUTH_IDENTITY_VALUE \u662f\u8282\u70b9\u95f4\u901a\u4fe1\u8eab\u4efd\u3002\u96c6\u7fa4\u90e8\u7f72\u65f6\u5404\u8282\u70b9\u8fd9\u51e0\u4e2a\u503c\u5fc5\u987b\u4e00\u81f4&#xff0c;standalone \u4e5f\u5efa\u8bae\u914d\u7f6e&#xff0c;\u522b\u7559\u7a7a\u8dd1\u3002<\/p>\n<p>\u7aef\u53e3\u4e5f\u89e3\u91ca\u4e00\u4e0b&#xff0c;\u514d\u5f97\u540e\u9762\u63a5\u4e0d\u4e0a&#xff1a;8848 \u662f\u4e3b HTTP \u7aef\u53e3&#xff0c;\u63a7\u5236\u53f0\u548c Open API \u90fd\u8d70\u5b83&#xff1b;9848 \u662f 3.x \u5ba2\u6237\u7aef gRPC \u7528\u7684\u7aef\u53e3&#xff0c;\u5ba2\u6237\u7aef\u8fde Nacos \u65f6\u662f HTTP \u7aef\u53e3\u52a0\u504f\u79fb\u91cf&#xff1b;8080 \u662f\u5b98\u65b9 Docker \u5feb\u901f\u5f00\u59cb\u91cc\u7ed9\u63a7\u5236\u53f0\u7528\u7684\u6620\u5c04\u7aef\u53e3\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u6700\u5bb9\u6613\u9519\u7684\u5730\u65b9\u662f\u7aef\u53e3\u3002 \u53ea\u6620\u5c04\u4e86 8848 \u5fd8\u4e86 9848&#xff0c;HTTP \u63a5\u53e3\u80fd\u901a&#xff0c;\u4f46\u670d\u52a1\u7aef SDK \u7528 gRPC \u65f6\u8fde\u4e0d\u4e0a&#xff0c;\u73b0\u8c61\u662f\u914d\u7f6e\u80fd\u8bfb\u5230\u3001\u8ba2\u9605\u5374\u6536\u4e0d\u5230\u63a8\u9001\u3002\u6392\u67e5\u65f6\u5148\u770b docker ps \u91cc\u7aef\u53e3\u6620\u5c04\u5168\u4e0d\u5168\u3002<\/p>\n<p>\u542f\u52a8\u540e\u786e\u8ba4\u5bb9\u5668\u6d3b\u7740&#xff1a;<\/p>\n<p>docker logs -f nacos-standalone-derby<\/p>\n<p>\u65e5\u5fd7\u91cc\u51fa\u73b0\u4e0b\u9762\u8fd9\u53e5&#xff0c;\u8bf4\u660e\u8d77\u6765\u4e86&#xff1a;<\/p>\n<p>Nacos started successfully in standalone mode. use derby storage<\/p>\n<p>\u8fd9\u91cc\u7684 derby \u662f\u5185\u5d4c\u5b58\u50a8&#xff0c;standalone \u6a21\u5f0f\u9ed8\u8ba4\u7528\u5b83&#xff0c;\u9002\u5408\u9a8c\u8bc1&#xff0c;\u4e0d\u9002\u5408\u5f53\u751f\u4ea7\u5e93\u3002\u770b\u5230\u8fd9\u53e5\u4e4b\u524d&#xff0c;\u63a7\u5236\u53f0\u6253\u5f00\u5927\u6982\u7387\u662f\u767d\u9875\u6216 404&#xff0c;\u522b\u6025\u7740\u53bb\u6539\u914d\u7f6e\u3002<\/p>\n<h3 id=\"4\">4 \u6253\u901a\u5165\u53e3&#xff1a;\u521d\u59cb\u5316\u7ba1\u7406\u5458\u5bc6\u7801&#xff0c;\u62ff\u5230\u8bbf\u95ee\u51ed\u636e<\/h3>\n<p>Nacos 2.4.0 \u8d77\u4e0d\u518d\u5185\u7f6e nacos \u7528\u6237\u7684\u9ed8\u8ba4\u5bc6\u7801&#xff0c;\u9996\u6b21\u5f00\u542f\u9ed8\u8ba4\u9274\u6743\u540e\u8981\u5148\u521d\u59cb\u5316\u7ba1\u7406\u5458\u5bc6\u7801\u3002\u6253\u5f00\u63a7\u5236\u53f0&#xff1a;<\/p>\n<p>http:\/\/127.0.0.1:8080<\/p>\n<p>\u9996\u6b21\u8fdb\u5165\u4f1a\u8981\u6c42\u521d\u59cb\u5316\u7ba1\u7406\u5458\u5bc6\u7801&#xff0c;\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u5bc6\u7801\u5e76\u8bb0\u4f4f\u5b83\u3002<\/p>\n<p>\u63a7\u5236\u53f0\u53ea\u662f\u4eba\u770b\u7684\u5165\u53e3&#xff0c;\u670d\u52a1\u7aef\u548c\u811a\u672c\u8d70\u7684\u662f Open API\u3002\u8981\u8c03 API \u5f97\u5148\u62ff token&#xff1a;<\/p>\n<p>curl -X POST &#039;http:\/\/127.0.0.1:8848\/nacos\/v3\/auth\/user\/login&#039; \\\\<br \/>\n  -d &#039;username&#061;nacos&#039; \\\\<br \/>\n  -d &#039;password&#061;\u4f60\u521a\u8bbe\u7f6e\u7684\u5bc6\u7801&#039;<\/p>\n<p>\u8fd4\u56de\u4f53\u91cc\u4f1a\u6709 access token&#xff0c;\u540e\u9762\u7684\u7ba1\u7406\u7c7b\u63a5\u53e3\u5e26\u4e0a\u5b83\u3002\u5199\u811a\u672c\u65f6\u628a token \u653e\u8fdb\u8bf7\u6c42\u5934 accessToken&#xff0c;\u522b\u5199\u6b7b\u5728\u4ee3\u7801\u91cc&#xff0c;\u7528\u5b8c\u5373\u5f03\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u7684\u63d0\u9192\u548c cpolar \u90a3\u6761\u7ebf\u662f\u547c\u5e94\u7684&#xff1a;Nacos \u5b98\u65b9\u660e\u786e\u8bf4\u5b83\u662f\u5185\u90e8\u5fae\u670d\u52a1\u7ec4\u4ef6&#xff0c;\u5e94\u5728\u53ef\u4fe1\u5185\u7f51\u4e2d\u8fd0\u884c&#xff0c;\u4e0d\u8981\u66b4\u9732\u5728\u516c\u7f51\u3002\u6240\u4ee5\u540e\u9762\u65e0\u8bba\u600e\u4e48\u5f00\u96a7\u9053&#xff0c;\u90fd\u4e0d\u8981\u628a Nacos \u63a7\u5236\u53f0\u672c\u8eab\u6216 8848 \u7aef\u53e3\u900f\u51fa\u53bb\u3002 \u8fd9\u6761\u7ea2\u7ebf\u5148\u7acb\u5728\u8fd9\u3002<\/p>\n<p>\u987a\u624b\u7528\u5b98\u65b9\u7ed9\u7684\u63a5\u53e3\u786e\u8ba4\u914d\u7f6e\u670d\u52a1\u662f\u901a\u7684\u3002\u5148\u53d1\u5e03\u4e00\u6761\u914d\u7f6e&#xff1a;<\/p>\n<p>curl -X POST &#039;http:\/\/127.0.0.1:8848\/nacos\/v3\/admin\/cs\/config?dataId&#061;demo-app.properties&amp;groupName&#061;DEFAULT_GROUP&amp;content&#061;threshold&#061;100&#039; \\\\<br \/>\n  -H &#034;accessToken:\u4f60\u7684token&#034;<\/p>\n<p>\u518d\u8bfb\u56de\u6765&#xff1a;<\/p>\n<p>curl -X GET &#039;http:\/\/127.0.0.1:8848\/nacos\/v3\/client\/cs\/config?dataId&#061;demo-app.properties&amp;groupName&#061;DEFAULT_GROUP&#039;<\/p>\n<p>\u8fd4\u56de\u7684 data \u91cc\u80fd\u770b\u5230 content\u3001md5\u3001lastModified\u3001beta \u8fd9\u4e9b\u5b57\u6bb5\u3002md5 \u662f\u540e\u7eed\u5224\u65ad\u914d\u7f6e\u6709\u6ca1\u6709\u53d8\u7684\u4f9d\u636e&#xff0c;lastModified \u662f\u6700\u540e\u4fee\u6539\u65f6\u95f4&#xff0c;\u56de\u6eda\u6838\u5bf9\u65f6\u5c31\u9760\u5b83\u4eec\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u91cc\u8fd4\u56de\u9274\u6743\u5931\u8d25&#xff0c;\u5148\u68c0\u67e5 token \u6709\u6ca1\u6709\u5e26\u4e0a\u3001\u6709\u6ca1\u6709\u8fc7\u671f&#xff08;\u9ed8\u8ba4\u6709\u6548\u671f 18000 \u79d2&#xff09;&#xff0c;\u4e0d\u8981\u4e00\u4e0a\u6765\u6000\u7591\u914d\u7f6e\u5185\u5bb9\u6709\u95ee\u9898\u3002<\/p>\n<h3 id=\"5\">5 \u6838\u5fc3\u4e00\u6b65&#xff1a;\u8ba9\u670d\u52a1\u8ba2\u9605\u914d\u7f6e&#xff0c;\u800c\u4e0d\u662f\u53ea\u62c9\u4e00\u6b21<\/h3>\n<p>\u8fd9\u4e00\u6b65\u662f\u5168\u6587\u7684\u91cd\u70b9\u3002\u7528\u4e00\u4e2a Python \u5c0f\u670d\u52a1\u6765\u6f14\u793a&#xff0c;\u56e0\u4e3a\u5b98\u65b9\u793e\u533a\u7ef4\u62a4\u4e86 nacos-sdk-python&#xff0c;\u652f\u6301 Nacos 3.x \u7684\u5ba2\u6237\u7aef\u80fd\u529b\u3002\u5b83\u8981\u6c42 Python 3.10&#043;&#xff0c;\u672c\u673a\u662f 3.14.3\u3002<\/p>\n<p>\u5efa\u4e2a\u5e72\u51c0\u7684\u5de5\u4f5c\u76ee\u5f55&#xff0c;\u88c5 SDK&#xff1a;<\/p>\n<p>mkdir nacos-hotreload-demo<br \/>\ncd nacos-hotreload-demo<br \/>\npython3 -m venv .venv<br \/>\n.venv\/bin\/python -m pip install nacos-sdk-python<\/p>\n<p>\u63a5\u7740\u5199\u4e00\u4e2a\u6700\u5c0f\u670d\u52a1\u3002\u5b83\u505a\u4e09\u4ef6\u4e8b&#xff1a;\u542f\u52a8\u65f6\u8bfb\u4e00\u6b21\u914d\u7f6e\u3001\u6ce8\u518c\u4e00\u4e2a\u76d1\u542c\u3001\u5728\u76d1\u542c\u56de\u8c03\u91cc\u6839\u636e\u65b0\u503c\u5224\u65ad\u662f\u5426\u63a5\u53d7\u3002<\/p>\n<p>import asyncio<br \/>\nimport os<br \/>\nfrom v2.nacos import NacosConfigService, ClientConfigBuilder, ConfigParam<\/p>\n<p>DATA_ID &#061; &#034;demo-app.properties&#034;<br \/>\nGROUP &#061; &#034;DEFAULT_GROUP&#034;<\/p>\n<p># \u4e1a\u52a1\u89c4\u5219&#xff1a;\u9608\u503c\u5fc5\u987b\u662f\u6b63\u6574\u6570&#xff0c;\u4e14\u4e0d\u8d85\u8fc7 1000<br \/>\ndef parse_and_validate(content: str):<br \/>\n    value &#061; None<br \/>\n    for line in content.splitlines():<br \/>\n        line &#061; line.strip()<br \/>\n        if line.startswith(&#034;threshold&#061;&#034;):<br \/>\n            value &#061; int(line.split(&#034;&#061;&#034;, 1)[1])<br \/>\n    if value is None:<br \/>\n        raise ValueError(&#034;\u7f3a\u5c11 threshold \u9879&#034;)<br \/>\n    if value &lt;&#061; 0 or value &gt; 1000:<br \/>\n        raise ValueError(f&#034;threshold \u8d8a\u754c: {value}&#034;)<br \/>\n    return value<\/p>\n<p>class ThresholdService:<br \/>\n    def __init__(self):<br \/>\n        self.current &#061; None<\/p>\n<p>    def apply(self, content: str):<br \/>\n        # \u5148\u6821\u9a8c&#xff0c;\u518d\u5207\u6362&#xff1b;\u6821\u9a8c\u5931\u8d25\u5c31\u4e0d\u52a8\u5f53\u524d\u503c<br \/>\n        new_value &#061; parse_and_validate(content)<br \/>\n        old &#061; self.current<br \/>\n        self.current &#061; new_value<br \/>\n        print(f&#034;[APPLIED] threshold {old} -&gt; {new_value}&#034;)<\/p>\n<p>    def reject(self, content: str, reason: str):<br \/>\n        # \u62d2\u7edd\u5206\u652f&#xff1a;\u4fdd\u7559\u65e7\u503c&#xff0c;\u660e\u786e\u6253\u5370&#xff0c;\u4fbf\u4e8e\u89c2\u5bdf\u56de\u6eda\u73b0\u8c61<br \/>\n        print(f&#034;[REJECTED] content&#061;{content!r} reason&#061;{reason} keep&#061;{self.current}&#034;)<\/p>\n<p>async def main():<br \/>\n    client_config &#061; (ClientConfigBuilder()<br \/>\n                     .server_address(os.getenv(&#034;NACOS_SERVER_ADDR&#034;, &#034;127.0.0.1:8848&#034;))<br \/>\n                     .log_level(&#034;INFO&#034;)<br \/>\n                     .build())<br \/>\n    config_client &#061; await NacosConfigService.create_config_service(client_config)<br \/>\n    service &#061; ThresholdService()<\/p>\n<p>    async def on_change(tenant, data_id, group, content):<br \/>\n        try:<br \/>\n            service.apply(content)<br \/>\n        except Exception as exc:<br \/>\n            service.reject(content, str(exc))<\/p>\n<p>    # \u5148\u62c9\u4e00\u6b21\u57fa\u7ebf\u503c<br \/>\n    initial &#061; await config_client.get_config(ConfigParam(data_id&#061;DATA_ID, group&#061;GROUP))<br \/>\n    service.apply(initial)<\/p>\n<p>    # \u5173\u952e&#xff1a;\u6ce8\u518c\u76d1\u542c&#xff0c;\u4e4b\u540e\u914d\u7f6e\u53d8\u52a8\u4f1a\u56de\u8c03\u5230 on_change<br \/>\n    await config_client.add_listener(DATA_ID, GROUP, on_change)<br \/>\n    print(&#034;[LISTENING] \u5df2\u8ba2\u9605\u914d\u7f6e\u53d8\u66f4&#xff0c;\u7b49\u5f85\u63a8\u9001&#8230;&#034;)<\/p>\n<p>    await asyncio.sleep(3600)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    asyncio.run(main())<\/p>\n<p>\u8fd0\u884c&#xff1a;<\/p>\n<p>.venv\/bin\/python service.py<\/p>\n<p>\u7ec8\u7aef\u5e94\u6253\u5370 [LISTENING] \u5df2\u8ba2\u9605\u914d\u7f6e\u53d8\u66f4&#xff0c;\u7b49\u5f85\u63a8\u9001&#8230;\u3002\u770b\u5230\u8fd9\u884c\u624d\u7b97\u8ba2\u9605\u6210\u529f&#xff1b;\u5982\u679c\u5361\u5728 create_config_service \u6216\u62a5\u8fde\u63a5\u9519\u8bef&#xff0c;\u5148\u56de\u53bb\u67e5 9848 \u7aef\u53e3\u548c\u9274\u6743\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u8fd9\u91cc\u8981\u8bf4\u660e SDK \u7684\u884c\u4e3a\u8fb9\u754c&#xff1a;add_listener \u6ce8\u518c\u540e&#xff0c;\u5982\u679c\u670d\u52a1\u7aef\u5df2\u5b58\u5728\u8be5\u914d\u7f6e&#xff0c;\u56de\u8c03\u4f1a\u5148\u88ab\u89e6\u53d1\u4e00\u6b21&#xff1b;\u4e4b\u540e\u7684\u53d8\u66f4\u6216\u5220\u9664\u4e5f\u4f1a\u89e6\u53d1\u56de\u8c03&#xff0c;\u56de\u8c03\u5728\u5f53\u524d\u8fdb\u7a0b\u5185\u6267\u884c\u3002\u6362\u53e5\u8bdd\u8bf4&#xff0c;\u56de\u8c03\u51fd\u6570\u91cc\u522b\u585e\u8017\u65f6\u64cd\u4f5c&#xff0c;\u5426\u5219\u4f1a\u62d6\u4f4f\u540e\u7eed\u901a\u77e5\u7684\u5904\u7406\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u7701&#xff1f; \u56e0\u4e3a\u524d\u9762 8848 \u4e0a\u7684 curl \u53ea\u662f\u8bc1\u660e\u201c\u914d\u7f6e\u5b58\u5728 Nacos \u91cc\u201d&#xff0c;\u5b8c\u5168\u6ca1\u8bc1\u660e\u201c\u670d\u52a1\u4f1a\u81ea\u5df1\u53d1\u73b0\u53d8\u5316\u201d\u3002\u53ea\u62c9\u4e0d\u8ba2\u9605\u7684\u7cfb\u7edf&#xff0c;\u6539\u914d\u7f6e\u4e00\u6837\u8981\u91cd\u542f\u3002\u76d1\u542c\u624d\u662f\u514d\u91cd\u542f\u7684\u5f00\u5173\u3002<\/p>\n<h3 id=\"6\">6 \u5b9e\u6d4b\u9a8c\u8bc1&#xff1a;\u6539\u503c\u751f\u6548\u3001\u975e\u6cd5\u503c\u88ab\u62d2\u3001\u56de\u6eda\u53ef\u89c2\u5bdf<\/h3>\n<p>\u73b0\u5728\u4fdd\u6301\u670d\u52a1\u8fd0\u884c&#xff0c;\u53e6\u5f00\u4e00\u4e2a\u7ec8\u7aef\u6539\u914d\u7f6e\u3002\u628a\u9608\u503c\u4ece 100 \u6539\u6210 300&#xff1a;<\/p>\n<p>curl -X POST &#039;http:\/\/127.0.0.1:8848\/nacos\/v3\/admin\/cs\/config?dataId&#061;demo-app.properties&amp;groupName&#061;DEFAULT_GROUP&amp;content&#061;threshold&#061;300&#039; \\\\<br \/>\n  -H &#034;accessToken:\u4f60\u7684token&#034;<\/p>\n<p>\u56de\u5230\u670d\u52a1\u7ec8\u7aef&#xff0c;\u5e94\u8be5\u770b\u5230&#xff1a;<\/p>\n<p>[APPLIED] threshold 100 -&gt; 300<\/p>\n<p>\u914d\u7f6e\u6539\u4e86&#xff0c;\u8fdb\u7a0b\u6ca1\u91cd\u542f&#xff0c;\u503c\u53d8\u4e86\u3002\u5199\u5230\u6587\u7ae0\u91cc\u7684\u9a8c\u8bc1\u6807\u51c6\u5c31\u4e00\u53e5&#xff1a;\u914d\u7f6e\u9879\u5728\u670d\u52a1\u4e0d\u91cd\u542f\u7684\u60c5\u51b5\u4e0b\u5b9e\u9645\u53d1\u751f\u53d8\u5316&#xff0c;\u5e76\u4e14\u6709\u65e5\u5fd7\u53ef\u89c2\u5bdf\u3002 \u5177\u4f53\u9694\u4e86\u591a\u4e45\u751f\u6548&#xff0c;\u53d6\u51b3\u4e8e\u957f\u8fde\u63a5\u63a8\u9001\u548c\u7f51\u7edc&#xff0c;\u672c\u6587\u4e0d\u9884\u544a\u79d2\u6570&#xff0c;\u771f\u5b9e\u73af\u5883\u8dd1\u5b8c\u518d\u8bb0\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u670d\u52a1\u8ba2\u9605 Nacos \u914d\u7f6e\u5e76\u70ed\u66f4\u65b0\u751f\u6548\uff1a\u957f\u8fde\u63a5\u56de\u8c03\u89e6\u53d1 APPLIED \u751f\u6548\u4e0e REJECTED \u4fdd\u7559\u65e7\u503c\u4e24\u6761\u65e5\u5fd7\u5206\u652f\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010151709-6aca56f54d476.png\" \/><\/p>\n<p>\u518d\u6765\u9a8c\u8bc1\u62d2\u7edd\u4e0e\u56de\u6eda\u3002\u6545\u610f\u53d1\u4e00\u4e2a\u8d8a\u754c\u503c&#xff1a;<\/p>\n<p>curl -X POST &#039;http:\/\/127.0.0.1:8848\/nacos\/v3\/admin\/cs\/config?dataId&#061;demo-app.properties&amp;groupName&#061;DEFAULT_GROUP&amp;content&#061;threshold&#061;9999&#039; \\\\<br \/>\n  -H &#034;accessToken:\u4f60\u7684token&#034;<\/p>\n<p>\u670d\u52a1\u7ec8\u7aef\u5e94\u6253\u5370&#xff1a;<\/p>\n<p>[REJECTED] content&#061;&#039;threshold&#061;9999&#039; reason&#061;&#039;threshold \u8d8a\u754c: 9999&#039; keep&#061;300<\/p>\n<p>\u8981\u770b\u61c2\u8fd9\u6761\u65e5\u5fd7\u7684\u542b\u4e49&#xff1a;\u914d\u7f6e\u4e2d\u5fc3\u90a3\u8fb9\u8fd9\u6761\u5185\u5bb9\u786e\u5b9e\u88ab\u6539\u6210 9999 \u4e86&#xff0c;\u4f46\u670d\u52a1\u8fd9\u8fb9\u56e0\u4e3a\u6821\u9a8c\u6ca1\u8fc7&#xff0c;\u4fdd\u7559\u4e86\u65e7\u503c 300&#xff0c;\u6ca1\u6709\u5207\u6362\u3002\u8fd9\u5c31\u662f\u5e94\u7528\u5c42\u7684\u201c\u62d2\u7edd\u5e76\u4fdd\u6301\u201d\u3002\u5b83\u548c\u201c\u56de\u6eda\u201d\u662f\u4e24\u4ef6\u4e8b&#xff0c;\u522b\u6df7&#xff1a;<\/p>\n<ul>\n<li>\u62d2\u7edd&#xff1a;\u65b0\u503c\u4e0d\u5408\u6cd5&#xff0c;\u670d\u52a1\u4e0d\u6536&#xff0c;\u4fdd\u6301\u65e7\u503c\u7ee7\u7eed\u8dd1\u3002<\/li>\n<li>\u56de\u6eda&#xff1a;\u628a\u914d\u7f6e\u4e2d\u5fc3\u91cc\u7684\u503c\u6539\u56de\u4e0a\u4e00\u7248&#xff0c;\u8ba9\u6240\u6709\u8ba2\u9605\u65b9\u90fd\u6536\u5230\u65e7\u503c\u3002<\/li>\n<\/ul>\n<p>\u62d2\u7edd\u9760\u5e94\u7528\u4fa7\u6821\u9a8c\u515c\u4f4f&#xff1b;\u56de\u6eda\u9760\u914d\u7f6e\u4e2d\u5fc3\u7684\u5386\u53f2\u7248\u672c\u80fd\u529b\u3002\u771f\u8981\u56de\u6eda\u65f6&#xff0c;\u628a\u63a7\u53f0\u91cc\u8fd9\u6761\u914d\u7f6e\u6062\u590d\u5230\u4e0a\u4e00\u7248&#xff0c;\u670d\u52a1\u8fd9\u8fb9\u5c31\u4f1a\u6536\u5230\u4e00\u6b21\u56de\u8c03&#xff0c;\u6253\u5370\u51fa\u65b0\u7684 [APPLIED]\u3002\u6574\u4e2a\u94fe\u8def\u7684\u53ef\u89c2\u5bdf\u70b9\u5c31\u662f\u8fd9\u4e9b\u65e5\u5fd7\u884c\u3002<\/p>\n<p>\u5982\u679c\u53d1\u4e86\u65b0\u503c\u5374\u4ec0\u4e48\u65e5\u5fd7\u90fd\u6ca1\u6709&#xff0c;\u6309\u8fd9\u4e2a\u987a\u5e8f\u67e5&#xff1a;\u670d\u52a1\u662f\u4e0d\u662f\u8fd8\u5728\u8dd1\u3001\u76d1\u542c\u6709\u6ca1\u6709\u6ce8\u518c\u6210\u529f\u3001dataId \u548c groupName \u6709\u6ca1\u6709\u5199\u9519\u30018848 \u8bf7\u6c42\u662f\u4e0d\u662f\u8fd4\u56de\u4e86\u6210\u529f\u3002\u6700\u5e38\u89c1\u7684\u9519\u662f dataId \u5927\u5c0f\u5199\u6216\u540e\u7f00\u4e0d\u4e00\u81f4&#xff0c;\u4e24\u8fb9\u5bf9\u4e0d\u4e0a&#xff0c;\u7b49\u4e8e\u5728\u7ed9\u4e0d\u540c\u7684\u914d\u7f6e\u9879\u53d1\u6d88\u606f\u3002<\/p>\n<p>\u8fd9\u8f6e\u9a8c\u8bc1\u7684\u76ee\u6807\u662f\u628a\u914d\u7f6e\u751f\u6548\u94fe\u8def\u8dd1\u901a&#xff0c;\u4e0d\u662f\u505a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u6cbb\u7406&#xff0c;\u4e5f\u4e0d\u662f\u538b\u6d4b\u3002\u5e76\u53d1\u4e0b\u7684\u884c\u4e3a\u3001\u6781\u7aef\u60c5\u51b5\u4e0b\u7684\u5ef6\u8fdf&#xff0c;\u90fd\u8981\u540e\u7eed\u5355\u72ec\u8bb0\u5f55&#xff0c;\u672c\u6587\u4e0d\u627f\u8bfa\u3002<\/p>\n<h3 id=\"7-cpolar\">7 \u628a\u53ea\u8bfb\u9762\u677f\u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4&#xff1a;\u7ed1\u5b9a\u672c\u5730\u7aef\u53e3&#xff0c;cpolar \u8f6c\u53d1<\/h3>\n<p>\u524d\u9762\u670d\u52a1\u8dd1\u5728\u8fd9\u53f0\u673a\u5668\u4e0a&#xff0c;\u5f02\u5730\u540c\u4e8b\u60f3\u6838\u5bf9\u201c\u6539\u4e86\u4ec0\u4e48\u3001\u4f55\u65f6\u751f\u6548\u3001\u600e\u4e48\u56de\u6eda\u201d&#xff0c;\u8981\u4e48\u62c9\u8fdc\u7a0b\u684c\u9762&#xff0c;\u8981\u4e48\u4e00\u5806\u622a\u56fe\u3002\u66f4\u7701\u4e8b\u7684\u505a\u6cd5\u662f\u505a\u4e00\u4e2a\u8131\u654f\u7684\u53ea\u8bfb\u9762\u677f&#xff0c;\u7136\u540e\u7528 cpolar \u628a\u8fd9\u4e00\u5f20\u9875\u9762\u5f00\u51fa\u53bb\u3002<\/p>\n<p>\u5148\u8bf4\u9762\u677f\u672c\u8eab\u3002\u5b83\u4e0d\u8fde\u63a5 Nacos \u63a7\u5236\u53f0&#xff0c;\u4e5f\u4e0d\u66b4\u9732 8848&#xff0c;\u53ea\u662f\u628a\u53d8\u66f4\u8bb0\u5f55\u6574\u7406\u6210\u4e00\u6bb5\u9759\u6001\u5185\u5bb9&#xff0c;\u53ea\u5305\u542b\u8131\u654f\u540e\u7684 key\u3001\u7248\u672c\u53f7\u548c\u751f\u6548\u65f6\u95f4&#xff1a;<\/p>\n<p>import json<br \/>\nfrom http.server import BaseHTTPRequestHandler, HTTPServer<\/p>\n<p># \u53ea\u653e\u8131\u654f\u540e\u7684\u5b57\u6bb5&#xff0c;\u4e0d\u653e\u539f\u59cb\u503c\u3001\u4e0d\u653e\u8def\u5f84\u3001\u4e0d\u653e\u51ed\u636e<br \/>\nRECORDS &#061; [<br \/>\n    {&#034;key&#034;: &#034;threshold&#034;, &#034;version&#034;: &#034;v2&#034;, &#034;applied_at&#034;: &#034;2026-10-08T14:20:00&#043;08:00&#034;, &#034;result&#034;: &#034;\u751f\u6548&#034;},<br \/>\n    {&#034;key&#034;: &#034;threshold&#034;, &#034;version&#034;: &#034;v3&#034;, &#034;applied_at&#034;: &#034;2026-10-08T14:22:10&#043;08:00&#034;, &#034;result&#034;: &#034;\u5df2\u62d2\u7edd(\u8d8a\u754c)&#034;},<br \/>\n]<\/p>\n<p>class Handler(BaseHTTPRequestHandler):<br \/>\n    def do_GET(self):<br \/>\n        if self.path !&#061; &#034;\/changes&#034;:<br \/>\n            self.send_response(404)<br \/>\n            self.end_headers()<br \/>\n            return<br \/>\n        body &#061; json.dumps(RECORDS, ensure_ascii&#061;False, indent&#061;2).encode(&#034;utf-8&#034;)<br \/>\n        self.send_response(200)<br \/>\n        self.send_header(&#034;Content-Type&#034;, &#034;application\/json; charset&#061;utf-8&#034;)<br \/>\n        self.send_header(&#034;Content-Length&#034;, str(len(body)))<br \/>\n        self.end_headers()<br \/>\n        self.wfile.write(body)<\/p>\n<p>if __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    HTTPServer((&#034;127.0.0.1&#034;, 8849), Handler).serve_forever()<\/p>\n<p>\u5b58\u6210 panel.py \u540e\u8fd0\u884c&#xff1a;<\/p>\n<p>python3 panel.py<\/p>\n<p>\u672c\u673a\u5148\u81ea\u6d4b&#xff0c;\u53ea\u6709 \/changes \u8fd4\u56de 200&#xff0c;\u5176\u4ed6\u8def\u5f84\u4e00\u5f8b 404&#xff1a;<\/p>\n<p>curl -fsS http:\/\/127.0.0.1:8849\/changes<br \/>\ncurl -I http:\/\/127.0.0.1:8849\/..\/nacos<br \/>\ncurl -I http:\/\/127.0.0.1:8849\/admin<\/p>\n<p>\u4e3a\u4ec0\u4e48\u9762\u677f\u8981\u72ec\u7acb\u6210\u4e00\u4e2a\u8fdb\u7a0b&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u8f6c\u53d1\u63a7\u5236\u53f0&#xff1f; \u56e0\u4e3a\u63a7\u5236\u53f0\u80fd\u6539\u914d\u7f6e\u3001\u80fd\u770b namespace&#xff0c;\u6743\u9650\u592a\u91cd\u3002\u53ea\u8bfb\u9762\u677f\u5373\u4f7f\u5730\u5740\u6cc4\u9732&#xff0c;\u80fd\u62ff\u5230\u7684\u4e5f\u53ea\u662f\u4e00\u4efd\u8131\u654f\u8bb0\u5f55&#xff0c;\u6539\u4e0d\u4e86\u4efb\u4f55\u4e1c\u897f\u3002\u8fd9\u662f\u6709\u610f\u7684\u53d6\u820d\u3002<\/p>\n<p>\u9762\u677f\u786e\u8ba4\u6ca1\u95ee\u9898\u540e&#xff0c;\u624d\u5230 cpolar\u3002\u5148\u628a cpolar \u88c5\u597d\u3001\u8d26\u53f7\u8ba4\u8bc1\u597d&#xff0c;\u5b98\u65b9\u4e0b\u8f7d\u9875\u662f https:\/\/www.cpolar.com\/download &#xff0c;\u6587\u6863\u5728 https:\/\/www.cpolar.com\/docs \u3002\u672c\u7bc7\u4e0d\u5199\u8d26\u53f7\u3001\u4e0d\u6539\u5168\u5c40\u914d\u7f6e\u3001\u4e0d\u91cd\u542f\u65e2\u6709\u96a7\u9053\u3002<\/p>\n<p>\u4fdd\u6301\u9762\u677f\u8fdb\u7a0b\u8fd0\u884c&#xff0c;\u53e6\u5f00\u7ec8\u7aef\u8d77\u4e00\u4e2a\u4e34\u65f6 HTTP \u96a7\u9053&#xff0c;\u6307\u5411 8849&#xff1a;<\/p>\n<p>cpolar http 8849<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u53ea\u6620\u5c04\u9762\u677f\u7aef\u53e3&#xff0c;\u4e0d\u6620\u5c04 8848&#xff0c;\u4e5f\u4e0d\u6620\u5c04 8080&#xff0c;\u6240\u4ee5 Nacos \u63a7\u5236\u53f0\u548c Open API \u90fd\u4e0d\u5728\u516c\u7f51\u53ef\u8fbe\u8303\u56f4\u5185\u3002\u7ec8\u7aef\u91cc cpolar \u4f1a\u6253\u5370\u5728\u7ebf\u72b6\u6001\u548c\u516c\u7f51\u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" alt=\"cpolar \u96a7\u9053\u628a\u5185\u7f51\u53ea\u8bfb\u53d8\u66f4\u9762\u677f\u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4\uff1a\u9762\u677f\u4ec5\u66b4\u9732\u8131\u654f\u7684\u952e\u540d\u3001\u7248\u672c\u4e0e\u751f\u6548\u65f6\u95f4\uff0c\u4e14\u4e0d\u53ef\u4fee\u6539\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010151710-6aca56f6ed917.png\" \/><\/p>\n<p>\u62ff\u5230\u5730\u5740\u540e&#xff0c;\u5728\u5f02\u5730\u6d4f\u89c8\u5668\u6253\u5f00&#xff1a;<\/p>\n<p>https:\/\/&lt;cpolar\u7ed9\u51fa\u7684\u5730\u5740&gt;\/changes<\/p>\n<p>\u770b\u5230\u7684\u662f\u90a3\u4efd\u8131\u654f\u7684\u53d8\u66f4\u8bb0\u5f55&#xff1a;key\u3001\u7248\u672c\u3001\u751f\u6548\u65f6\u95f4\u3001\u7ed3\u679c\u3002\u5f02\u5730\u540c\u4e8b\u636e\u6b64\u6838\u5bf9\u8fd9\u4e00\u6b21\u6539\u52a8\u662f\u5426\u751f\u6548\u3001\u5931\u8d25\u7684\u90a3\u6761\u4e3a\u4ec0\u4e48\u88ab\u62d2\u3001\u8981\u56de\u6eda\u5230\u54ea\u4e2a\u7248\u672c\u3002\u6838\u5bf9\u5b8c\u6210&#xff0c;Ctrl&#043;C \u5173\u6389\u96a7\u9053\u548c\u9762\u677f\u3002<\/p>\n<p>\u5173\u4e8e\u5730\u5740\u8fd8\u6709\u4e00\u4e2a\u5b9e\u9645\u70b9&#xff1a;\u514d\u8d39\u5957\u9910\u751f\u6210\u7684\u662f\u968f\u673a\u4e34\u65f6\u5730\u5740&#xff0c;24 \u5c0f\u65f6\u5185\u4f1a\u53d8\u5316&#xff0c;\u9002\u5408\u4e34\u65f6\u6838\u5bf9&#xff0c;\u4e0d\u9002\u5408\u5f53\u6210\u5e38\u9a7b\u5165\u53e3\u3002\u5982\u679c\u5f02\u5730\u6838\u5bf9\u662f\u957f\u671f\u52a8\u4f5c&#xff0c;\u518d\u770b\u56fa\u5b9a\u4e8c\u7ea7\u5b50\u57df\u540d\u65b9\u6848&#xff0c;\u90a3\u662f\u57fa\u7840\u5957\u9910\u6216\u4ee5\u4e0a\u7684\u80fd\u529b\u3002<\/p>\n<h3 id=\"8\">8 \u603b\u7ed3<\/h3>\n<p>\u8d70\u5230\u8fd9\u91cc&#xff0c;\u5df2\u7ecf\u628a\u201c\u6539\u4e00\u884c\u914d\u7f6e\u5c31\u8981\u91cd\u542f\u670d\u52a1\u201d\u8fd9\u4ef6\u4e8b\u62c6\u5f00\u9a8c\u8bc1\u5b8c\u4e86&#xff1a;Nacos \u8d1f\u8d23\u6258\u7ba1\u914d\u7f6e\u5e76\u63a8\u9001\u53d8\u66f4&#xff0c;\u670d\u52a1\u8ba2\u9605\u540e\u4e0d\u91cd\u542f\u5c31\u80fd\u62ff\u5230\u65b0\u503c&#xff0c;\u975e\u6cd5\u503c\u88ab\u5e94\u7528\u5c42\u62d2\u7edd\u5e76\u4fdd\u7559\u65e7\u503c&#xff0c;\u56de\u6eda\u901a\u8fc7\u6062\u590d\u5386\u53f2\u7248\u672c\u89e6\u53d1\u4e00\u6b21\u65b0\u7684\u53d8\u66f4\u56de\u8c03\u3002\u5f02\u5730\u6838\u5bf9\u8fd9\u4e00\u73af&#xff0c;\u7528\u4e00\u5f20\u8131\u654f\u53ea\u8bfb\u9762\u677f\u52a0\u4e00\u6761 cpolar \u96a7\u9053\u5c31\u591f&#xff0c;\u63a7\u5236\u53f0\u672c\u8eab\u59cb\u7ec8\u4e0d\u51fa\u5185\u7f51\u3002<\/p>\n<ul>\n<li>\u914d\u7f6e\u542f\u52a8\u7528 standalone \u6a21\u5f0f&#xff0c;\u4e09\u4e2a\u9274\u6743\u73af\u5883\u53d8\u91cf\u5fc5\u586b&#xff0c;\u7aef\u53e3 8080\/8848\/9848 \u4e00\u4e2a\u90fd\u4e0d\u80fd\u5c11\u3002<\/li>\n<li>\u201c\u514d\u91cd\u542f\u201d\u7684\u5173\u952e\u662f add_listener \u8ba2\u9605&#xff0c;\u53ea get_config \u62c9\u4e00\u6b21\u7684\u5199\u6cd5\u4e00\u6837\u8981\u91cd\u542f\u3002<\/li>\n<li>\u62d2\u7edd\u548c\u56de\u6eda\u662f\u4e24\u56de\u4e8b&#xff0c;\u524d\u8005\u9760\u5e94\u7528\u4fa7\u6821\u9a8c&#xff0c;\u540e\u8005\u9760\u6062\u590d\u5386\u53f2\u7248\u672c&#xff1b;\u9a8c\u8bc1\u65f6\u7528\u65e5\u5fd7\u628a\u4e24\u6761\u5206\u652f\u90fd\u6253\u51fa\u6765\u3002<\/li>\n<li>\u9762\u677f\u53ea\u66b4\u9732\u8131\u654f\u8bb0\u5f55&#xff0c;cpolar \u53ea\u8f6c\u53d1\u8fd9\u4e00\u4e2a\u7aef\u53e3&#xff0c;Nacos \u63a7\u5236\u53f0\u3001\u6570\u636e\u5e93\u3001\u51ed\u636e\u76ee\u5f55\u90fd\u4e0d\u7a7f\u900f\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u4e00\u7bc7\u5982\u679c\u8981\u7ee7\u7eed\u5f80\u6df1\u8d70&#xff0c;\u53ef\u4ee5\u628a\u8fd9\u6bb5\u76d1\u542c\u903b\u8f91\u63a5\u8fdb\u4e00\u4e2a\u771f\u5b9e\u7684 Spring Boot \u670d\u52a1&#xff0c;\u6216\u8005\u8865\u4e0a\u7070\u5ea6\u53d1\u5e03\u548c namespace \u9694\u79bb\u3002\u914d\u7f6e\u751f\u6548\u8fd9\u4ef6\u4e8b\u770b\u7740\u5c0f&#xff0c;\u4f46\u628a\u5b83\u505a\u5bf9&#xff0c;\u534a\u591c\u90a3\u6b21\u201c\u6539\u4e2a\u6570\u5b57\u201d\u5c31\u4e0d\u7528\u518d\u53d1\u7248\u4e86\u2014\u2014\u7701\u4e0b\u7684\u4e0d\u53ea\u662f\u4e00\u6b21\u91cd\u542f&#xff0c;\u8fd8\u6709\u88ab\u91cd\u542f\u6253\u65ad\u7684\u90a3\u4e9b\u6b63\u5728\u8dd1\u7684\u6d3b\u3002<\/p>\n<p>\u53c2\u8003&#xff1a;Nacos \u5b98\u65b9 Docker \u5feb\u901f\u5f00\u59cb\u3001\u5ba2\u6237\u7aef API\u3001\u9274\u6743\u6587\u6863&#xff1b;nacos-sdk-python&#xff1b;cpolar \u5b98\u65b9\u6587\u6863\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1&#xff1f;\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda&#xff0c;cpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 \u534a\u591c\u8fd0\u8425\u5728\u7fa4\u91cc\u8bf4\u201c\u8fd9\u4e2a\u9608\u503c\u8c03\u5927\u4e00\u70b9\u201d&#xff0c;\u503c\u73ed\u7684\u540c\u5b66\u56de\u4e00\u53e5\u201c\u597d&#xff0c;\u6211\u6539\u4e0b\u914d\u7f6e\u91cd\u65b0\u53d1\u4e2a\u7248\u201d\u3002\u6539\u7684\u53ea\u662f\u4e00\u4e2a\u6570\u5b57&#xff0c;\u4ee3\u4ef7\u5374\u662f\u4e00\u6b21\u5b8c\u6574\u91cd\u542f&#xff1a;\u8fde\u63a5\u65ad\u3001\u7f13\u5b58\u51b7\u3001\u6b63\u5728\u8dd1\u7684\u4efb\u52a1\u88ab\u6253\u65ad\u3002\u771f\u51fa\u95ee\u9898&#xff0c;\u8fd8\u5f97\u518d\u53d1\u4e00\u6b21\u7248\u628a\u914d\u7f6e\u6539\u56de\u53bb\u3002<br \/>\n\u8fd9\u7bc7\u60f3\u89e3\u51b3\u7684&#xff0c;\u5c31\u662f\u201c\u914d\u7f6e\u6539\u52a8\u80fd\u4e0d\u80fd\u4e0d\u91cd\u542f\u5c31\u751f\u6548&#xff0c;\u5e76\u4e14\u6539\u9519\u4e86\u80fd<\/p>\n","protected":false},"author":2,"featured_media":115028,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13085,7345,321,1864,415],"topic":[],"class_list":["post-115031","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-13085","tag-7345","tag-cpolar","tag-nacos","tag-415"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \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\/115031.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1&#xff1f;\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda&#xff0c;cpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 \u534a\u591c\u8fd0\u8425\u5728\u7fa4\u91cc\u8bf4\u201c\u8fd9\u4e2a\u9608\u503c\u8c03\u5927\u4e00\u70b9\u201d&#xff0c;\u503c\u73ed\u7684\u540c\u5b66\u56de\u4e00\u53e5\u201c\u597d&#xff0c;\u6211\u6539\u4e0b\u914d\u7f6e\u91cd\u65b0\u53d1\u4e2a\u7248\u201d\u3002\u6539\u7684\u53ea\u662f\u4e00\u4e2a\u6570\u5b57&#xff0c;\u4ee3\u4ef7\u5374\u662f\u4e00\u6b21\u5b8c\u6574\u91cd\u542f&#xff1a;\u8fde\u63a5\u65ad\u3001\u7f13\u5b58\u51b7\u3001\u6b63\u5728\u8dd1\u7684\u4efb\u52a1\u88ab\u6253\u65ad\u3002\u771f\u51fa\u95ee\u9898&#xff0c;\u8fd8\u5f97\u518d\u53d1\u4e00\u6b21\u7248\u628a\u914d\u7f6e\u6539\u56de\u53bb\u3002 \u8fd9\u7bc7\u60f3\u89e3\u51b3\u7684&#xff0c;\u5c31\u662f\u201c\u914d\u7f6e\u6539\u52a8\u80fd\u4e0d\u80fd\u4e0d\u91cd\u542f\u5c31\u751f\u6548&#xff0c;\u5e76\u4e14\u6539\u9519\u4e86\u80fd\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115031.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-10T15:17:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010151707-6aca56f3546dd.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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115031.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115031.html\",\"name\":\"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-10T15:17:13+00:00\",\"dateModified\":\"2026-10-10T15:17:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115031.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115031.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115031.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4\"}]},{\"@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":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \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\/115031.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1&#xff1f;\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda&#xff0c;cpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 \u534a\u591c\u8fd0\u8425\u5728\u7fa4\u91cc\u8bf4\u201c\u8fd9\u4e2a\u9608\u503c\u8c03\u5927\u4e00\u70b9\u201d&#xff0c;\u503c\u73ed\u7684\u540c\u5b66\u56de\u4e00\u53e5\u201c\u597d&#xff0c;\u6211\u6539\u4e0b\u914d\u7f6e\u91cd\u65b0\u53d1\u4e2a\u7248\u201d\u3002\u6539\u7684\u53ea\u662f\u4e00\u4e2a\u6570\u5b57&#xff0c;\u4ee3\u4ef7\u5374\u662f\u4e00\u6b21\u5b8c\u6574\u91cd\u542f&#xff1a;\u8fde\u63a5\u65ad\u3001\u7f13\u5b58\u51b7\u3001\u6b63\u5728\u8dd1\u7684\u4efb\u52a1\u88ab\u6253\u65ad\u3002\u771f\u51fa\u95ee\u9898&#xff0c;\u8fd8\u5f97\u518d\u53d1\u4e00\u6b21\u7248\u628a\u914d\u7f6e\u6539\u56de\u53bb\u3002 \u8fd9\u7bc7\u60f3\u89e3\u51b3\u7684&#xff0c;\u5c31\u662f\u201c\u914d\u7f6e\u6539\u52a8\u80fd\u4e0d\u80fd\u4e0d\u91cd\u542f\u5c31\u751f\u6548&#xff0c;\u5e76\u4e14\u6539\u9519\u4e86\u80fd","og_url":"https:\/\/www.wsisp.com\/helps\/115031.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-10T15:17:13+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010151707-6aca56f3546dd.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115031.html","url":"https:\/\/www.wsisp.com\/helps\/115031.html","name":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-10T15:17:13+00:00","dateModified":"2026-10-10T15:17:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115031.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115031.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115031.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6539\u4e00\u884c\u914d\u7f6e\u8981\u91cd\u542f\u6574\u4e2a\u670d\u52a1\uff1f\u7528 Nacos \u8ba9\u8fd0\u884c\u65f6\u70ed\u66f4\u65b0\u4e0e\u56de\u6eda\uff0ccpolar \u5f00\u7ed9\u5f02\u5730\u8fd0\u7ef4"}]},{"@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\/115031","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=115031"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115031\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115028"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115031"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}