cd /etc/sysconfig/network-scripts # ifcfg-xxx,xxx为hostname或者网卡名 # IPADDR=192.168.255.101 # GATEWAY=192.168.255.2 # NETMASK=255.255.255.0 # DNS=192.168.255.1 # 重启网络服务 service network restart
← CentOS7.9安装K8S 常用Dockerfile文件 →