Windows installation Nacos version 2.0.1

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, nacosplace the folder to your favorite location
  • The location located on the command line nacos/bin(for example, d:;cd nacos\bin;)

nacos persistence

  1. Create a new database namednacos_config
  2. Import files nacos/confundernacos_mysql.sql
  3. Use IDEthe tool to modify nacos/confthe following application.propertiesfiles

Find Connect URL of DBthe 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

Guess you like

Origin blog.csdn.net/Fine_Cui/article/details/119249724