redis.yml redis_db_num 设置


redis_db_num设置为20

那么redis.conf里面databases 就要设置为20 + 1 = 21

不然会报这种错误http://stackoverflow.com/questions/14287075/rediscommanderror-err-invalid-db-index-when-running-rspec

redis要重启

rails 如果还是报错试试spring stop