和之前的版本不太一样, Ubuntu 18.04 的 ip地址设置是用netplan管理的 配置文件在: /etc/netplan/50-cloud-init.yaml 示例文件如下: # This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's netw
在Ubuntu 18中使用 netplan 命令 首先 cd /etc/netplan/ 找到 *.yaml文件(每个人可能不一样),编辑它 root@waydeserver:/etc/netplan# -cloud-init.yaml 按如下格式修改内容: # This file is generated from information provided by # the datasource. Changes to it will not persist across an instanc