如何在 CentOS 7中debian8安装教程WebSVN

Access denied | www.unixmen.com used Cloudflare to restrict access
Please enable cookies.
What happened?
The owner of this website (www.unixmen.com) has banned your access based on your browser's signature (3fd073b0d9be963d-ua98).他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)如何在CentOS 7中安装Subversion_服务器应用_Linux公社-Linux系统门户网站
你好,游客
如何在CentOS 7中安装Subversion
作者:华帝在哪
Apache Subversion(简称SVN,svn),一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS转移到Subversion。
下面讲解下如何在 7中安装Subversion的详细过程。
1、开始在CentOS 7中安装Subversion
yum install mod_dav_svn subversion
示例输出:
=====================================================&Package& & & & & & & Arch& & & & Version& & & & & & & & & & Repository& & Size=====================================================Installing:&mod_dav_svn& & & & & x86_64& & & 1.7.14-6.el7& & & & & & & base& & & & 101 k&subversion& & & & & x86_64& & & 1.7.14-6.el7& & & & & & & base& & & & 1.0 MInstalling for dependencies:&apr& & & & & & & & & x86_64& & & 1.4.8-3.el7& & & & & & & & base& & & & 103 k&apr-util& & & & & & x86_64& & & 1.5.2-6.el7& & & & & & & & base& & & & & 92 k&httpd& & & & & & & & x86_64& & & 2.4.6-18.el7.centos& & & & updates& & & 2.7 M&httpd-tools& & & & & x86_64& & & 2.4.6-18.el7.centos& & & & updates& & & 77 k&mailcap& & & & & & & noarch& & & 2.1.41-2.el7& & & & & & & base& & & & & 31 k&neon& & & & & & & & x86_64& & & 0.30.0-3.el7& & & & & & & base& & & & 165 k&pakchois& & & & & & x86_64& & & 0.4-10.el7& & & & & & & & base& & & & & 14 k&subversion-libs& & & x86_64& & & 1.7.14-6.el7& & & & & & & base& & & & 921 k
Transaction Summary=====================================================
2、加配置文件到Apache
LoadModule dav_svn_module& & modules/mod_dav_svn.soLoadModule authz_svn_module& modules/mod_authz_svn.so&&Location /svn&& DAV svn& SVNParentPath /var/www/linuxidcsvn& & AuthType Basic& AuthName "Subversion repositories"& AuthUserFile /etc/svn-auth-users& Require valid-user&/Location&
3、创建SVN用户
[root@linuxidc-centos7 ~]# htpasswd -cm /etc/svn-auth-users testuser1New password:Re-type new password:Adding password for user testuser1[root@linuxidc-centos7 ~]#
4、创建和配置SVN仓库
mkdir /var/www/linuxidcsvncd& /var/www/linuxidcsvnsvnadmin create repochown -R apache.apache repo
# If you still have issues with SELinux Security please apply this: chcon -R -t httpd_sys_content_t /var/www/linuxidcsvn/repochcon -R -t httpd_sys_rw_content_t /var/www/linuxidcsvn/repo
5、你可以用这种方式&HTTP和HTTPS
firewall-cmd --permanent --zone=public --add-service=httpfirewall-cmd --permanent --zone=public --add-service=httpsfirewall-cmd --reload
6、启用并启动HTTP服务
systemctl enable httpd.servicesystemctl restart httpd.service
7、加入下面这个到conf/svnserve.conf
anon-access = noneauth-access = authz
8、branches&tags&trunk模式下建svn库
mkdir -p /tmp/svn-structure-template/{trunk,branches,tags}
svn import -m "Initial repository" /tmp/svn-structure-template& file:///var/www/linuxidcsvn/repo/Adding& & & & /tmp/svn-structure-template/branchesAdding& & & & /tmp/svn-structure-template/tagsAdding& & & & /tmp/svn-structure-template/trunk
Committed revision 1.
CentOS 6 编译安装Subversion-1.8.10+Apache2.4
Linux中Subversion配置实例
CentOS 6.2 SVN搭建 (YUM安装)
Apache+SVN搭建SVN服务器
Windows下SVN服务器搭建和使用 + 客户端重新设置密码
Server 12.04 安装 SVN 并迁移 Virtual SVN数据
Ubuntu Server搭建svn服务以及迁移方法
作者:华帝在哪 想了解作者请访问
Linux公社原创翻译频道:
本文永久更新链接地址:&
相关资讯 & & &
& (04月07日)
& (04/17/:18)
& (07月02日)
& (07/18/:31)
& (12/16/:43)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款CentOS 7下安装Websvn
WebSVN offers a view onto your subversion repositories that’s been designed to reflect the Subversion methodology. You can view the log of any file or directory and see a list of all the files changed, added or deleted in any given revision. You can also view the differences between two versions of a file so as to see exactly what was changed in a particular revision.
WebSVN offers the following features:
Customisab
Colourisat
RSS feed support.
Installation
I use the following link to install Subversion on CentOS 7.
1 – Download the websvn to /var/www/html.
cd /var/www/html
wget http://websvn.tigris.org/files/documents//websvn-2.3.3.zip
2 – Extract the zip package.
unzip websvn-2.3.3.zip
mv websvn-2.3.3 websvn
3 – Installl php to your system.
yum install php
4 – Edit web svn config.
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";
save and exit.
6 – Reload apache and start websvn link http://ip/websvn.
That’s it.
Copyright (C) , All Rights Reserved.
版权所有 闽ICP备号
processed in 0.033 (s). 12 q(s)

我要回帖

更多关于 debian8安装教程 的文章

 

随机推荐