❏ 站外平台:

在 CentOS 7中安装Websvn

作者: M.el Khamlichi 译者: LCTT joeren

| 2015-02-11 15:16   评论: 2 收藏: 1 分享: 7    

WebSVN为你的Subversion提供了一个视图,其设计用来对应Subversion的各种功能。你可以检查任何文件或目录的日志,以及查看任何指定版本中所修改、添加或删除过的文件列表。你也可以检查同一文件两个版本的不同之处,以便确切地查看某个特定的修订版本的变化。

特性

WebSVN提供了以下这些特性:

  • 易于使用的界面;
  • 可自定义的模板系统;
  • 彩色文件列表;
  • 过错视图;
  • 日志信息搜索;
  • 支持RSS订阅;

安装

我按以下链接来将Subversion安装到CentOS 7。

1 – 下载websvn到/var/www/html。

cd /var/www/html
wget http://websvn.tigris.org/files/documents/1380/49057/websvn-2.3.3.zip

2 – 解压zip包。

unzip websvn-2.3.3.zip
mv websvn-2.3.3 websvn

3 – 安装php到你的系统。

yum install php

4 – 编辑web svn配置。

cd /var/www/html/websvn/include
cp distconfig.php config.php
vi config.php

// Configure these lines if your commands aren't on your path.
//
 $config->setSVNCommandPath('/usr/bin'); // e.g. c:\\program files\\subversion\\bin
 $config->setDiffPath('/usr/bin');

// For syntax colouring, if option enabled...
 $config->setEnscriptPath('/usr/bin');
 $config->setSedPath('/bin');

// For delivered tarballs, if option enabled...
 $config->setTarPath('/bin');

// For delivered GZIP'd files and tarballs, if option enabled...
 $config->setGZipPath('/bin');

//
 $config->parentPath('/svn/');

$extEnscript[".pl"] = "perl";
$extEnscript[".py"] = "python";
$extEnscript[".sql"] = "sql";
$extEnscript[".java"] = "java";
$extEnscript[".html"] = "html";
$extEnscript[".xml"] = "html";
$extEnscript[".thtml"] = "html";
$extEnscript[".tpl"] = "html";
$extEnscript[".sh"] = "bash";
~

保存并退出。

6 – 重新加载apache并启动websvn链接http://ip/websvn。

websvn

一切搞定。


via: http://www.unixmen.com/install-websvn-centos-7/

作者:M.el Khamlichi 译者:GOLinux 校对:wxy

本文由 LCTT 原创翻译,Linux中国 荣誉推出

 



最新评论

微博评论 2015-02-11 20:33 回复
@我的印象笔记
微博评论 2015-02-11 16:03 1 回复
git路过
LCTT 译者
joeren 💎
共计翻译: 157.0 篇 | 共计贡献: 1039
贡献时间:2014-05-15 -> 2017-03-19
访问我的 LCTT 主页 | 在 GitHub 上关注我


返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。