0
点赞
收藏
分享

微信扫一扫

lnmp php7 安装ssh2扩展

徐一村 2024-07-24 阅读 28

1 pip install 下载依赖慢,添加清华镜像源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

2 git 出现错误 Could not resolve host: github.com
原来是因为github.com没有被主机给解析,

第一步 先 ping 看一下主机地址

ping github.com

PING github.com (20.205.243.166) 56(84) bytes of data.
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=1 ttl=101 time=43.2 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=2 ttl=101 time=45.8 ms

然后 编辑文件etc/hosts

sudo vi /etc/hosts

# 按i进行修改
# 添加github地址
20.205.243.166 github.com
# 按ESC :wq 退出并保存
举报

相关推荐

0 条评论