This is the 17th day of my participation in Gwen Challenge

Eureka server maven maven maven maven maven maven Maven Maven Maven Maven Spring – the cloud – starter – netflix – eureka – server;

Unlike Eurkka, Nacos is an additional application. You don’t need to create a project to set up a Nacos server. You can download Nacos directly to run it

Download Nacos

Download it from GitHubGithub.com/alibaba/Nac…In the following files, tar.gz files are for Linux operating systems, and zip files are for Windows operating systems

Nacos running error

According to the official prompt, when running nacOS on the command line in Windows, an error occurs, and the startup command is:

startup.cmd
Copy the code

Cause of error: In the bin directory of nacos, the startup. CMD command directly started nacOS as a cluster, but the startup failed

So, let’s try to start nacOS in standalone mode with the following command:

startup.cmd -m standalone
Copy the code

startup.cmd -m standalone

The Nacos startup flag is now available, but an error message is still printed on the console

Problem 1: Data source configuration causes

Solutions:

Modify the application.properties file in nacos/conf

The new content is as follows:

server.contextPath=/nacos

spring.datasource.platform=mysql

spring.datasource.platform=mysql
db.num=1
db.url.0=JDBC: mysql: / / 12.0.0.1:3306 / nacos_config? characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
user=root
db.password=123456

Copy the code

Configure the Mysql database required for the Nacos connection

The nacOS_config database executes the mysql. SQL file in nacos/conf

Problem 2: Digit problem (this problem due to lack of time, not to solve)

MySQL > update MySQL database with nacOS Cannot determine JNI library name for ARCH=’x86′ OS=’ Windows 10′ name=’rocksdb’ Cause: NACOS is inconsistent with JDK system bits (64-bit and 32-bit)

Running nacos is just a simple command “startup. CMD”, but there are a lot of problems in the process of running nacos. These problems need to be solved one by one.