Source URL:
http://www.if-not-true-then-false.com/2010/install-svn-subversion-server-on-fedora-centos-red-hat-rhel/
Let's getting started now:
1. Change root user
su -
## OR ##
sudo -i
2. Install needed packages (mod_dav_svn and subversion)
yum install mod_dav_svn subversion
Note: If you don’t have Apache installed already, this command installs it also. Read more about installing Apache and PHP >>
3. Modify Subversion config file /etc/httpd/conf.d/subversion.conf
Add following config to /etc/httpd/conf.d/subversion.conf file:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
4. Add SVN (Subversion) users
Use following command:
## Create testuser ##
htpasswd -cm /etc/svn-auth-users testuser
New password:
Re-type new password:
Adding password for user testuser
## Create testuser2 ##
htpasswd -m /etc/svn-auth-users testuser2
New password:
Re-type new password:
Adding password for user testuser2
5. Create and configure SVN repository
mkdir /var/www/svn
cd /var/www/svn
svnadmin create testrepo
chown -R apache.apache testrepo
chcon -R -t httpd_sys_content_t /var/www/svn/testrepo
## Following enables commits over http ##
chcon -R -t httpd_sys_rw_content_t /var/www/svn/testrepo
Restart Apache:
/etc/init.d/httpd restart
## OR ##
service httpd restart
6. Configure repository
To disable anonymous access and enable access control add following rows to testrepo/conf/svnserve.conf file:
## Disable anonymous access ##
anon-access = none
## Enable access control ##
authz-db = authz
7. Create trunk, branches and tags structure under testrepo
Create “template” directories with following command:
mkdir -p /tmp/svn-structure-template/{trunk,branches,tags}
Then import template to project repository using “svn import” command:
svn import -m 'Initial import' /tmp/svn-structure-template/ http://localhost/svn/testrepo/
Adding /tmp/svn-structure-template/trunk
Adding /tmp/svn-structure-template/branches
Adding /tmp/svn-structure-template/tags
Committed revision 1.
配置防火墙使得本机的80端口可以被远程访问
依次输入命令:
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
## make the network usable automatically.
/etc/sysconfig/networking/device/ifcfg-eth0
/etc/rc.d/init.d/network restart
or
ifdown eth0;
ifup eth0;
1.权限设置 http://blog.sina.com.cn/s/blog_53b95aec0100i638.html
2.强行添加注释 http://www.frostsky.com/2012/01/svn-hook-commit/
分享到:
相关推荐
centos7 svnserver 安装
centos 7.9服务器 离线 搭建svn服务器 ,该文章适用于 开发人员 实施人员 项目经理用于项目文档管理 代码管理,而不指定如何在centos7.9环境下离线搭建svn服务器,因为大多数的网站只是介绍yum install 的方式,但是...
svn server 3.5企业版破解工具
Visual SVN Server 4.2.1 x64 官方企业版。里面的是原版安装文件。Visual SVN Server 4.2.1 x64 官方企业版。里面的是原版安装文件。
rapidsvn安装所需的全部资源包,可离线安装(gtk2和openssl的rpm包只上传了centos7版本) apr-1.5.2.tar.gz apr-util-1.5.4.tar.bz2 neon-0.29.6.tar.gz(可选,neon是subversion解析web http协议的包,视subversion...
svn全套,visual svn svn server TortoiseSVN .rar svn全套,visual svn svn server TortoiseSVN .rar svn全套,visual svn svn server TortoiseSVN .rar svn全套,visual svn svn server TortoiseSVN .rar svn全套...
svn+apache centos下安装文档svn+apache centos下安装文档
把手一步步离线搭建svn服务器,centos离线搭建svn服务器,linux离线搭建svn服务器。
centos 7安装svn服务器教程.docx
SVN server/client里面含有客户端和服务器,可以自行根据需要安装相应的应用,可以利用它进行一些项目的上传和维护
svn_server&docsvn_server&docsvn_server&docsvn_server&docsvn_server&docsvn_server&docsvn_server&docsvn_server&docsvn_server&doc
详细的配置说明!!!!! apache+svnserver配置详解!
CentOS 7搭建SVN服务器,详细安装步骤说明及配置详细步骤说明
操作SVN界面习惯了,到了linux下懒得再用命令行了; 按照网上的步骤操作,遇到了各种问题,又对各个问题作了整理和说明 包含了客户端和服务器端需要做的修改 希望能给大家帮助 如果有问题,也请联系我,很高兴和大家...
svnserver备份脚本,其中包含了备份repository,压缩备份文件、复制备份文件到远程计算机和还原备份说明。svn服务器的时间格式要改成YYYY-MM-DD,不然Backup.bat脚本会报错。最好不要使用svnserver4以上的版本,因为...
最新 SVNServer 3.6.0 最新 TortoiseSVN 1.9.5 & 中文包 CLeopard cleopard.com 2017/03/25 14:51
svn服务器,svnServer,32位管网下载的
CentOS-Linux搭建SVN-Server配置详解
SVNServer安装文件(包括语言解析包), Setup-Subversion-1.8.11.msi, TortoiseSVN-1.8.4.24972-x64-svn-1.8.5.msi LanguagePack_1.6.16.21511-x64-zh_CN.msi
从1.4版开始,Subversion Server就自带Windows服务程序,通过执行简单的命令,即可注册为服务方式...附件中,是【如何将Subversion注册成windows服务】和【如何实现Http方式访问Svn服务器】所使用的命令,及配置文件。