完美解決
- 解決辦法
解決辦法
- 首先要想解決這個問題,可以使用修改hosts檔案,它的目錄在
C:\Windows\System32\drivers\etc找到host檔案- 雙擊右鍵—>屬性

- 點擊安全—>高級

- 左下角 ->添加

- 選擇主體

- 左下角—>高級

- 立即查找


- 點擊確定

- 勾選框框為可修改點擊確定

- 看到已經成功添加–>點擊確定

這里會提示降低計算機安全性,點確定就行,用戶是自己,安全性自己掌控

- 用管理員身份打開記事本

- 選擇檔案—>打開

- 找到hosts檔案,注意必須是原始檔案,之前配置過git-hub的把那段刪了,只需要在下面加兩行代碼即可
192.30.255.112 github.com git
185.31.16.184 github.global.ssl.fastly.net
- 點擊保存,Ctrl+s
Win+R 輸入cmd打開黑框框

輸入
ipconfig /flushdns
看到
然后輸入:
ping github.com
看到

配置完成

在這提供原始的 hosts檔案里面的內容
# Copyright (c) 1993-2009 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
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
只需要在最下面加入上面的兩行代碼即可,
大功告成了,如果能夠幫助到你,還希望能給小舞點個支持哦~~
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/389223.html
標籤:其他
