标签:snv
一般功能性的插件 用yum安装最方便快捷的方法,最好不去编译,因为编译很麻烦
系统环境:redhat6.5
[root@localhost sadoc]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@localhost sadoc]# uname -rm
2.6.32-431.el6.x86_64 x86_64
yum安装rpm包安装后本地不清除的方法
[root@localhost ~]# yum -y install subversion
[root@localhost ~]# sed -i ‘s#keepcache=0#keepcache=1#g‘ /etc/yum.conf
[root@localhost ~]# grep keepcache /etc/yum.conf
keepcache=1
[root@localhost ~]# mkdir -p /application/svndata 数据存储根目录
[root@localhost ~]# mkdir -p /application/svnpasswd 用户密码的权限目录
[root@localhost ~]# svnserve -d -r /application/svndata/ 启动svn并指定数据存储跟目录
[root@localhost ~]# ps -ef | grep svn 确认服务是否启动svn的三种方法
root 1808 1 0 22:57 ? 00:00:00 svnserve -d -r /application/svndata/
root 1810 1710 0 22:57 pts/0 00:00:00 grep svn
[root@localhost ~]# lsof -i:3690
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
svnserve 1808 root 3u IPv4 13395 0t0 TCP *:svn (LISTEN)
[root@localhost ~]# netstat -lntup | grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 1808/svnserve
[root@localhost ~]# svnadmin create /application/svndata/sadoc 创建svn版本库sadoc
[root@localhost ~]# cd /application/svndata/sadoc/conf/
[root@localhost conf]# ls
authz passwd svnserve.conf
[root@localhost conf]#cp authz passwd /application/svnpasswd/
[root@localhost conf]#cp svnserve.conf svnserve.conf.bak 备份配置文件
[root@localhost conf]#vim svnserve.conf 找到以下几行取消注释并修改
anon-access = read
auth-access = write
authz-db = /application/svnpasswd/authz
password-db = /application/svnpasswd/passwd 密码集中管理
[root@localhost conf]# diff svnserve.conf svnserve.conf.bak
diff: extra operand `svnserve.conf.bak‘
diff: Try `diff --help‘ for more information.
[root@localhost conf]# diff svnserve.conf svnserve.conf.bak
12,13c12,13
< anon-access = read
< auth-access = write
---
> # anon-access = read
> # auth-access = write
20c20
< password-db = /application/svnpasswd/passwd
---
> # password-db = passwd
27c27
< authz-db = /application/svnpasswd/authz
---
> # authz-db = authz
[root@localhost ~]#pkill svnserve
[root@localhost ~]#svnserve -d -r /application/svndata
更改svnserve.conf时重启svn才会生效
编辑authz和passwd不需要重启svn
在win安装客户端,下载安装下一步下一步即可
在桌面上右击鼠标
红色框出部分按照
标签:snv
原文地址:http://12629984.blog.51cto.com/12619984/1983543