1. 官网下载安装包 然后解压
2.进入当前目录下面
3 make编译一下 注意注意,要安装gcc-c++
4. 然后make install
5 修改配置 redis.conf
下面是redis.conf