虚拟机里的Ubuntu sudo时卡住

https://serverfault.com/questions/38114/why-does-sudo-command-take-long-to-execute

今天装了一个虚拟机,其他都很快,但是执行sudo的时候却非常的卡,要等好几秒钟,搜了一下,是这么个解决法,把主机名加到 /etc/hosts 里,原因是安装过程中,hostname没有追加到 /etc/hosts 里。

那么为什么sudo要读取 /etc/hosts 呢?原因在这里:https://superuser.com/questions/429790/sudo-command-trying-to-search-for-hostname


更多文章
  • 干了这碗叔本华牌毒鸡汤 --- 《人生的智慧》
  • etcd源码阅读与分析(三):wal
  • Memory leak in net/http
  • etcd源码阅读与分析(二):raft
  • etcd源码阅读与分析(一):raftexample
  • 虚拟机里的Ubuntu sudo时卡住
  • Go访问私有变量
  • Raft论文阅读笔记
  • 避免全局变量
  • Go的unsafe包
  • Golang中实现禁止拷贝
  • 人生如戏,全靠演技 -- 《日常生活中的自我呈现》读后感
  • Golang的反射
  • 数据库事务
  • 把网站去掉CSS之后