- 博客(6)
- 收藏
- 关注
原创 【Rust】crates.io 更换国内上海交通大学源
crates.io修改为国内上海交通大学源修改cargo config修改cargo configvi ~/.cargo/config# 放到 `$HOME/.cargo/config` 文件中[source.crates-io]registry = "https://github.com/rust-lang/crates.io-index"# 替换成你偏好的镜像源replace-with = 'sjtu'#replace-with = 'ustc'# 清华大学[source.tun
2022-02-19 11:46:23
1476
原创 【Rust】cargo update或者cargo build国内被墙失败解决办法
Cargo build失败解决办法现象解决办法现象cargo build 时下载失败(Mac 10.13.4),提示:error: failed to download from https://crates-io.proxy.ustclug.org/api/v1/crates/actix-codec/0.3.0/downloadCaused by:[56] Failure when receiving data from the peer (Received HTTP code 500 from
2022-02-19 11:33:54
21624
2
原创 Centos7从源码编译升级GCC到高版本(Step by Step)
#Centos7升级GCC到高版本(Step by Step)登陆进Centos7yum -y update2. 安装GCC(先安低版本,再安高版本)yum -y install gcc安装完确认一下gcc --versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)Copyright © 2015 Free Software Foundation, Inc.This is free software; see the source for
2021-02-26 14:40:51
1679
1
原创 Rust学习第二天(基础数据类型,代码结构刷题体验)
第二天 了解高级数据结构以及所有权,以及编程实战,刷了几道题。```clike//Guess number game use std::io;use rand::Rng;use std::cmp::Ordering;fn main() { println!("Guess Number Game Start!"); let secret = rand::thread_rng().gen_range(1, 101); //println!("secret is {}",
2021-02-25 20:02:58
429
原创 Rust学习第一天(helloworld,cargo)
一键安装rust$ curl --proto ‘=https’ --tlsv1.2 -sSf https://sh.rustup.rs | sh包管理工具cargo$ cargo new hello_world$ cd hello_world$ cargo build发现卡住 update crates.io原因:天朝某神奇的GreatWall解决办法:使用中科大的rust源cd ~/.cargo/vi config添加[source.crates-io]registry =
2021-02-24 18:45:31
152
原创 用IP命令管理网桥bridge
###ip link管理网桥# ip link set bridge_name up想要添加Interface到网桥上,interface状态必须是Up# ip link set eth0 up添加eth0 interface到网桥上# ip link set eth0 master bridge_name从网桥解绑eth0# ip link set eth0 nomastereth0 可以关闭的# ip link set eth0 down删除网桥可以用# ip link delet
2020-12-08 16:57:24
5918
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人