===========svn server=========
=
=svn server
=
# yum install subversion
=
=create test project
=
# useradd svn -d /home/svn
# mkdir -p /home/svn/repos
# chown -R svn /home/svn/repos
# svnadmin create /home/svn/repos/test
# chmod -R 750 /home/svn
=
=config for test
= conf/passwd -- add users
# cat conf/passwd
[user]
svn = svn123
= conf/authz -- access control for users
# cat conf/authz
[/]
svn = rw
= conf/svnserve.conf -- svn server config
# cat conf/svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
=config svnserve
# cat /etc/sysconfig/svnserve
OPTIONS="-r /home/svn/repos/
=start svnserve
systemctl enable svnserve
systemctl restart svnserve
==========svn client===========
# svn co svn://ip-or-hostname/test/
==========websvn部署=========
# yum install websvn
= 配置
# cat /etc/websvn/config.php
$config->parentPath("/home/svn/repos");
# cat /etc/httpd/conf.d/websvn.conf
Alias /websvn /usr/share/websvn/
Options MultiViews
DirectoryIndex wsvn.php
#apache2.2
order allow,deny
Allow from all
#apache2.4
Require all granted
# usermod -a -G svn apache
# systemctl restart httpd
======== 访问websvn========
阅读(2244) | 评论(0) | 转发(0) |