要配置Redis允許本地訪問,你需要進行以下步驟:
bind 127.0.0.1
#
bind ::1
redis-server
redis-cli shutdown redis-server
這樣,你就可以通過本地IP地址(127.0.0.1或::1)來訪問本地Redis服務器了。