查看wsl可用鏡像列表時(shí)產(chǎn)生如下訪問github的網(wǎng)絡(luò)問題
C:\Users\jiangcheng> wsl --list --online 無法從“https://raw.githubusercontent.com/microsoft/WSL/master/distributions/DistributionInfo.json”中提取列表分發(fā)。無法與服務(wù)器建立連接 Error code: Wsl/WININET_E_CANNOT_CONNECT C:\Users\jiangcheng>
解決方案如下:
1、訪問 https://www.ipaddress.com ,將報(bào)錯(cuò)提示中的網(wǎng)址復(fù)制到該網(wǎng)站上查看ip是多少
2、查詢結(jié)果拉到網(wǎng)頁最下方,查看ip如下
3、配置本地host映射
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
4、重新訪問 wsl --list --online ,如下效果:文章來源:http://www.zghlxwxcb.cn/news/detail-467934.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-467934.html
到了這里,關(guān)于訪問github網(wǎng)絡(luò)問題解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!