Chinaunix
标题:
修改/etc/make.conf ,添加ftp服务器为什么还找不到文件?
[打印本页]
作者:
xpban2006
时间:
2010-04-21 15:54
标题:
修改/etc/make.conf ,添加ftp服务器为什么还找不到文件?
本帖最后由 xpban2006 于 2010-04-21 16:41 编辑
修改如下
MASTER_SITE_OVERRIDE=\
ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/
\
make 时看搜索了这个ftp服务器,但提示没找到,但我ftp软件连上看有这个文件,下载还好用。这是为什么?
作者:
xpban2006
时间:
2010-04-21 16:41
是我写错了,在BSD没输入错,呵~
作者:
fender0107401
时间:
2010-04-21 19:13
# distfiles server
# MASTER_SITE_OVERRIDE=
ftp://ftp8.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/
# MASTER_SITE_OVERRIDE=
ftp://ftp4.jp.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/
# MASTER_SITE_OVERRIDE=
ftp://ftp12.us.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE=
http://ports.hshh.org/
${DIST_SUBDIR}/
作者:
kukusky
时间:
2010-04-22 09:15
原文:
http://w.riku.me/freebsd/get_fast
增快 Freebsd 上的软件安装速度
概述
Freebsd 安装第三方软件可通过 ports 或 package 来安装,Freebsd 系统安装后默认配置中都是使用官方的 Freebsd 站来获取 ports 和 package 包,所以在安装下载的时候速度会比较慢,因此需要做一些设置,让 Freebsd 来采用国内的镜像,而通过以下几个配置就能轻易做到这点。
修改配置
1 修改 package 的获取地址
在控制台下设置一下环境变量,
setenv PACKAGEROOT
ftp://ftp.freebsdchina.org
或把以上这行加入到用户目录下的 .cshrc 文件中,root 用户的就是 /root/.cshrc 。
2 修改 portsnap 镜像
编辑 /etc/portsnap.conf 文件,把以下这行
SERVERNAME=portsnap.freebsd.org
改为
SERVERNAME=portsnap.hshh.org
3 修改 ports 下载地址
安装 axel 多线程下载工具
pkg_add -rv axel
修改 /etc/make.conf ,加入
FETCH_CMD=axel -n 30
DISABLE_SIZE=yes
MASTER_SIDE_OVERRIDE=ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles
附:国内 Freebsd 镜像
FreebsdChian
ftp://ftp.freebsdchina.org
Portsnap 镜像:
portsnap.hshh.org
portsnap2.hshh.org
portsnap3.hshh.org (网通)
portsnap4.hshh.org
CVSUP 镜像:
cvsup.FreeBSDChina.org
cvsup2.FreeBSDChina.org
cvsup3.FreeBSDChina.org
cvsup4.FreeBSDChina.org
cvsup5.FreeBSDChina.org
作者:
dooros
时间:
2010-04-22 10:30
# added by use.perl 2008-01-22 14:38:06
PERL_VER=5.8.9
PERL_VERSION=5.8.9
FETCH_CMD=axel
FETCH_BEFORE_ARGS= -n 10 -a
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes
MASTER_SITE_BACKUP?=\
http://ports.hshh.org/
${DIST_SUBDIR}/\
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/
${DIST_SUBDIR}/\
ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/
${DIST_SUBDIR}/\
ftp://ftp.freeBSDchina.org/pub/FreeBSD/ports/distfiles/
${DIST_SUBDIR}/\
ftp://ftp.twaren.net/BSD/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp3.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp7.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp12.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp8.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp9.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp11.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp5.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp4.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp10.tw.freebsd.org/pub/FreeBSD/distfiles/
${DIST_SUBDIR}/\
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/
${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}
作者:
xpban2006
时间:
2010-04-22 11:29
这么多,哈哈,谢谢啦~!
作者:
xpban2006
时间:
2010-04-22 13:43
为什么按各位的说的弄,还是下载不了,总提示No address record,不解
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2