每次都百度,不如总结一起。方便复制粘贴

1. python 豆瓣源

 -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simple

2. ubuntu 20 源

deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

3. selenium

chrome 下载

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
google-chrome --version

chromedriver下载路径:
http://npm.taobao.org/mirrors/chromedriver/

4. composer 阿里云镜像

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

5. npm

5.1. cnpm(淘宝)

npm install -g cnpm --registry=https://registry.npm.taobao.org

5.2. 配置国内源

npm config set registry https://registry.npm.taobao.org

5.3. yarn

yarn config set registry https://registry.npm.taobao.org/

6. github

6.1 访问加速 (git clone xxx)

将github.com 的域名替换为 https://github.com.cnpmjs.org 即可,后面的路径不要更改。
或者用 https://gitclone.com/

6.2 下载加速 (releases)

https://gh.msx.workers.dev/
将下载链接填进去即可,复制加速后的链接,也可以在服务器上用wget 下载。

标签: none

添加新评论