有一天下午,服務(wù)器(linux)突然 github 無法 pull/push 也不能 clone 代碼了,報(bào)錯(cuò)如下:
fatal: unable to access 'https://github.com/microsoft/GLIP.git/': Failed to connect to github.com port 443: Connection refused
嘗試了修改代理等方法,還是無法解決,最終找到了一個(gè)解決方案:
修改/etc/hosts文件,hosts文件是Linux系統(tǒng)中一個(gè)負(fù)責(zé)IP地址與域名快速解析的文件
步驟:文章來源:http://www.zghlxwxcb.cn/news/detail-722560.html
vi /etc/hosts
- 將行加入即可:
140.82.114.3 github.com
然后就可以重新拉取代碼了文章來源地址http://www.zghlxwxcb.cn/news/detail-722560.html
到了這里,關(guān)于【github】linux 拉代碼報(bào)錯(cuò)解決:Failed to connect to github.com port 443: Connection refused的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!