nacos2.2.3开启密码登录

打开位于/conf/application.properties的配置文件

### If turn on auth system:
nacos.core.auth.enabled=true

### Since 1.4.1, worked when nacos.core.auth.enabled=true and nacos.core.auth.enable.userAgentAuthWhite=false.
### The two properties is the white list for auth and used by identity the request from other server.
nacos.core.auth.server.identity.key=nacos  # 随便填,我也不知道这个作用是啥,但是必须要写
nacos.core.auth.server.identity.value=123456  # 随便填,我也不知道这个作用是啥,但是必须要写

### The default token (Base64 String):
nacos.core.auth.plugin.nacos.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789  # 不可以随便写,我也不知道这个作用是啥,但是必须要写,可以复制我的

修改完配置后,就可以以用户名nacos,密码nacos登录了,修改密码在nacos网页可以修改

你可能感兴趣的:(springcloud)