Chinaunix首页 | 论坛 | 博客
  • 博客访问: 306206
  • 博文数量: 89
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 691
  • 用 户 组: 普通用户
  • 注册时间: 2015-09-20 16:58
文章分类

全部博文(89)

文章存档

2017年(1)

2016年(35)

2015年(53)

我的朋友

分类: LINUX

2016-12-18 10:52:08

===========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========







阅读(2187) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~