根据需要把kernel的文档放在网站上阅读;以下把简单的步骤记下来.
[root@centos6 ~]# yum search kernel-doc
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: ftp.tc.edu.tw
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
http://ftp.tc.edu.tw/Linux/CentOS/6.4/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:288:5400:2::18: 网络不可达"
Trying other mirror.
updates | 3.5 kB 00:00
======================================== N/S Matched: kernel-doc ========================================
kernel-doc.noarch : Various documentation bits found in the kernel source
Name and summary matches only, use "search all" for everything.
[root@centos6 ~]# yum install kernel-doc
[root@centos6 ~]# rpm -ql kernel-doc|grep Documentation
[root@centos6 ~]# yum -y install httpd
root@centos6 Documentation]# cd /etc/httpd/conf.d/
[root@centos6 conf.d]# ls
kernel-doc.conf README welcome.conf
[root@centos6 conf.d]#
[root@centos6 conf.d]# cat kernel-doc.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
Alias /doc/ "/usr/share/doc/kernel-doc-2.6.32/Documentation/"
<Directory "/usr/share/doc/kernel-doc-2.6.32/Documentation/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[root@centos6 conf.d]#
[root@centos6 conf.d]# service httpd restart
浏览 http://localhost/doc