我购买了一个带有几个 ip 的新服务器,所以我最近修改了 /etc/network/interfaces 文件,以便我的 ip 可以上线。在编辑该文件时,我创建了一个备份并删除了原始文件。我使用 touch 命令重新创建了接口文件并授予了 +x 权限,但是现在,当尝试重新启动接口(/etc/network/interfaces restart)时,我遇到了各种错误:
/etc/network/interfaces: line 10: iface: command not found
/etc/network/interfaces: line 11: address: command not found
/etc/network/interfaces: line 12: netmask: command not found
/etc/network/interfaces: line 13: auto: command not found
Run Code Online (Sandbox Code Playgroud)
任何1点我忘了做什么?
谢谢。