一.关闭防火墙(直接用root用户) #关闭防火墙 sudo systemctl stop firewalld.service #关闭开机启动 sudo systemctl disable firewalld.service 二.修改每台主机的Hostname(三台主机都一样) vim /etc/hosts 注释原有的内容,加入如下内容,ip地址为你自己的虚拟机的IP地址: more /etc/hosts查看是否正确,需要重启后方能生效.重启命令reboot now more /etc/host
解压redis 先到官网https://redis.io/下载redis安装包,然后在CentOS操作系统中解压该安装包: tar -zxvf redis-3.2.9.tar.gz 编译redis cd redis-3.2.9 make && make install 此时如果报如下错误: bash: make: command not found 说明系统没有安装make,所有要先安装make,即: yum -y install gcc automake autoconf libtool