文章 2018-02-26 来自:开发者社区

Ubuntu 报错 sudo: unable to resolve host

Mac下使用终端连接阿里云的ECS Ubuntu实例执行命令 sudo ufw status 时,提示: sudo: unable to resolve host iZ2zei90l02zd4krxz16giZ 基本使用sudo开头的命令都会提示此信息,看着比较不爽。 解决方案: 需要修改/etc/hosts文件: sudo vi /etc/hosts 在 127.0.0.1 loc...

文章 2016-08-23 来自:开发者社区

Ubuntu 报错 sudo: unable to resolve host

Ubuntu 在每次执行命令的时候,会报如下错误: $ sudo sudo: unable to resolve host iZ2zecsdy8flu603bmdg1bZ iZ2zecsdy8flu603bmdg1bZ是阿里云创建服务器默认的hostname,错误其实没有什么影响,但看起来很不爽,解决方式: $ vim /etc/hostname iZ2zecsdy8flu603bmdg1bZ ....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。