小青柠 發表於 2021-10-21 23:11:00

GITHUB、COURSERA等网站加速教程

<blockquote>
<p>采用的是修改host文件的办法</p>
</blockquote>
<h2 id="一coursera">一、COURSERA</h2>
<h3 id="1-查找ip">1. 查找IP</h3>
<p>  打开ipaddress.com,输入</p>
<pre><code class="language-html">d3c33hcgiwev3.cloudfront.net
</code></pre>
<p>得到四个IP。</p>
<h3 id="2-修改hosts">2. 修改hosts</h3>
<p>打开目录</p>
<pre><code>C:\Windows\System32\drivers\etc
</code></pre>
<p>使用管理员权限修改hosts文件(用VSCODE打开就行),在最后面附上刚才的ip,如下(ip要替换成自己查的)</p>
<pre><code>99.84.170.73 d3c33hcgiwev3.cloudfront.net
99.84.170.89 d3c33hcgiwev3.cloudfront.net
99.84.170.134 d3c33hcgiwev3.cloudfront.net
99.84.170.230 d3c33hcgiwev3.cloudfront.net
</code></pre>
<h3 id="3-刷新dns">3. 刷新DNS</h3>
<p>win+R,输入cmd,键入</p>
<pre><code>ipconfig /flushdns
</code></pre>
<h2 id="二github">二、github</h2>
<h3 id="1-查找ip-1">1. 查找IP:</h3>
<p>  打开ipaddress.com,分别输入以下三个</p>
<pre><code>global.ssl.fastly
github.com
github.global.ssl.fastly.net
</code></pre>
<p>得到三个IP</p>
<h3 id="2-修改hosts-1">2. 修改hosts</h3>
<pre><code>C:\Windows\System32\drivers\etc
</code></pre>
<p>使用管理员权限修改hosts文件(用VSCODE打开就行),在最后面附上刚才的ip,如下(ip要替换成自己查的)</p>
<pre><code>140.82.114.4    github.com
185.199.109.153 assets-cdn.github.com
199.232.5.194github.global.ssl.fastly.net
</code></pre>
<h3 id="3-刷新dns-1">3. 刷新DNS</h3>
<p>win+R,输入cmd,键入</p>
<pre><code>ipconfig /flushdns
</code></pre>


</div>
<div id="MySignature" role="contentinfo">
    <p>本文来自博客园,作者:沧浪浊兮,转载请注明原文链接:https://www.cnblogs.com/shixiu/p/15435699.html</p><br><br>
来源:https://www.cnblogs.com/shixiu/p/15435699.html
頁: [1]
查看完整版本: GITHUB、COURSERA等网站加速教程