Nacos运行后如何进行初始化配置?
1.打开/conf/application.properties配置文件,配置数据库
### If use MySQL as datasource:
spring.datasource.platform=mysql
### 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
启动Nacos服务即可 Windows启动命令(standalone代表着单机模式运行,非集群模式):
startup.cmd -m standalone
赞0
踩0