2021-09-04 linux►distro►centos centos network DNS 123# centos 8$ vim /etc/resolve.confnameserver 192.168.6.1 # 或其他 resolveconf 1 修改网络配置 12345678910111213# 文件$ vi /etc/sysconfig/network-scripts/ifcfg-[network_device_name]# 配置ONBOOT=yesBOOTPROTO=dhcpGATEWAY=...DNS1=...DNS2=...# 重启网络$ systemctl restart network$ systemctl restart NetworkManager # centos 8 sudo 权限无需密码 123$ sudo visudo# 添加如下内容,替换掉下面的用户名<username> ALL=(ALL) NOPASSWD:ALL Newer centos 初始化 Older ubuntu cloud