下载redis
我这边下载redis4.0.1版本,
然后解压
然后执行yum -y install gcc gcc-c++ libstdc++-devel
然后cd //qbtapp/redis-4.0.1/redis-4.0.1
然后chmod -R 777 ./*
然后make
make install;
完毕后启动:
/qbtapp/redis-4.0.1/redis-4.0.1/src/redis-server
cd /qbtapp/redis-4.0.1/redis-4.0.1/
vi ./sentinel.conf
加上 protected-mode no
然后加上密码
./redis-cli
config set requirepass qbt123
加上jar 包,配置即可
参考文章:http://blog.csdn.net/u013593306/article/details/51228672
https://blog.rj-bai.com/post/102.html