且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux服务器上保存完整网页的***方法是什么?

更新时间:2022-11-11 22:30:10

wget可以做到这一点,例如:

wget can do that, for example:

wget -r http://example.com/

这将反映整个example.com网站.

This will mirror the whole example.com site.

一些有趣的选项是:

-Dexample.com:不关注其他域的链接
--html-extension:将具有text/html内容类型的页面重命名为.html

-Dexample.com: do not follow links of other domains
--html-extension: renames pages with text/html content-type to .html

手册: http://www.gnu.org/software/wget/manual/