Centos7+Mysql8双机热备(主-主复制HA) 操作说明
Centos7+Mysql8双机热备(主-主复制HA) 操作说明 庞国明,2018-09-13 1.1 操作前的准备 两台服务器,并同时按照Centos7.3新装版本(必须装相同版本); 如果有外网链接则配置Centos7联网、安装wget工具,如果没有外网链接则跳到 “1.2 centos7下安装mysql”; 配置Centos7 联网 新装Centos7默认联网是关闭的,可以通过以下步骤设置开机联网 第一步:[root@localhost ~]# cd /etc/sysconfig/network-scripts/ 第二步:[root@localhost ~]# ls 这时候你会发现没有教程上说的ifcfg-eth0文件,打开第一个即可。 有的教程找不到就新建一个,肯定是错的。 第三步:[root@localhost ~]# vi ifcfg-eno167777736 第四步:修改ONBOOT为yes 保存退出(参考vi使用方法) 第五步:[root@localhost ~]# service network restart Centos7 下安装wget 本次操作采用Centos 的yum源安装,需要先下载rpm包,因此我们需要先安装wget下载工具 [root@localhost ~]# yum install wget 安装期间会提示确认提示,输入y 确认安装即可。 1