Chinaunix首页 | 论坛 | 博客
  • 博客访问: 956138
  • 博文数量: 120
  • 博客积分: 6454
  • 博客等级: 准将
  • 技术积分: 1739
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-28 17:45
文章分类

全部博文(120)

文章存档

2014年(1)

2013年(1)

2012年(11)

2011年(16)

2010年(6)

2009年(11)

2008年(30)

2007年(44)

分类: 系统运维

2009-03-12 15:15:14

ViewVC,原来叫ViewCVS,是与CVS或SVN配合使用的,可以用浏览器浏览cvs的一款强大的辅助工具。
I. 安装Apache:
1. 下载Apache Http Server:

# wget

2. 解压缩 & 配置、编译、安装:

# ./configure # make & make install

默认安装在/usr/local/apache2目录下

3. 启动服务器。用cd命令进入/usr/local/apache2/bin目录,使用命令./apachectl -k start启动服务器(默认安装完就自动启动了)。

4. 在启动过程中出现错误提示:

“httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName”

这个很简单,修改httpd.conf文件,找到ServerName改写成写上你的服务器的IP地址和端口号即可:

ServerName 192.168.0.212:80

5. 用浏览器试试,一个默认的写着“it works”的测试页面出现,那么apache就安装完成了。

/////////////////////////////////////////////////////////////////////

II. 安装viewvc:

1. 下载viewvc:

wget http://viewvc.tigris.org/files/documents/3330/44050/viewvc-1.0.7.tar.gz

2. 解压后直接运行

# ./viewvc-install

会有询问安装路径,默认安装在/usr/local/viewvc-1.0.7下

安装好后有一些提示:

ViewVC file installation complete.

Consult the INSTALL document for detailed information on completing the installation and configuration of ViewVC on your system. Here's a brief overview of the remaining steps:

1) Edit the /usr/local/viewvc-1.0.7/viewvc.conf file.

2) Either configure an existing web server to run /usr/local/viewvc-1.0.7/bin/cgi/viewvc.cgi.

Or, copy /usr/local/viewvc-1.0.7/bin/cgi/viewvc.cgi to an already-configured cgi-bin directory.

Or, use the standalone server provided by this distribution at /usr/local/viewvc-1.0.7/bin/standalone.py.

3. 第二步提示很简单,可以先完成,其中最方便的就是把viewvc.cgi拷贝到/usr/local/apache2/cgi-bin下

4. 编辑viewvc.conf:

这个稍微麻烦一些:

1). 修改cvs_roots:

找到cvs_roots = cvs: /home/cvsroot 并修改为:

cvs_roots = CVS: /home/cvsroot,

v6: /home/cvsroot/v6

等等一系列的以“name:path”格式的值。

2). 修改root_parents:

现在的viewvc不但支持cvs而且支持svn,所以默认的root_parents有两个,按照自己的实际情况选择一个打开,然后把cvs的路径写正确。

3). 修改default_root:

找到default_root = cvs ,将cvs改成cvs_roots中设置的第一个name。

5. 再配置一下apache:

在httpd.conf中添加如下代码:

        Options Indexes MultiViews

        AllowOverride None

        Order allow,deny

        Allow from all

保存后重启apache。

6. 基本配置完成,用浏览器打开试试:

/cgi-bin/viewvc.cgi/

页面显示无误了。


阅读(4364) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~