搭建apache 虚拟目录-kernel-doc

根据需要把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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值