[Seek Help] [已解决]求一个deepin20的初始hosts文件
Tofloor
poster avatar
安洛
deepin
2021-01-31 19:52
Author

如题。今天乱改hosts,结果忘记备份了。hosts文件位于/etc/hosts,如果没有改过hosts的坛友将这个文件压缩一下发上来就行。

Reply Favorite View the author
All Replies
enforcee
deepin
2021-01-31 20:10
#1

 

127.0.0.1       localhost

127.0.1.1 你的主机名

 

# The following lines are desirable for IPv6 capable hosts

::1     localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

 

Reply View the author
Comments
安洛
2021-01-31 20:16
问题解决,感谢!
muggle_0
deepin
2021-01-31 20:20
#2

127.0.0.1 localhost

# 你的主机名

127.0.1.1 xxx-PC 

# The following lines are desirable for IPv6 capable hosts

::1     localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

Reply View the author
jorsion
deepin
2021-02-01 00:00
#3

按道理,清空也是可以解决的吧..

Reply View the author
安洛
deepin
2021-02-01 19:06
#4
jorsion

按道理,清空也是可以解决的吧..

清空是不行的,sudo命令会不正常。

Reply View the author
jorsion
deepin
2021-02-01 21:57
#5
安洛

清空是不行的,sudo命令会不正常。

似乎我从没遇到过这样的问题..

Reply View the author
安洛
deepin
2021-02-02 00:22
#6
jorsion

似乎我从没遇到过这样的问题..

我这里会找不到主机名

Reply View the author