局域网代理通过wget下载

下载方法:

wget -r -p -np -k http://ftp.loongnix.org/os/Fedora13-o32/RPMS/mipsel/

-r,  --recursive(递归)          specify recursive download.(指定递归下载)

-k,  --convert-links(转换链接)      make links in downloaded HTML point to local files.(将下载的HTML页面中的链接转换为相对链接即本地链接)

-p,  --page-requisites(页面必需元素)    get all images, etc. needed to display HTML page.(下载所有的图片等页面显示所需的内容)

-np, --no-parent(不追溯至父级)          don't ascend to the parent directory.

另外断点续传用-nc参数 日志 用-o参数

代理设置方法:

Vim ~/.wgetrc

http_proxy=http://proxy.zte.com.cn:80

ftp_proxy=http://proxy.zte.com.cn:80

no_proxy=*.zte.com.cn

no_proxy=127.0.0.0/8

no_proxy=localhost

原文地址:https://www.cnblogs.com/noxy/p/6849670.html