Difference between revisions of "Translations:Install/118/zh-cn"

From Funtoo
Jump to navigation Jump to search
(Created page with "在 chroot 环境下对默认的命令提示做一下改动也是一个好主意。这可以在你切换终端/终端模拟器时不至于搞混。使用下述指令: {{cons...")
 
 
Line 3: Line 3:
在 chroot 环境下测试域名解析:
在 chroot 环境下测试域名解析:
{{console|body=###i## ping -c 5 google.com}}
{{console|body=###i## ping -c 5 google.com}}
如果你不能 ping 通,检查 {{f|/etc/resolv.conf}},看看其中是否有 {{c|127.0.x.x}} 的行,如果有上述的行,那就把 {{c|127.0.x.x}} 改为 {{c|8.8.8.8}} -- Google 的公共 DNS 服务器地址。在系统安装后,确保时用这个来替换掉 DNS 服务器地址。
如果你不能 ping 通,检查 {{f|/etc/resolv.conf}},看看其中是否有 {{c|127.0.x.x}} 的行,如果有上述的行,那就把 {{c|127.0.x.x}} 改为 {{c|8.8.8.8}} -- Google 的公共 DNS 服务器地址(对于中国大陆用户,可以将 DNS 地址设置为 202.38.95.110(教育网),202.141.160.110(电信),202.141.176.110(移动),2001:da8:d800:95::110(ipv6)(中科大 DNS)以便更好地解析)。在系统安装后,确保时用这个来替换掉 DNS 服务器地址。

Latest revision as of 02:52, July 3, 2018

在 chroot 环境下对默认的命令提示做一下改动也是一个好主意。这可以在你切换终端/终端模拟器时不至于搞混。使用下述指令:

root # export PS1="(chroot) $PS1"

在 chroot 环境下测试域名解析:

root # ping -c 5 google.com

如果你不能 ping 通,检查 /etc/resolv.conf,看看其中是否有 127.0.x.x 的行,如果有上述的行,那就把 127.0.x.x 改为 8.8.8.8 -- Google 的公共 DNS 服务器地址(对于中国大陆用户,可以将 DNS 地址设置为 202.38.95.110(教育网),202.141.160.110(电信),202.141.176.110(移动),2001:da8:d800:95::110(ipv6)(中科大 DNS)以便更好地解析)。在系统安装后,确保时用这个来替换掉 DNS 服务器地址。