preface

Why chose Nacos over Eureka? The need to build nacos-Server for a native development environment was a simple thing to think about but it was overshadowed by some articles (missing the key necessary steps), so I wrote this article after the successful beta test.

Build nacos – server

1. Download nacos – server

Address: github.com/alibaba/nac…

Select nacos-server-1.3.2.zip to download and unzip it. The location where I unzip it is C: projects\ and %path%

The NACOS version is NACOS-Server-1.3.2 (the latest version as of this writing), and the setup process may vary slightly from version to version

2. Create a database and digitize it

Create database nacOS locally, import script file %path%\nacos\conf\nacos-mysql.sql to complete data table creation and data initialization.

Some articles omit this step and naively assume that the creation of tables and data initialization will be done automatically when the NACOS application starts. Verify that even after the database connection configuration is not automatic.

3. Configure the database connection

Edit %path%\nacos\conf\application.properties to remove comments and modify your local database connection information

4. Start the nacos-server service

★ First, ensure that the Java environment variables are locally configured and the JDK version is at least 8 or later

Enter the %path%\nacos\bin folder and run the CMD startup. CMD -m standalone command. The standalone mode is set to standalone, or the standalone mode is cluster

5. Access the NACOS management console

After starting the nacOS service, log on to the administrative console

Address: http://localhost:8848/nacos

Account/Password: nacos/nacos

conclusion

At this point, the nacos services required by the development environment are built, and then SpringCloud can integrate nacos. To be continued…