- 服务器部署:
- 安装操作系统
- 开启ssh服务
# cd /etc/ssh
# vi sshd_config
Port 22 2200 #开放端口
PermitRootLogin yes # 允许xshell连接
# systemctl restart sshd.services #重启ssh服务
- 关闭防火墙:
# Systemctl disable firewalld
# Sysytemctl stop firewalld
# Vim /etc/sysconfig/selinux
# setenforce 0
# getenforce
- 服务器做bond
# ethtool -p 网卡 #网卡指示灯
# vi /etc/sysconfig/network-scripts/ifcfg-enth0
添加;
MASTER=eth_bond
SLAVE=yes
USERCTL=no
# vi ifcfg-eth_bond
添加:
DEVICE=eth_bond
NAME=eth_bond
TYPE=Bond
BONDING_MASTER=yes
IPADDR=17.22.33.117 # ip地址
NETMASK=255.255.255.0 #子网掩码
ONBOOT=yes #开机启动
GATEWAY=17.22.33.250 #网关
5. 配置静态Ip
(1)bootproto=static
(2)onboot=yes
(3)在最后加上几行,IP地址、子网掩码、网关、dns服务器
IPADDR=192.168.1.160
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=119.29.29.29
#DNS2=8.8.8.8
# systemctl restart network
# ip addr