<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nacos on Jalen's blog</title><link>https://www.jalen-qian.com/en/tags/nacos/</link><description>Recent content in Nacos on Jalen's blog</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Wed, 19 May 2021 17:37:56 +0800</lastBuildDate><atom:link href="https://www.jalen-qian.com/en/tags/nacos/index.xml" rel="self" type="application/rss+xml"/><item><title>[Nacos] Starting Nacos with Docker</title><link>https://www.jalen-qian.com/en/p/nacos-starting-nacos-with-docker/</link><pubDate>Wed, 19 May 2021 17:31:56 +0800</pubDate><guid>https://www.jalen-qian.com/en/p/nacos-starting-nacos-with-docker/</guid><description>
 &lt;blockquote&gt;
 &lt;p&gt;Preface: I received a requirement today. Since most applications in the customer&amp;rsquo;s cluster require configuration from the configuration center to be pushed to &lt;code&gt;Nacos&lt;/code&gt;, I did some research and quickly started a local &lt;code&gt;Nacos&lt;/code&gt; using Docker.&lt;/p&gt;

 &lt;/blockquote&gt;
&lt;h1 id="what-is-nacos"&gt;What Is Nacos?
&lt;/h1&gt;&lt;p&gt;&lt;code&gt;Nacos&lt;/code&gt; is a new open-source project launched by Alibaba. It is a dynamic service discovery, configuration management, and service management platform that makes it easier to build cloud-native applications.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Nacos&lt;/code&gt; is committed to helping you discover, configure, and manage microservices. Nacos provides a simple and easy-to-use set of features that helps you quickly implement dynamic service discovery, service configuration, service metadata, and traffic management.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Nacos&lt;/code&gt; helps you build, deliver, and manage microservice platforms more easily and efficiently. Nacos is service infrastructure for building modern service-centric application architectures, such as the microservices and cloud-native paradigms.&lt;/p&gt;
&lt;p&gt;&lt;a class="link" href="https://nacos.io/zh-cn/docs/what-is-nacos.html" target="_blank" rel="noopener"
 &gt;Official Documentation&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="starting-nacos-with-docker"&gt;Starting Nacos with Docker
&lt;/h1&gt;&lt;p&gt;&lt;strong&gt;This deployment uses standalone mode.&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id="pull-the-official-image"&gt;Pull the Official Image
&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;docker pull nacos/nacos-server
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h3 id="start-the-docker-container"&gt;Start the Docker Container
&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;docker run --name nacos-standalone -e &lt;span class="nv"&gt;MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;standalone -p 8848:8848 -d nacos/nacos-server:latest
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;h3 id="verify-the-deployment"&gt;Verify the Deployment
&lt;/h3&gt;&lt;p&gt;The service is started on port 8848 of the local machine. Open a browser and visit:&lt;/p&gt;
&lt;p&gt;&lt;a class="link" href="http://127.0.0.1:8848/nacos/index.html" target="_blank" rel="noopener"
 &gt;http://127.0.0.1:8848/nacos/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The default username and password are both &lt;code&gt;nacos&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image-20210519194118405" class="gallery-image" data-flex-basis="586px" data-flex-grow="244" height="777" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://cdn1.jalen-qian.com/Hugo/20210519194118BgB4YVCEr6.png" srcset="https://www.jalen-qian.com/20210519194118BgB4YVCEr6_2980791687510821226_hu_67985f0c417a1aee.png 800w, https://www.jalen-qian.com/20210519194118BgB4YVCEr6_2980791687510821226_hu_4916823e2494f50b.png 1600w, http://cdn1.jalen-qian.com/Hugo/20210519194118BgB4YVCEr6.png 1900w" width="1900"&gt;&lt;/p&gt;
&lt;p&gt;After logging in, you can add configurations under Configuration Management.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image-20210519194213398" class="gallery-image" data-flex-basis="1040px" data-flex-grow="433" height="442" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="http://cdn1.jalen-qian.com/Hugo/20210519194213s8MBkfHGV3.png" srcset="https://www.jalen-qian.com/20210519194213s8MBkfHGV3_7472743311256784071_hu_e6c75e2b96437c8b.png 800w, https://www.jalen-qian.com/20210519194213s8MBkfHGV3_7472743311256784071_hu_3c3ab88738088474.png 1600w, http://cdn1.jalen-qian.com/Hugo/20210519194213s8MBkfHGV3.png 1916w" width="1916"&gt;&lt;/p&gt;</description></item></channel></rss>