您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

阿里云服务器连接超时,阿里云服务器连接后黑屏

来源:互联网 浏览:76次 时间:2023-04-08

1.问题描述:

服务器已配置SSH,但偶尔有时候从github克隆项目还是会报超时

?

2.解决办法:

修改hosts文件,加入github IP和域名

1. 访问?https://github.com.ipaddress.com/

如下图:

?

记录IP地址:140.82.112.3

2.访问?https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo

如下图:

记录IP地址199.232.69.194

3.访问?https://github.com.ipaddress.com/assets-cdn.github.com

如下图:

?

4.打开电脑的hosts文件,把下列的东东写在最后,然后保存即可

【windows】

?

?

?授权完全访问

?

?

?

【mac】

sudo vim /etc/hosts

esc shift+: wq!

# 图1 IP Address140.82.113.4 github.com # 图2 IP 香港vps Address199.232.69.194 github.global.ssl.fastly.net# 图3 IP Address185.199.108.153 assets-cdn.github.com185.199.109.153 assets-cdn.github.com185.199.110.153 assets-cdn.github.com185.199.111.153 assets-cdn.github.com

52080466