提高ports安装软件速度

提高ports安装软件速度:

安装axel提高ports的安装速度
cd /usr/ports/ftp/axel
make install

#修改 /etc/make.conf
vi /etc/make.conf
#加入以下内容
FETCH_CMD=axel
FETCH_BEFORE_ARGS= -n 10 -a
FETCH_AFTER_ARGS=

DISABLE_SIZE=yes

MASTER_SITE_BACKUP?=\
http://mirrors.163.com/FreeBSD/distfiles/${DIST_SUBDIR}/\
ftp://ftp.cn.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\

ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\

ftp://ftp.freeBSDchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/


MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}

安装完axel后,你会发现使用ports安装软件的速度会有很大的提升。


#如果要让wget穿透代理服务器,需要在/etc/make.conf里面加上以下两行
FETCH_ENV=http_proxy=http://proxy.isadba.com:3128 \\http代理
FETCH_ENV=ftp_proxy=http://proxy.isadba.com:3128 \\ftp代理

猜你喜欢

转载自wyzuomumu.iteye.com/blog/2221807