新聞中心
修改本地host
既然上游服務(wù)器的域名地址被修改了,那我們直接在本地hosts文件了指定好域名對應(yīng)的IP地址不就好了嘛
hosts 文件在每個系統(tǒng)的位置不一,詳情如下:
? Windows 系統(tǒng):C:\Windows\System32\drivers\etc\hosts
? Linux 系統(tǒng):/etc/hosts
? Mac(蘋果電腦)系統(tǒng):/etc/hosts
? Android(安卓)系統(tǒng):/system/etc/hosts
? iPhone(iOS)系統(tǒng):/etc/hosts
然后將下面這些數(shù)據(jù)拷貝到自己電腦的hosts文件,再激活生效就可以了:

惠安網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),惠安網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為惠安千余家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的惠安做網(wǎng)站的公司定做!
140.82.114.25? ?? ?? ?? ?? ???alive.github.com
140.82.112.25? ?? ?? ?? ?? ???live.github.com
185.199.108.154? ?? ?? ?? ?? ?github.githubassets.com
140.82.112.22? ?? ?? ?? ?? ???central.github.com
185.199.108.133? ?? ?? ?? ?? ?desktop.githubusercontent.com
185.199.108.153? ?? ?? ?? ?? ?assets-cdn.github.com
185.199.108.133? ?? ?? ?? ?? ?camo.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?github.map.fastly.net
199.232.69.194? ?? ?? ?? ?? ? github.global.ssl.fastly.net
140.82.112.4? ?? ?? ?? ?? ?? ?gist.github.com
185.199.108.153? ?? ?? ?? ?? ?github.io
140.82.114.4? ?? ?? ?? ?? ?? ?github.com
192.0.66.2? ?? ?? ?? ?? ?? ???github.blog
140.82.112.6? ?? ?? ?? ?? ?? ?api.github.com
185.199.108.133? ?? ?? ?? ?? ?raw.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?user-images.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?favicons.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars5.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars4.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars3.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars2.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars1.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars0.githubusercontent.com
185.199.108.133? ?? ?? ?? ?? ?avatars.githubusercontent.com
140.82.112.10? ?? ?? ?? ?? ???codeload.github.com
52.217.223.17? ?? ?? ?? ?? ???github-cloud.s3.amazonaws.com
52.217.199.41? ?? ?? ?? ?? ???github-com.s3.amazonaws.com
52.217.93.164? ?? ?? ?? ?? ???github-production-release-asset-2e65be.s3.amazonaws.com
52.217.174.129? ?? ?? ?? ?? ? github-production-user-asset-6210df.s3.amazonaws.com
52.217.129.153? ?? ?? ?? ?? ? github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153? ?? ?? ?? ?? ?githubstatus.com
64.71.144.202? ?? ?? ?? ?? ???github.community
23.100.27.125? ?? ?? ?? ?? ???github.dev
185.199.108.133? ?? ?? ?? ?? ?media.githubusercontent.com
大部分情況下是直接生效,如未生效可嘗試下面的辦法,刷新 DNS:
? Windows:在 CMD 窗口輸入:ipconfig /flushdns
? Linux 命令:sudo nscd restart,如報錯則須安裝:sudo apt install nscd 或 sudo /etc/init.d/nscd restart
? Mac 命令:sudo killall -HUP mDNSResponder
如果還沒有生效的話,可以嘗試重啟一下電腦,畢竟這步操作可以解決 95 % 的電腦bug
網(wǎng)頁題目:國內(nèi)本地網(wǎng)絡(luò)和VPS如何訪問github-修改Host
文章來源:http://www.dlmjj.cn/article/codeeih.html


咨詢
建站咨詢
