我爱编程机器学习与数据挖掘

Tensorflow官网访问加速

2017-08-08  本文已影响0人  vincehxb

最近经常上不了tensorflow 的官网(或者是能上但是速度很慢),仿照github通过修改host文件来加速的方法来加速tensorflow官网的访问:

系统:win10 64位

1.在ip查询网站 查询tensorflow的ip地址

2.打开:C:\Windows\System32\drivers\etc

文件夹中的hosts文件,假如不存在这个文件的话(注意有可能hosts文件隐藏了),自己创建一个hosts.txt文件,复制下面内容保存,在删除后缀.txt

# Copyright (c) 1993-1999 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

3.添加ip地址进入hosts文件(用编辑器打开,复制下面内容),ip地址可能会不一样,以网站查询为准

216.58.208.46 www.tensorflow.org

4.其他访问加速(建议不要使用!

在访问tf官网的时候按f12查看网络链接,发现主要访问下面这3个网址,依次查询网址的ip地址,加入到host文件中

如下面这样:

5.更新hosts配置

在cmd命令行中输入

ipconfig/flushdns

完成上面的步骤应该就能够加快tf官网的访问了

上一篇 下一篇

猜你喜欢

热点阅读