---
title: "优化FreeBSD ports下载速度"
author: "harry"
date: "2009-10-31T10:17:15Z"
tags: []
slug: "freebsd-ports"
draft: false
lastmod: "2009-10-31T10:17:15Z"
id: 507622
url: "https://harry.iteye.com/blog/507622"
---

**使用axel来替换fetch来进行多线程下载**  
FETCH\_CMD=axel  
FETCH\_BEFORE\_ARGS= -a  
FETCH\_AFTER\_ARGS=  
DISABLE\_SIZE=yes  
或者只写一行  
FETCH\_CMD=axel -a

 

**添加更快的port下载站点**

在make.conf文件中使用配置MASTER\_SITE\_OVERRIDE参数，可自行增加软件镜像以及修改镜像服务器的优先级。  
MASTER\_SITE\_OVERRIDE= \\  
ftp://ftp2.tsinghua.edu.cn/mirror/FreeBSD/ports/distfiles/ \\  
ftp://freebsd.csie.nctu.edu.tw/pub/FreeBSD/ports/distfiles/ \\  
ftp://ftp.hk.freebsd.org/pub/FreeBSD/ports/distfiles/ \\  
ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/