GitHub failed to load images

Today, when I was learning Hystrix in springcloud, I found that the pictures on the official website could not be viewed. After some exploration, I found that you need to configure the host file to handle it. ( Note: This host file may need to be changed in real time, because the official github website may change, resulting in IP may change at any time )

Solution

Modify the host file

  • Open C:\Windows\System32\drivers\etc\the hosts file under the path ( if the save permission is not enough, follow the steps below, otherwise directly open and go to the second step )

    • Right click and select properties
    • Click Edit under the Security tab
      Insert picture description here
    • Click on the user, tick full control, select OK, exit
      Insert picture description here
  • Query the current GitHub valid IP, open the IPAdress website, searchraw.githubusercontent.com
    Insert picture description here

  • Add the following content at the end of the hosts file

    # 地址写自己上面搜索的
    199.232.68.133 raw.githubusercontent.com 
    
  • After the modification is completed, refresh the page and the picture will appear
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44635198/article/details/108902671
Recommended