9.10 对应于windows的host文件在哪里?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
hifiu
帖子: 63
注册时间: 2009-07-07 9:38

9.10 对应于windows的host文件在哪里?

#1

帖子 hifiu » 2009-08-06 7:56

google相册被封,想学:http://www.pycsky.com/other/739/
不知道在ubuntu改哪个文件?
上次由 hifiu 在 2009-08-06 13:55,总共编辑 1 次。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 9.10 对应于windows的host文件在哪里?

#2

帖子 billbear » 2009-08-06 8:05

/etc/hosts
hifiu
帖子: 63
注册时间: 2009-07-07 9:38

Re: 9.10 对应于windows的host文件在哪里?

#3

帖子 hifiu » 2009-08-07 10:36

谢谢!请问格式该怎么写啊?
头像
highwind
帖子: 1362
注册时间: 2008-09-05 23:31
系统: LinuxMint17

Re: 9.10 对应于windows的host文件在哪里?

#4

帖子 highwind » 2009-08-07 13:19

哈,又翻墙? :em09
头像
linjiework
帖子: 240
注册时间: 2009-07-07 19:52

Re: 9.10 对应于windows的host文件在哪里?

#5

帖子 linjiework » 2009-08-11 10:47

格式为
127.0.0.1 localhost
127.0.1.1 Ubuntu.local Ubuntu

第一个是 IP 地址,第二个是域名,第三个不太清楚,应该是别名吧。
阿呆 : 天下第一呆!
hifiu
帖子: 63
注册时间: 2009-07-07 9:38

Re: 9.10 对应于windows的host文件在哪里?

#6

帖子 hifiu » 2009-08-15 11:12

我按照这个格式设置了,但是老提示出错:
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on

203.208.33.100 lh1.ggpht.com picasa
203.208.33.100 lh2.ggpht.com picasa
203.208.33.100 lh3.ggpht.com picasa
203.208.33.100 lh4.ggpht.com picasa
203.208.33.100 lh5.ggpht.com picasa
203.208.33.100 lh6.ggpht.com picasa
203.208.33.100 lh7.ggpht.com picasa
203.208.33.100 lh8.ggpht.com picasa

出错提示是:
/etc/host.conf: line 5: bad command `203.208.33.100 lh1.ggpht.com picasa'
/etc/host.conf: line 6: bad command `203.208.33.100 lh2.ggpht.com picasa'
/etc/host.conf: line 7: bad command `203.208.33.100 lh3.ggpht.com picasa'
/etc/host.conf: line 8: bad command `203.208.33.100 lh4.ggpht.com picasa'
/etc/host.conf: line 9: bad command `203.208.33.100 lh5.ggpht.com picasa'
/etc/host.conf: line 10: bad command `203.208.33.100 lh6.ggpht.com picasa'
/etc/host.conf: line 11: bad command `203.208.33.100 lh7.ggpht.com picasa'
/etc/host.conf: line 12: bad command `203.208.33.100 lh8.ggpht.com picasa'
xihong1234
帖子: 49
注册时间: 2007-10-24 13:13

Re: 9.10 对应于windows的host文件在哪里?

#7

帖子 xihong1234 » 2009-08-15 12:08

:em06
是hosts
不是host.conf
hifiu
帖子: 63
注册时间: 2009-07-07 9:38

Re: 9.10 对应于windows的host文件在哪里?

#8

帖子 hifiu » 2009-08-15 15:08

:em03 那是要自己创建这个文件了……
回复