Install Nacos
Download address:
https://github.com/alibaba/nacos/releases/download/2.0.1/nacos-server-2.0.1.zip
This machine is a windows environment:
- Unzip after download is complete
- After unzipping,
nacos
place the folder to your favorite location - The location located on the command line
nacos/bin
(for example, d:;cd nacos\bin;)
nacos persistence
- Create a new database named
nacos_config
- Import files
nacos/conf
undernacos_mysql.sql
- Use
IDE
the tool to modifynacos/conf
the followingapplication.properties
files
Find Connect URL of DB
the modification, here is my example, modify it according to your database configuration:
### Count of DB:
db.num=1
### Connect URL of DB:
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=root
db.password.0=root
Start Nacos
The windows startup command is as follows:
D:\nacos\bin> .\startup.cmd -m standalone