<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # AUTH **AUTH password** 通過設置配置文件中 `requirepass` 項的值(使用命令 `CONFIG SET requirepass password` ),可以使用密碼來保護 Redis 服務器。 如果開啟了密碼保護的話,在每次連接 Redis 服務器之后,就要使用 `AUTH` 命令解鎖,解鎖之后才能使用其他 Redis 命令。 如果 `AUTH` 命令給定的密碼 `password` 和配置文件中的密碼相符的話,服務器會返回 `OK` 并開始接受命令輸入。 另一方面,假如密碼不匹配的話,服務器將返回一個錯誤,并要求客戶端需重新輸入密碼。 Warning 因為 Redis 高性能的特點,在很短時間內嘗試猜測非常多個密碼是有可能的,因此請確保使用的密碼足夠復雜和足夠長,以免遭受密碼猜測攻擊。 **可用版本:** &gt;= 1.0.0 **時間復雜度:** O(1) **返回值:** 密碼匹配時返回 `OK` ,否則返回一個錯誤。 ``` # 設置密碼 redis> CONFIG SET requirepass secret_password # 將密碼設置為 secret_password OK redis> QUIT # 退出再連接,讓新密碼對客戶端生效 [huangz@mypad]$ redis redis> PING # 未驗證密碼,操作被拒絕 (error) ERR operation not permitted redis> AUTH wrong_password_testing # 嘗試輸入錯誤的密碼 (error) ERR invalid password redis> AUTH secret_password # 輸入正確的密碼 OK redis> PING # 密碼驗證成功,可以正常操作命令了 PONG # 清空密碼 redis> CONFIG SET requirepass "" # 通過將密碼設為空字符來清空密碼 OK redis> QUIT $ redis # 重新進入客戶端 redis> PING # 執行命令不再需要密碼,清空密碼操作成功 PONG ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看