http://nju-mirror-help.njuer.org/
计算机讲座海报了解一下,目前每一刻钟爬一次:
njuer.org 2017~2019
自用服务,兴趣搭建。
常用镜像,每日更新。
QQ群
640321963
archlinux
archlinuxarm
archlinuxcn
centos
centos-altarch
cydia
deepin
docker
homebrew
kali
linuxmint
npm
openwrt
pypi
pythonxy
raspberrypi
raspbian
steamos
tensorflow
ubuntu
----临时使用
cydia中新增软件源头:
http://mirror.njuer.org/apt.saurik.com
----临时使用
npm install <包名> -registry=http://mirror.njuer.org:7001
----设为默认
npm config set registry http://mirror.njuer.org:7001
亦可 编辑 ~/.npmrc 加入下面内容
registry = registry=http://mirror.njuer.org:7001
亦可写入 .zshrc
echo '\n#alias for cnpm\nalias cnpm=npm --registry=http://mirror.njuer.org:7001 \
' >> ~/.zshrc && source ~/.zshrc
--cache=\(HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/mirrors/node \
--userconfig=\)HOME/.cnpmrc
----临时使用
pip install -i http://mirror.njuer.org/pypi/web/simple --trusted-host mirror.njuer.org some-package
----设为默认 修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url,例如
[global]
index-url = http://mirror.njuer.org/pypi/web/simple
format = columns
[install]
trusted-host = mirror.njuer.org
使用下面的四行覆盖掉 /etc/apt/source.list
deb http://mirror.njuer.org/ubuntu/ zesty main restricted universe multiverse
deb http://mirror.njuer.org/ubuntu/ zesty-updates main restricted universe multiverse
deb http://mirror.njuer.org/ubuntu/ zesty-backports main restricted universe multivese
deb http://mirror.njuer.org/ubuntu/ zesty-security main restricted universe multiverse
替换我的镜像:
cd $(brew --repo)
git remote set-url origin http://mirror.njuer.org/homebrew/brew.git
echo 'export HOMEBREWBOTTLEDOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
cd $(brew --repo)
/Library/Taps/caskroom/homebrew-cask
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-cask.git
cd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-core.git
替换nju镜像:
cd $(brew --repo)
git remote set-url origin https://mirrors.nju.edu.cn/brew.git
echo 'export HOMEBREWBOTTLEDOMAIN=https://mirrors.nju.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
cd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://mirrors.nju.edu.cn/homebrew-core.git
cd $(brew --repo)
/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://github.com/caskroom/homebrew-cask
重置为官方地址:
cd $(brew --repo)
git remote set-url origin https://github.com/Homebrew/brew.git
cd $(brew --repo)
/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://github.com/caskroom/homebrew-cask
cd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
Homebrew 源代码仓库
使用说明
替换镜像:
cd $(brew --repo)
git remote set-url origin http://mirror.njuer.org/homebrew/brew.git
重置为官方地址:
cd $(brew --repo)
git remote set-url origin https://github.com/Homebrew/brew.git
Homebrew Bottles 源使用帮助
Homebrew 预编译二进制软件包
对于 bash 用户:
echo 'export HOMEBREWBOTTLEDOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.bashprofile
source ~/.bashprofile
对于 zsh 用户:
echo 'export HOMEBREWBOTTLEDOMAIN=http://mirror.njuer.org/homebrew/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
Homebrew Cask 源使用帮助
Homebrew cask 软件仓库,提供 macOS 应用和大型二进制文件
替换镜像:
cd $(brew --repo)
/Library/Taps/caskroom/homebrew-cask
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-cask.git
重置为官方地址:
cd $(brew --repo)
/Library/Taps/caskroom/homebrew-cask
git remote set-url origin https://github.com/caskroom/homebrew-cask
Homebrew Core 源使用帮助
说明
Homebrew 核心软件仓库
使用说明
替换镜像:
cd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin http://mirror.njuer.org/homebrew/homebrew-core.git
重置为官方地址:
cd $(brew --repo)/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
使用下面的覆盖掉 /etc/apt/source.list
deb http://mirror.njuer.org/kali kali-rolling contrib main non-free
特色于镜像列表&使用帮助留下评论
2017~2019 njuer.org