搭建Nacos注册中心&配置中心

Updated on with 0 views and 0 comments

1.下载安装包
https://github.com/alibaba/nacos/releases
选择最新稳定版下载
2. 导入数据库
./nacos/conf/nacos-mysql.sql
3. 修改配置
VIM ./nacos/conf/application.properties
数据库配置:

### Connect URL of DB:
db.url.0=jdbc:mysql://192.168.193.106:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=root
db.password=123456

登录校验配置

### If enable spring security, this option is deprecated in 1.2.0:
spring.security.enabled=true

### The ignore urls of auth, is deprecated in 1.2.0:
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**

### The auth system to use, currently only 'nacos' is supported:
nacos.core.auth.system.type=nacos

### If turn on auth system:
nacos.core.auth.enabled=true
  1. 启动 nacos
cd nacos/bin 
sh startup.sh -m standalone

标题:搭建Nacos注册中心&配置中心
作者:weiweihaha
地址:http://blog.lijida.cn/articles/2020/03/13/1584106110227.html