{"id":4859,"date":"2021-04-02T18:16:53","date_gmt":"2021-04-02T10:16:53","guid":{"rendered":"http:\/\/www.menglanglang.cn\/?p=4859"},"modified":"2022-09-16T05:50:04","modified_gmt":"2022-09-15T21:50:04","slug":"%e4%ba%91%e8%ae%a1%e7%ae%97%e5%ad%a6%e4%b9%a0%e5%88%9d%e7%ba%a7%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b%ef%bc%88%e4%ba%8c%ef%bc%89-centos-6-%e5%ae%89%e8%a3%85-nacos-%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"http:\/\/www.menglanglang.cn\/?p=4859","title":{"rendered":"\u4e91\u8ba1\u7b97\u5b66\u4e60\u521d\u7ea7\u5165\u95e8\u6559\u7a0b\uff08\u4e8c\uff09 \u2014\u2014 CentOS 6 \u5b89\u88c5 nacos \u73af\u5883\u5e76\u914d\u7f6e\u548c\u6d4b\u8bd5"},"content":{"rendered":"\n<p>\u8fd9\u7bc7\u7b80\u5355\u4e86\u89e3\u4e0b Nacos\uff0c\u5e76\u8bf4\u660e\u4e0b\u5b83\u7684\u90e8\u7f72\u3001\u914d\u7f6e\u548c\u57fa\u672c\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>Nacos \u5b98\u7f51\u5bf9\u5176\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Nacos is committed to help you discover, configure, and manage your microservices. It provides a set of simple and useful features enabling you to realize dynamic service discovery, service configuration, service metadata and traffic management.<\/p><p>Nacos \u81f4\u529b\u4e8e\u5e2e\u52a9\u60a8\u53d1\u73b0\u3001\u914d\u7f6e\u548c\u7ba1\u7406\u5fae\u670d\u52a1\u3002Nacos \u63d0\u4f9b\u4e86\u4e00\u7ec4\u7b80\u5355\u6613\u7528\u7684\u7279\u6027\u96c6\uff0c\u5e2e\u52a9\u60a8\u5feb\u901f\u5b9e\u73b0\u52a8\u6001\u670d\u52a1\u53d1\u73b0\u3001\u670d\u52a1\u914d\u7f6e\u3001\u670d\u52a1\u5143\u6570\u636e\u53ca\u6d41\u91cf\u7ba1\u7406\u3002<\/p><p>Nacos makes it easier and faster to construct, deliver and manage your microservices platform. It is the infrastructure that supports a service-centered modern application architecture with a microservices or cloud-native approach.<\/p><p>Nacos \u5e2e\u52a9\u60a8\u66f4\u654f\u6377\u548c\u5bb9\u6613\u5730\u6784\u5efa\u3001\u4ea4\u4ed8\u548c\u7ba1\u7406\u5fae\u670d\u52a1\u5e73\u53f0\u3002 Nacos \u662f\u6784\u5efa\u4ee5\u201c\u670d\u52a1\u201d\u4e3a\u4e2d\u5fc3\u7684\u73b0\u4ee3\u5e94\u7528\u67b6\u6784 (\u4f8b\u5982\u5fae\u670d\u52a1\u8303\u5f0f\u3001\u4e91\u539f\u751f\u8303\u5f0f) \u7684\u670d\u52a1\u57fa\u7840\u8bbe\u65bd\u3002<\/p><\/blockquote>\n\n\n\n<p>Nacos \u5b98\u7f51\u5730\u5740\uff1a<a href=\"https:\/\/nacos.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nacos.io\/<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff1a\u4e0b\u8f7d\u5b89\u88c5\u5305<\/h3>\n\n\n\n<p>Nacos \u5b98\u7f51\u5b89\u88c5\u5305\u4e0b\u8f7d\u5730\u5740\u4e3a\uff1a<a href=\"https:\/\/github.com\/alibaba\/nacos\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/alibaba\/nacos\/releases<\/a><\/p>\n\n\n\n<p>\u8fd9\u91cc\u6d4b\u8bd5\u4e0b\u8f7d\u7248\u672c\u4e3a\uff1anacos-server-2.0.0.tar.gz<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1a\u89e3\u538b\u5b89\u88c5\u5305<\/h3>\n\n\n\n<p>\u628a\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u4e0a\u4f20\u5230\u670d\u52a1\uff0c\u5e76\u89e3\u538b\u5230\u8ba1\u5212\u5b89\u88c5\u7684\u76ee\u5f55\uff0c\u8fd9\u91cc\u89e3\u538b\u5230\u76ee\u5f55\uff1a\/usr\/nacos\/ \u4e0b\u3002<\/p>\n\n\n\n<p>\u547d\u4ee4\uff1atar -zxvf nacos-server-2.0.0.tar.gz&nbsp;<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"185\" width=\"592\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402173723371.png\"\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u542f\u52a8\u670d\u52a1<\/h3>\n\n\n\n<p>\u8fdb\u5165 bin \u76ee\u5f55\uff0c\u5e76\u542f\u52a8 nacos \u670d\u52a1\u3002<\/p>\n\n\n\n<p>\u547d\u4ee41\uff1acd bin<\/p>\n\n\n\n<p>\u547d\u4ee42\uff1a.\/startup.sh -m standalone<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"266\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402174026164.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u56db\u6b65\uff1a\u6d4b\u8bd5 nacos<\/h3>\n\n\n\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee\uff1a<a href=\"http:\/\/192.168.220.100:8848\/nacos\">http:\/\/192.168.220.100:8848\/nacos<\/a>\uff0c\u53ef\u4ee5\u6253\u5f00\u4e0b\u9762\u56fe\u6240\u793a\u767b\u5f55\u9875\u3002<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"371\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402174316615.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<p>\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801\u90fd\u4e3a&nbsp;nacos\uff0c\u8f93\u5165\u540e\u767b\u5f55\uff0c\u5219\u53ef\u4ee5\u8fdb\u5165\u540e\u53f0\u7ba1\u7406\u754c\u9762\uff0c\u5982\u4e0b\u56fe\u3002<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"279\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/2021040217444673.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e94\u6b65\uff1a\u9879\u76ee\u4e2d\u4f7f\u7528 nacos<\/h3>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u914d\u7f6e\u547d\u540d\u7a7a\u95f4\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"316\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402175901897.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"269\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402180126112.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<p>\u4f8b\u5982\u5728\u540e\u53f0 SpringBoot \u9879\u76ee\u4e2d\u4f7f\u7528 dubbo \u6846\u67b6\uff0c\u5982\u679c\u9700\u8981\u914d\u7f6e&nbsp;nacos \u670d\u52a1\uff0c\u5219\u9700\u8981\u4fee\u6539\u9879\u76ee\u7684\u914d\u7f6e\u6587\u4ef6 xxx.yml\uff0c\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nacos:\n  host: 192.168.220.100\n  port: 8848\n  username: nacos\n  password: nacos\n\ndubbo:\n  application:\n    name: gem-server\n  registry:\n    address: nacos:\/\/${nacos.host}:${nacos.port}\n    parameters:\n       namespace: a568a1c8-6c35-48db-9424-c55f7934cd48   # \u5f00\u53d1\u73af\u5883\n...<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u670d\u52a1\u6ce8\u518c\u6210\u529f\uff0c\u540e\u7ba1\u9875\u9762\u670d\u52a1\u7ba1\u7406\u4e2d\u53ef\u4ee5\u770b\u5230\u670d\u52a1\u6ce8\u518c\u60c5\u51b5\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" height=\"376\" width=\"900\" alt=\"\" src=\"\/\/images.weserv.nl\/?url=https:\/\/img-blog.csdnimg.cn\/20210402180921801.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3R6aHV3Yg==,size_16,color_FFFFFF,t_70\"\/><\/p>\n\n\n\n<p>\u5230\u6b64\uff0cnacos \u7684\u90e8\u7f72\u53ca\u540e\u7ba1\u9875\u9762\u7684\u4f7f\u7528\uff0c\u4ee5\u53ca\u9879\u76ee\u4e2d\u7684\u914d\u7f6e\u7b80\u8981\u505a\u4e86\u4ecb\u7ecd\uff0c\u5982\u679c\u5728\u9879\u76ee\u4e2d\u4f7f\u7528 nacos\uff0c\u8fd8\u9700\u8981\u8be6\u7ec6\u9605\u8bfb\u5b98\u65b9\u8bf4\u660e\u6587\u6863\uff0c\u505a\u5230\u914d\u7f6e\u6700\u4f18\u624d\u884c\u3002<\/p>\n\n\n\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/blog.csdn.net\/tzhuwb\/article\/details\/115404363\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/blog.csdn.net\/tzhuwb\/article\/details\/115404363<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u7b80\u5355\u4e86\u89e3\u4e0b Nacos\uff0c\u5e76\u8bf4\u660e\u4e0b\u5b83\u7684\u90e8\u7f72\u3001\u914d\u7f6e\u548c\u57fa\u672c\u4f7f\u7528\u3002 Nacos \u5b98\u7f51\u5bf9\u5176\u8bf4\u660e\u5982\u4e0b\uff1a Nacos i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[845],"tags":[354,602,846,843,877,847,214,199],"class_list":["post-4859","post","type-post","status-publish","format-standard","hentry","category-nacos","tag-centos","tag-linux","tag-nacos","tag-843","tag-877","tag-847","tag-214","tag-199"],"_links":{"self":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/4859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4859"}],"version-history":[{"count":4,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/4859\/revisions"}],"predecessor-version":[{"id":4864,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/4859\/revisions\/4864"}],"wp:attachment":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4859"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}