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
- Click on the user, tick full control, select OK, exit
-
Query the current GitHub valid IP, open the IPAdress website, search
raw.githubusercontent.com
-
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