1,常见命令取消https认证
取消npm的https认证
- npm config set strict-ssl false
取消yarn的https认证
- yarn config set strict-ssl false
git取消https认证
- git config --global http.sslVerify false
curl取消https认证
- curl -k
wget取消https认证
- wget --no-check-certificate
2,常见压缩解压缩命令
zip unzip
- 压缩: zip -r **.zip ./
- 解压: unzip ***.zip
7z
- 压缩: 7z a **.7z ./
- 解压: 7z x ***.7z
gzip gunzip
- 压缩: gzip -r ./*
- 解压: gunzip .gz gzip -d.gz
tar
- 打包: tar -zcvf ***.tar ./
- 解包: tar -zxvf ****.tar
2,常见镜像加速
docker镜像加速
- vim /etc/docker/daemon.json
“registry-mirrors”: [
“https://ung2thfc.mirror.aliyuncs.com”,
“https://registry.docker-cn.com”,
“http://hub-mirror.c.163.com”,
“https://docker.mirrors.ustc.edu.cn”
]
npm镜像加速
- npm config set registry https://registry.npm.taobao.org
k8s镜像国内加速
- registry.cn-hangzhou.aliyuncs.com/google_containers
yum源加速
- curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
deb源加速
- sudo sed -i “s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g” /etc/apt/sources.list
- sudo sed -i “s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g” /etc/apt/sources.list
pypi 加速
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package**