亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3411 | 回復(fù): 4
打印 上一主題 下一主題

[OpenBSD] 如何使用wget代替OpenBSD的默認下載工具呢? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-11-02 16:23 |只看該作者 |倒序瀏覽
在網(wǎng)上找到freeBSD的一篇說要修改make.conf,但是OpenBSD的/etc下沒有這個文件,請高人指點。



以下所述功能均通過修改make.conf實現(xiàn)

對于wget
========
FETCH_CMD= wget
FETCH_BEFORE_ARGS= -c -t 1
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes #這行是必要的,否則...

前面3行也可以換成
FETCH_CMD=wget -c -t 1

如果你要wget穿透代理服務(wù)器,請加上下面兩行
FETCH_ENV=http_proxy=http://proxy2.zsu.edu.cn:3128
FETCH_ENV=ftp_proxy=http://proxy2.zsu.edu.cn:3128

或者使用其他的穿越代理工具例如proxychains 或者socks5(runsocks)
則FETCH_CMD=proxychains wget或者runsocks wget

什么?不知道wget是什么?那就先
cd /usr/ports/ftp/wget/
make install clean

論壇徽章:
0
2 [報告]
發(fā)表于 2006-11-03 10:36 |只看該作者
希望有知道的告知一下,默認的下載很慢。

論壇徽章:
1
寅虎
日期:2013-09-29 23:15:15
3 [報告]
發(fā)表于 2006-11-03 11:05 |只看該作者
man ports
man wget

論壇徽章:
0
4 [報告]
發(fā)表于 2006-11-03 20:27 |只看該作者
Simply edit the /usr/ports/infrastructure/mk/bsd.port.mk:
find the line:

FETCH_CMD?=          /usr/bin/ftp -V -m

and replace it with:

FETCH_CMD?=          /usr/local/bin/wget -c -t 1

The empty space between the variable name and the parameter is a serial of tabs, not spacebars.
The options specified following the wget command can be read by man wget so you can specify any options whatever fit your needs.
And if you like, you can configure your wget using your proxy server to make it even faster by editing your ~$HOME/.wgetrc and fill it with lines look like:
HTTP_PROXY=http://11.22.33.44:3128/

論壇徽章:
0
5 [報告]
發(fā)表于 2006-11-04 11:44 |只看該作者
樓上的,如果我按照這樣來做了。默認 pkg_add 的時候是不是也用Wget下載的呢?
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP