错误情况
- pac文件中已经添加域名,浏览器可以访问github.com,但终端ping不通。
- 使用
yarn install 安装依赖,一直遇到 fatal: unable to access 'https://github.com/protobuf.js/': LibreSSL SSL_read: Operation timed out, errno 60 的错误。
- 使用
git clone https://github.com/protobuf.js.git 可以拉取仓库。
解决办法
- 搜索github.com 的IP地址, 网址 Hostname to IP Address.
- 发现IP是 140.82.112.4, 且可以ping通。
- 将这个IP加入host文件,
sudo vi /etc/hosts
- 再次
ping github.com, 成功
解决办法2
- 直接从你的代理软件中选择
Copy HTTP Proxy Shell Export Line
- 在终端中黏贴:
export http_proxy="http://127.0.0.1:8001"; export HTTP_PROXY="http://127.0.0.1:8001"; export https_proxy="http://127.0.0.1:8001"; export HTTPS_PROXY="http://127.0.0.1:8001"
相关文章:
-
2022-12-23
-
2021-07-04
-
2022-12-23
-
2021-05-02
-
2021-12-31
-
2022-02-12
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2021-06-19
-
2021-09-05
-
2022-12-23
-
2022-12-23
-
2021-08-09
-
2022-01-26
相关资源
-
下载
2022-12-02
-
下载
2022-12-13
-
下载
2023-01-19