Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试镜像一个网站(当然是经过许可),但文件会下载到 foo.com。
wget -mkp http://foo.com
给了我一个名为 foo.com 的文件夹,里面有所有文件。
我如何让它将文件下载到当前目录?
编辑:我仍然想要文件层次结构,但我希望层次结构的根是当前目录
-n 在这里可以帮助你。
wget -nH --mirror http://example.com
尝试在“-nd”参数中使用 wget
wget -nd --mirror http://example.com