开发者社区> 问答> 正文

rust 下载库时无法连接到端口

PS E:\Rust\Novum> cargo install postgres
    Updating `ustc` index
warning: spurious network error (3 tries remaining): [7] Could not connect to server (Failed to connect to 127.0.0.1 port 23457 after 2050 ms: Could not connect to server); class=Net (12)
warning: spurious network error (2 tries remaining): [7] Could not connect to server (Failed to connect to 127.0.0.1 port 23457 after 2042 ms: Could not connect to server); class=Net (12)
warning: spurious network error (1 tries remaining): [7] Could not connect to server (Failed to connect to 127.0.0.1 port 23457 after 2023 ms: Could not connect to server); class=Net (12)

在config.toml里如下:


[source.crates-io]
replace-with = 'aliyun'


[source.aliyun]
registry = "sparse+https://mirrors.aliyun.com/crates.io-index/"

展开
收起
游客rgtrkcyi5np5o 2024-11-07 11:44:59 24 0
来自:镜像站
0 条回答
写回答
取消 提交回答
来源圈子
更多
收录在圈子:
+ 订阅
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载