在 CentOS 7中安裝Websvn
WebSVN為你的Subversion提供了一個視圖,其設計用來對應Subversion的各種功能。你可以檢查任何文件或目錄的日志,以及查看任何指定版本中所修改、添加或刪除過的文件列表。你也可以檢查同一文件兩個版本的不同之處,以便確切地查看某個特定的修訂版本的變化。
特性
WebSVN提供了以下這些特性:
- 易于使用的界面;
- 可自定義的模板系統;
- 彩色文件列表;
- 過錯視圖;
- 日志信息搜索;
- 支持RSS訂閱; </ul>
- CentOS 7上如何安裝Subversion </ul>
安裝
我按以下鏈接來將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。
一切搞定。
via: http://www.unixmen.com/install-websvn-centos-7/
作者:M.el Khamlichi 譯者:GOLinux 校對:wxy
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!