In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to build Spring Cloud Alibaba's nacos registry, which is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
What is Nacos?
Nacos mainly plays two roles: one is the registry, the other is the configuration center. The following figure is the functional structure diagram of nacos
Operation environment
JDK 1.8 +
Maven 3.2.x +
download
You can get Nacos through both source code and distribution packages.
Download address of nacos distribution package select version to decompress
Unzip nacos-server-$version.zip or tar-xvf nacos-server-$version.tar.gz cd nacos/bin
Github download address
Git clone https://github.com/alibaba/nacos.git cd nacos/ mvn-Prelease-nacos clean install-U ls-al distribution/target/ change the $version to your actual path cd distribution/target/nacos-server-$version/nacos/bin
Start the service Linux/Unix/Mac
Start command (standalone stands for stand-alone mode, non-cluster mode):
Sh startup.sh-m standalone
If you are using a ubuntu system, or running the footer error prompt [[symbol not found, try running as follows: bash startup.sh-m standalone "
Windows
Start the command:
Cmd startup.cmd
Or double-click startup.cmd to run the file.
Run access
Entering IP:8848/nacos in the browser automatically jumps to the login login page. The service path of the nacos/nacos screenshot with the default password is the address of the blogger's own Aliyun. Due on November 19th, you can use it free of charge.
Shut down the server
Linux/Unix/Mac
Sh shutdown.sh
Windows
Cmd shutdown.cmd
Or double-click shutdown.cmd to run the file.
The above is the way provided by the official website documentation.
If you can use docker, here is how to deploy and publish docker
Download docker project git clone-- depth 1 https://github.com/nacos-group/nacos-docker.gitcd nacos-docker from Github
Standalone Derby
Docker-compose-f example/standalone-derby.yaml up
Standalone Mysql
Docker-compose-f example/standalone-mysql.yaml up
Cluster
Docker-compose-f example/cluster-hostname.yaml up
The startup effect of docker is the same. After startup, use the docker ps command to view
The above content is how to build the nacos registry of Spring Cloud Alibaba. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.