Make writing a habit together! This is the 10th day of my participation in the “Gold Digging Day New Plan · April More text Challenge”. Click here for more details.
A catalog of articles in the microservices series
- Deep into microservices -SpringBoot automatic assembly principle
- Deep microservices -SpringCloud invokes the component Feign
- Deep microservices – the foundation for service registration and discovery of SpringCloud Eureka
- Deep microservices – service registration and discovery of SpringCloud Eureka’s high availability and core principles
- In-depth Nacos foundation and Nacos Server construction of micro services
- In-depth micro services -Nacos core concept and service discovery practice
- In-depth micro services -Nacos configuration center core concept and practice
- In-depth source code analysis of micro-services -Nacos registration instances
preface
This series takes you deep into the basic usage and underlying principles of the various frameworks of the Microservices Spring architecture. The last article introduced the core concept of Nacos Config configuration center and actual combat, this section will take you to advance the topic of Nacos source code, learn to compile and run Nacos source code
Nacos source code download
##1 Clone Nacos source code
git clone https://github.com/alibaba/nacos.git
Copy the code
2 Importing projects
The source directory of Nacos is roughly as follows:
3 Select the Tag version branch
1) CheckOut Tag or Revision
2) Enter the Tag name. 1.4.1 is used in this paper
4 Start the nacOS console program
Running parameters need to be added for single machine startup
-Dnacos.standalone=true
Copy the code
5 Running the program
If the port number is displayed, the operation is successful
Nacos The default account is Nacos/Nacos
6 FaQs
1) Can’t find the symbolcom.alibaba.nacos.consistency.entity
Lifecycle from consistency module will click compile. Maven will execute MVN compile
conclusion
This article will learn how to compile the Nacos source code successfully and start the process of completion. Later articles will start to explain the source code parsing of the Nacos core. If the source code compilation problems can also be sent to share