SVN安装应用
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SVN安装应用相关的知识,希望对你有一定的参考价值。
一般功能性的插件 用yum安装最方便快捷的方法,最好不去编译,因为编译很麻烦
系统环境:redhat6.5
[[email protected] sadoc]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[[email protected] sadoc]# uname -rm
2.6.32-431.el6.x86_64 x86_64
yum安装rpm包安装后本地不清除的方法
[[email protected] ~]# yum -y install subversion
[[email protected] ~]# sed -i ‘s#keepcache=0#keepcache=1#g‘ /etc/yum.conf
[[email protected] ~]# grep keepcache /etc/yum.conf
keepcache=1
[[email protected] ~]# mkdir -p /application/svndata 数据存储根目录
[[email protected] ~]# mkdir -p /application/svnpasswd 用户密码的权限目录
[[email protected] ~]# svnserve -d -r /application/svndata/ 启动svn并指定数据存储跟目录
[[email protected] ~]# 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
[[email protected] ~]# lsof -i:3690
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
svnserve 1808 root 3u IPv4 13395 0t0 TCP *:svn (LISTEN)
[[email protected] ~]# netstat -lntup | grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 1808/svnserve
[[email protected] ~]# svnadmin create /application/svndata/sadoc 创建svn版本库sadoc
[[email protected] ~]# cd /application/svndata/sadoc/conf/
[[email protected] conf]# ls
authz passwd svnserve.conf
[[email protected] conf]#cp authz passwd /application/svnpasswd/
[[email protected] conf]#cp svnserve.conf svnserve.conf.bak 备份配置文件
[[email protected] conf]#vim svnserve.conf 找到以下几行取消注释并修改
anon-access = read
auth-access = write
authz-db = /application/svnpasswd/authz
password-db = /application/svnpasswd/passwd 密码集中管理
[[email protected] conf]# diff svnserve.conf svnserve.conf.bak
diff: extra operand `svnserve.conf.bak‘
diff: Try `diff --help‘ for more information.
[[email protected] 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
[[email protected] ~]#pkill svnserve
[[email protected] ~]#svnserve -d -r /application/svndata
更改svnserve.conf时重启svn才会生效
编辑authz和passwd不需要重启svn
在win安装客户端,下载安装下一步下一步即可
在桌面上右击鼠标
红色框出部分按照
以上是关于SVN安装应用的主要内容,如果未能解决你的问题,请参考以下文章