Redis 安全性設定

來源:互聯網
上載者:User

標籤:

redis安裝好後,預設情況下登陸用戶端和使用命令操作時不要求輸入密碼的。某些情況下,為了安全起見,我們可以設定在用戶端串連後進行任何操作之前都要進行密碼驗證。

我這邊是安裝的window系統,修改redis.windows.conf設定檔

# Require clients to issue AUTH <PASSWORD> before processing any other# commands.  This might be useful in environments in which you do not trust# others with access to the host running redis-server.## This should stay commented out for backward compatibility and because most# people do not need auth (e.g. they run their own servers).# # Warning: since Redis is pretty fast an outside user can try up to# 150k passwords per second against a good box. This means that you should# use a very strong password otherwise it will be very easy to break.## requirepass foobaredrequirepass hongda$123456

設定requirepass就可以

接下來要重啟Redis服務

用戶端授權方式

(1)登入時使用-a參數指定用戶端密碼,如下

(2)登入用戶端後使用auth命令進行授權,如下

 

http://www.cnblogs.com/hjwublog/p/5660578.html

 

Redis 安全性設定

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.