NacosDownload
Nacos official document: https://nacos.io/zh-cn/docs/quick-start.html
Nacos download address: https://github.com/alibaba/nacos/releases
Since the official website download speed is too slow, Here I will give a version that I downloaded from the official website and put it in the Baidu network disk. If you need it, you can pick it up yourself.
Link: https://pan.baidu.com/s/1soIEo9mW9AsI0E1xgdwEMw?pwd=bpp8
Extraction code: bpp8
Nacos persistence
To prevent data loss after Nacos crashes or restarts, Nacos supports unified persistence of data to the database Mysql (when Nacos is not configured to persist to Mysql, Nacos has a built-in embedded database derby by default, and some data is saved to the built-in database , multiple Nacos will have multiple built-in databases). Connect to the Mysql database for Nacos persistence.
Under the nacos installation path, there is a conf folder, which contains a mysql-schema.sql file, which is a configuration file for the mysql database.
The method of use is to create a database nacos_config by yourself, and then import the above mysql-schema.sql file, why is the database name nacos_config, because in the nacos-mysql.sql file in the conf directory of Nacos after decompression above, its default The database name is nacos_config.
application.properties file configuration
This application.properties is the configuration file that nacos needs to read at that time. Before starting nacos, you need to modify the configuration information in it.
The name of the database configured here is the name of the database that nacos needs to read. For the first use, fill in the above nacos_config.
Start Nacos
Before starting, you need to edit the startup.cmd under bin. If you ignore this step and start directly, the cmd window will crash.
By default, it is cluster (cluster mode), which needs to be modified to stand-alone mode standalone, cluster/multi-cluster deployment mode reference (Nacos supports three deployment modes) .
After all configurations are complete, it can be started.