yum install redis
vi /etc/redis.conf
bind 10.3.1.33
requirepass foobared
root@bigdata-33:~# systemctl restart redis.service
root@bigdata-33:~# redis-cli -h 10.3.1.33 -p 6379 -a foobared
10.32.148.33:6379> auth foobared
OK
10.32.148.33:6379> config get requirepass
1) "requirepass"
2) "foobared"