V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yagamil
V2EX  ›  数据库

redis 可以设置用户名和密码,限制不同的用户访问自己的 db 吗

  •  
  •   yagamil · 12 天前 · 745 次点击
    redis version > 7

    不知道能否像 mysql 这样,不同用户访问自己的 db ,而无法访问其他人的 db 。

    目前比较傻瓜,开了几个端口,几个 redis 服务,用端口号和密码区分不同的用户和数据库。
    3 条回复
    dextercai
        1
    dextercai  
       12 天前
    Redis 的 ACL 一般是限制 Key 的 Prefix 的,具体可见: https://redis.io/docs/latest/operate/rs/security/access-control/
    yagamil
        2
    yagamil  
    OP
       12 天前
    @dextercai #1 谢谢大哥。 但这个功能要企业版才行?
    dextercai
        3
    dextercai  
       12 天前
    RBAC 是企业版的特性,但 ACL 不是。
    https://redis.io/docs/latest/commands/acl-setuser/

    @yagamil
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1601 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 17:02 · PVG 01:02 · LAX 10:02 · JFK 13:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.