?????????

?????????????????????κ????????????????????

???????棺???redis??????????????????????????£?????????????????????????150K?ε????????????ζ????????????????????????????????????

1.# requirepass foobared
2.requirepass beijing
 
???????????????????飬???redis????????????????

????????????????????????beijing

????????????????????????£?

1.[root@localhost redis-2.2.12]# src/redis-cli 
2.redis 127.0.0.1:6379> keys * 
3.(error) ERR operation not permitted 
4.redis 127.0.0.1:6379>
 
???????????С?????????????????????????????

1.redis 127.0.0.1:6379> auth beijing 
2.OK 
3.redis 127.0.0.1:6379> keys * 
4.1) "name" 
5.redis 127.0.0.1:6379>
 
??????????????????????????????????????????£?

1.[root@localhost redis-2.2.12]# src/redis-cli -a beijing 
2.redis 127.0.0.1:6379> keys * 
3.1) "name" 
4.??redis 127.0.0.1:6379>
 
?????????????????????????????????????

???????????

????Redis??????????ú???????????????????????????????slave server??к?master server??????????????

????1??redis??????????

??????1??master??????ж??slave

??????2?????slave????????????master?????????????????slave

??????3????????????????master??????????????master???????????client????

??????4???????????????

????2??redis???????????

?????????ú?slave??slave??master??????????????sync?????????????????????????????master??????????????????????????????浽????У???master????????????μ?д???????檔??????????д?????master?????????slave??slave????????浽????????????????У?????master????????????????slave??????master???????д???????slave?????master????????slave?????????????????master???????????????д????????????????е?slave??
 
??