This is the 17th day of my participation in the More text Challenge. For more details, see more text Challenge

Little drops of water wear through a stone 😄

What is a Nacos

The website says:

Nacos is dedicated to helping you discover, configure, and manage microservices. Nacos provides a set of easy-to-use features that help you quickly implement dynamic service discovery, service configuration, service metadata, and traffic management. Nacos helps you build, deliver, and manage microservices platforms more quickly and easily. Nacos is a service infrastructure for building modern application architectures centered on “services” (e.g., microservices paradigm, cloud-native paradigm).

It is a collection of Euraka + springCloud Config. Service registry and configuration management, but it also has other features, and the rest is up for grabs.

Why Nacos

  • 1. Euraka 2.0 stops maintenance.
  • 2. Nacos provides an operational management page for service login and logout management and service weight management.
  • 3. Nacos integrates registry and configuration center functions to reduce maintenance costs.
  • 4. Nacos uses namespaces and groups to isolate services or projects, which can support multiple projects and environments.
  • 5. Nacos supports permission authentication and can assign different permissions to users.

start

Open Baidu (ha ha), searchnacos“And choose the first one.Then enter the page, we can start with the official document.The official recommended version is 1.3.1, which is what I installed here. And then clickrelease notes

When I click on it, I’ll go togithubCurrently, the latest version is 1.4.0, which is obviously not what we want, so scroll down.Find the version we want, and click to download. I download here is the Linux version, if you want to download the Window version please click.zipAt the end of the.

Linux installation

Upload the downloaded gz package to our own server. The directory I placed is /usr/software

Unpack the

[root@root software]# tar -zxvf nacos-server-1.31..tar.gz -C /usr/java/
[root@root software]# cd /usr/java/
[root@root java]# ls
git  jdk  nacos  nginx  redis
[root@root java]# cd nacos/
[root@root nacos]# ls
bin  conf  LICENSE  NOTICE  target
[root@root nacos]# cd bin/
[root@root bin]# ls
shutdown.cmd  shutdown.sh  startup.cmd  startup.sh
Copy the code
  • Tar -zxvf Compressed file -c Specifies the directory for decompressing the compressed file

Start the

Go to the bin directory and run the following command

sh startup.sh -m standalone
Copy the code

Then go to your IP + / nacOS and see the following page indicating that the NACOS installation is successful. The default user name and password are nacos.

Windows installation

Decompress the compressed package.

Let’s look at the directory structure

And then I’m still going to sumLinuxAgain, go to the bin directory and double-click the startup filestartup.cmd. The startup failed if the window blinks after you double click. Then go to the CMD black window to start and see what the problem is:The inputstartup.cmdThen press Enter, the following exception occurs:

In this case, you need to add a JAVA_HOME variable to the user variable and configure it in the JDK directory. Note: do not add a semicolon (;).

Then exit the black window, enter the black window again, and type againstartup.cmdThen press enter

  • If you have any questions or errors in this article, please feel free to comment. If you find this article helpful, please click like and follow.