nacos2.0.0集群关闭双写失败
第一步调用登陆接口:
curl -X POST 'ip:8848/nacos/v1/auth/login' -d 'username=nacos&password=nacos'
接口返回:
{'accessToken':'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTY4OTA4MjUzOH0.J_B4hbx4eMD3DP0egoDets4mPc3j3GtqBuRYfaFkak0','tokenTtl':18000,'globalAdmin':true,'username':'nacos'}
第二步将设置关闭双写接口的请求中添加token:
curl -X PUT 'ip:8848/nacos/v1/ns/operator/switches?accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTY4OTA4MjM4Nn0.5zRmyLOQZzKleE513WyMmFdGuO2P3UpiDGzqTUuRB-A&entry=doubleWriteEnabled&value=false'
赞1
踩0