zookeeper权限控制

  • 创建节点 create [-s] [-e] path data acl

create /node1 1

  • 查看权限 getAcl /node1
  • 设置权限 setAcl /node1 world:anyone:cdrwa

使用auth设置权限

  • 添加认证用户 addauth scheme auth

addauth digest lzj:123456

  • 设置权限

setAcl /node1 auth:lzj:cdrwa

重新连接客户端

  • 认证 addauth digest lzj:123456

不认证则无权访问

  • 取消权限 setAcl /node1 world:anyone:cdrwa
# zk  zookeeper 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×