Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to download distributed Apollo configuration Center

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to download the distributed Apollo configuration center. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

Why do we use apollo? when we develop distributed microservice projects, once those configurations change, we need to restart the service, which is very unfriendly. So we consider changing the configuration in the configuration file dynamically, so we store all those configurations in apollo so that we can achieve the dynamic effect without restarting the service.

Distributed Apollo configuration center, in fact, is also a micro-service project, which has an eurake configuration center and a front end. The principle is to store the value of key,value in the configuration file into Apollo, and then read it from Apollo when the project starts.

Apollo git download address

1. Import database ApolloPortalDB and ApolloConfigDB (above mysql5.7, 2G memory or above) 2. Modify the database connection in apollo-build-scripts-master/demo.sh 3. Upload apollo-master.zip and apollo-build-scripts-master.zip4.unzip apollo-build-scripts-master.zip and unzip apollo-master.zip these two compressed files (if there is no unzip, you can directly install yum-y install zip unzip, download and install and then use unzip) 5. Check whether 8070 pid 808080 8090 port is occupied, if it is occupied, it needs to be killed by 8070 pid. Sudo netstat-anp | grep 8070 to check whether the port is occupied to start Apollo (sudo chmod-R 777 file) to increase permissions and turn off the firewall systemctl stop firewalld6. The project to / rrot/apollo/apollo-build-scripts-master,. / demo.sh start apollo-build-scripts-master is the front and back end of Apollo, and apollo-master is packaged to the local maven repository to be introduced. Directly enter / apollo-master/scripts/build.bat double-click and run build.bat to enter the jar package into the marven warehouse. After the jar package can be downloaded directly from the central warehouse to integrate 7.springboot with Apollo, you need to create a new server.properties under / opt/settings/. By default, you will access the env=DEV environment (if you do not do this, you will not get the value) the appid in 8.apollo needs to be consistent with the login account password apollo password admin of the appid in the springboot project.

The above is how to download the distributed Apollo configuration center. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report