常用配置
网络设置
编辑配置文件 /etc/network/interfaces
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
nano /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo iface lo inet loopback
allow-hotplug ens33
iface ens33 inet static
address 192.168.227.180
netmask 255.255.255.0
gateway 192.168.227.2
|
主机名配置
1 2 3 4 5 6
|
hostnamectl set-hostname k8s-cm-master-01
hostname
|