Mac 安装 wget 前先安装 home-brew
Homebrew 官网:http://brew.sh/index_zh-cn.html
可能有时候会装不上,多试几次,或者开全局代理。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
如果出现报错提示: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
,请使用国内源进行安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
验证安装
brew -v
更新
brew update
卸载
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
Mac 使用 brew 安装 wget
brew install wget
未整理原笔记
wget 命令批量下载文件
一行命令批量下载文件 wget -i filelist.txt
wget下载整个网站或特定目录 https://blog.csdn.net/hu_jinghui/article/details/80938899
需要下载某个目录下面的所有文件。命令如下 wget -c -r -np -k -L -p www.xxx.org/pub/path/
在下载时。有用到外部域名的图片或连接。如果需要同时下载就要用-H参数。
wget -np -nH -r –span-hosts www.xxx.org/pub/path/
站点镜像 wget -r -p -np -k www.d.com ***
wget -np -nH -r –span-hosts unionagency.one/exzo/services1.html
安装wget using brew https://www.cyberciti.biz/faq/howto-install-wget-om-mac-os-x-mountain-lion-mavericks-snow-leopard/
/usr/bin/ruby -e “$(curl -fsSL 6217995630018009568)”
官网命令 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”
安装wget brew install wget
Brew 改为国内源 阿里 清华 https://blog.csdn.net/weixin_43902730/article/details/88261760
Brew 切回官方源 https://blog.csdn.net/tzjvon/article/details/79648825