问题:使用sudo执行指令,等待很久都没反应,如执行sudo vim /etc/a.txt,弹出输入密码后,等待30S后才会打开文件 解决: 1. 查看/var/log/secure,可以看到大概30几秒才返回,上面查了一下,部分答案为主机名解析问题 2. 将主机名(hostname)写进/etc/hosts后问题解决。 3. 即修改为/etc/hosts为 127.0.0.1 hostname(此为新增的内容,不是localhost,是自己的主机名) localhost....