在/etc/rc.local里面加上ip route replace default via 221.6.67.33 dev eth1ip route replace default via 180.97.81.1 dev eth0ip route flush table ctcip route ...
在/etc/rc.local里面加上ip route replace default via 221.6.67.33 dev eth1ip route replace default via 180.97.81.1 dev eth0ip route flush table ctcip route ...
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/77487639 一、配置讲解 1、配置DNS 修改对应网卡的DNS的配置文件 # vim /etc/resolv.conf 修改以下内容,可以设置多个 ...
环境: eth0:10.0.7.2 gw :10.0.7.254 netmask:255.255.255.0 eth1:168.6.101.2 gw :168.6.101.254 netmask:255.255.255.0 一、配置网卡 ...
一、双网卡双IP。 eth0为电信,eth1为联通。 # cd /etc/network/ #vi interfaces # This file describes the network interfaces available on your system # and how ...
配置详解 配置DNS 修改对应网卡的DNS的配置文件 # vi /etc/resolv.conf 修改以下内容,可以设置多个: nameserver 202.106.0.20nameserver 114.114.114.114nameserver 8.8.8.8 配置外网网卡 ...
权重一、系统环境及软件版本 CentOS 6.6 x64 keepalived-1.2.18.tar.gz nginx-1.6.2.tar.gz 主服务器:192.168.38.64 从服务器:192.168.38.66 VIP : 192.168.38.100 ...
Nginx+keepalived(高可用双主模式) tips:前面已经介绍了nginx+keepalived高可用主从模式,今天补充下高可用的双主模式,均可以作为主机使用 server1:192.168.237.128 VIP1:192.168.237.10 ...
一、安装nginx 我们这边默认安装的nginx的是1.12.2的版本,所以我们需要安装1.16.1版本的nginx的,才好,所以我们这边先更新yum源,步骤如下: 1、添加yum源: [root@shtw-nk08 sbin]# cd /etc/yum.repos.d ...