Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改主机名后,用sudo命令会报错 #23

Open
tigerzioo opened this issue Aug 29, 2024 · 1 comment
Open

修改主机名后,用sudo命令会报错 #23

tigerzioo opened this issue Aug 29, 2024 · 1 comment

Comments

@tigerzioo
Copy link

tigerzioo commented Aug 29, 2024

不影响sudo的使用,但是确实不好看,不知道其他还有什么命令会报同样的错。

root@myvps2000:~/temp/kejilion# sudo -i
sudo: unable to resolve host myvps2000: Name or service not known
root@myvps2000:~#

好像是只在 /etc/hostname 更改了主机名
应该还有一个文件 /etc/hosts 里需要加上解析才行

127.0.0.1 localhost myvps2000
......
@kejilion
Copy link
Owner

kejilion commented Sep 3, 2024

已经优化重新拉取3.0.4版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants