案例环境
NAT模式
系统:Ubuntu 18.04.3
软件版本:Redis 4.0.14.tar.gz
主机名 | IP地址 | 角色 |
---|---|---|
Redis-master | 192.168.118.128 | Master、sentinel |
Redis-slave | 192.168.118.129 | slave、sentinel |
Redis-slave | 192.168.118.135 | slave、sentinel |
ubuntu18.04配置阿里源
- 以防出错,先备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
- 编辑元列表文件
sudo vim /etc/apt/sources.list 或 sudo gedit /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-prop