wget -A=,gif,html -r -nc http://www.centospub.com/make.html下载完毕后,想保存成chm格式的以便保存阅读,在网上搜了下教程,
hhc centospub.hhp即可生成需要的chm
centospub.hhp:
[OPTIONS] Compiled file=CentOS Pub.chm Full-text search=Yes Contents file=centospub.hhc Language=0x804 Title=CentOS 配置详解 [FILES] make.html /make/antivirus.html /make/apache.html /make/awstats.html /make/chkrootkit.html /make/dovecot_pop3.html /make/freedomain.html /make/install.html /make/mysql.html /make/mysqlbackup.html /make/newenv.html /make/phpmyadmin.html /make/postfix_smtp.html /make/postfix_ssl.html /make/postfix_vd.html /make/proftpd.html /make/samba.html /make/servlet.html /make/smartftp.html /make/sshcl.html /make/sshd.html /make/ssl.html /make/swat.html /make/tripwire.html /make/userdirectory.html /make/virtualhost.html
<HTML> <HEAD> <meta name="GENERATOR" content="Microsoft® HTML Help Workshop 4.1"> <!-- Sitemap 1.0 --> <!-- 参考:http://www.cnblogs.com/tulater/archive/2008/11/22/1334158.html --> <!-- nickwar 20120229--> </HEAD><BODY> <OBJECT type="text/site properties"> <param name="ImageType" value="Folder"> </OBJECT> <!--树形begin --> <UL><!--第一层begin --> <LI><OBJECT type="text/sitemap"> <param name="Name" value="CentOS 配置详解"> <!--结点名称 --> <param name="Local" value="make.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="操作系统的安装"> <!--结点名称 --> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="CentOS 4.4 的下载、安装"> <param name="Local" value="make/install.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="系统安装后的初始环境设置"> <param name="Local" value="make/newenv.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="SSH服务器的构建"> <!--结点名称 --> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用OpenSSH构建SSH服务器"> <param name="Local" value="make/sshd.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用SSH客户端软件登录到服务器"> <param name="Local" value="make/sshcl.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="服务器开放前安全监测系统和病毒查杀系统的构建"> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="数据完整性监测系统的构建( Tripwire )"> <param name="Local" value="make/tripwire.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="入侵监测系统的构建( chkrootkit )"> <param name="Local" value="make/chkrootkit.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="病毒查杀系统的构建( Clam AntiVirus )"> <param name="Local" value="make/antivirus.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="面向局域网外的动态域名的申请"> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="动态域名的申请(no-ip.com)"> <param name="Local" value="make/freedomain.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="HTTP服务器的构建以及相关扩展功能的开通"> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 Apache 构建 HTTP 服务器"> <param name="Local" value="make/apache.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="让服务器支持安全 HTTP 协议( HTTPS )"> <param name="Local" value="make/ssl.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="开放一般用户的网页发布权限"> <param name="Local" value="make/userdirectory.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="虚拟主机的构建"> <param name="Local" value="make/virtualhost.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="Servlet/JSP服务器的构建(Tomcat5)"> <param name="Local" value="make/servlet.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="基于日志的站点统计系统的构建( Awstats )"> <param name="Local" value="make/awstats.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="数据库服务器的构建"> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="构建 MySQL 数据库服务器"> <param name="Local" value="make/mysql.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 phpMyAdmin 让 MySQL 数据库管理温和化"> <param name="Local" value="make/phpmyadmin.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="数据库的自动备份与数据库被破坏后的恢复( mysqlhotcopy )"> <param name="Local" value="make/mysqlbackup.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="FTP服务器的构建"> <!--结点名称 --> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 ProFTPD 构建 FTP 服务器"> <param name="Local" value="make/proftpd.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 FTP 客户端软件连接到服务器"> <param name="Local" value="make/smartftp.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="文件服务器的构建"> <!--结点名称 --> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="Samba 服务器的构建"> <param name="Local" value="make/samba.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 SWAT 让 Samba 服务器的管理温和化"> <param name="Local" value="make/swat.html"> </OBJECT> </UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="邮件服务器的构建"> <!--结点名称 --> </OBJECT> <UL> <LI><OBJECT type="text/sitemap"> <param name="Name" value="SMTP 服务器的构建 ( Postfix )"> <param name="Local" value="make/postfix_smtp.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="POP / IMAP 服务器的构建( Dovecot )"> <param name="Local" value="make/dovecot_pop3.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="让邮件服务器支持虚拟域名"> <param name="Local" value="make/postfix_vd.html"> </OBJECT> <LI><OBJECT type="text/sitemap"> <param name="Name" value="用 SSL 对邮件加密的支持"> <param name="Local" value="make/postfix_ssl.html"> </OBJECT> </UL> </UL><!--第一层end --> <!--树形end --> </BODY></HTML>
最终生成的chm导入到Mobipocket Reader后,索引是乱码,不过内容是完整的,不深究了,能用就行
参考网站:
wget如何下载一个网页中的图片