求一个未修改的host文件
Tofloor
poster avatar
chuntaojun
deepin
2017-09-14 20:32
Author
如题,我修改后虽然可以上google,但是我在用WordPress写博客时却遇到了故障,始终无法打开链接,所以求一个未修改的host文件,注意,文件没有后缀名
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-09-14 20:56
#1
新增一个账户 然后进入看看etc/hosts
Reply View the author
avatar
chuntaojun
deepin
2017-09-14 20:57
#2
https://bbs.deepin.org/post/145506
新增一个账户 然后进入看看etc/hosts

好的,谢谢了
Reply View the author
avatar
chuntaojun
deepin
2017-09-14 21:12
#3
https://bbs.deepin.org/post/145506
新增一个账户 然后进入看看etc/hosts

还是不可以,
Reply View the author
avatar
jingle
deepin
2017-09-14 22:18
#4

我的hosts 也改了
Reply View the author
avatar
rekols
deepin
2017-09-14 22:25
#5
  1. 127.0.0.1       localhost
  2. 127.0.1.1   rekols-PC

  3. # The following lines are desirable for IPv6 capable hosts
  4. ::1     ip6-localhost ip6-loopback
  5. fe00::0 ip6-localnet
  6. ff00::0 ip6-mcastprefix
  7. ff02::1 ip6-allnodes
  8. ff02::2 ip6-allrouters
Copy the Code


把上面的rekols修改为你的用户名
Reply View the author
avatar
187******09
deepin
2017-09-14 22:26
#6
喏                 
Reply View the author
avatar
chuntaojun
deepin
2017-09-15 06:01
#7
Reply View the author
avatar
chuntaojun
deepin
2017-09-15 06:02
#8
https://bbs.deepin.org/post/145506
把上面的rekols修改为你的用户名

谢谢你了
Reply View the author
avatar
chuntaojun
deepin
2017-09-15 06:06
#9

心塞                        
Reply View the author
avatar
187******09
deepin
2017-09-15 08:53
#10
chuntaojun 发表于 2017-9-14 22:01
谢谢你了

改配置文件之前都留一个备份,我是这样的
Reply View the author
Comments
aName
2017-09-17 18:47
1
noparkinghere
2017-09-15 17:00
1
avatar
leixiaozeng
deepin
2017-09-17 08:48
#11
唉,像我这么懒的人还是有的呀!修改hosts都不备份的。。
Reply View the author
avatar
135******51
deepin
2017-09-18 00:10
#12
本帖最后由 yangruxin 于 2017-9-17 16:11 编辑

127.0.0.1        localhost
127.0.1.1   hpdv7-PC

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
  1. 127.0.0.1        localhost
  2. 127.0.1.1   hpdv7-PC

  3. # The following lines are desirable for IPv6 capable hosts
  4. ::1     ip6-localhost ip6-loopback
  5. fe00::0 ip6-localnet
  6. ff00::0 ip6-mcastprefix
  7. ff02::1 ip6-allnodes
  8. ff02::2 ip6-allrouters
Copy the Code


Reply View the author
avatar
chuntaojun
deepin
2017-09-18 06:14
#13
https://bbs.deepin.org/post/145506
127.0.0.1        localhost
127.0.1.1   hpdv7-PC

谢谢                  
Reply View the author
avatar
152******09
deepin
2017-09-18 10:03
#14
谢谢你 我懂得了etc修改必备份的道理
Reply View the author
avatar
duanyao
deepin
2017-09-18 18:47
#15
很多配置文件都有 man 手册,网上也有网页版。例如执行命令 man hosts,在 EXAMPLE 一栏就有最简单的例子:
```
       # The following lines are desirable for IPv4 capable hosts
       127.0.0.1       localhost
```
照抄就是。
Reply View the author