1.yum install subversion
[root@devpos bin]# yum install subversion
2.创建仓库
[root@devpos svn]# cd /home
[root@devpos home]# mkdir svn
[root@devpos home]# svnadmin create /home/svn
[root@devpos home]# ls svn
conf db format hooks locks README.txt
3.修改 vim /home/svn/conf/passwd文件,注意是passwd而不是password,我刚开始修改的是password,输入用户名密码一直不行,搞了一半天
[root@devpos conf]# vim /home/svn/conf/passwd
[users]
# harry = harryssecret
# sally = sallyssecreti
admin = 123456
4.配置authz:vim /home/svn/conf/authz
[/]
user = rw
*=
5.修改vim /home/svn/conf/svnserve.conf,下面的5个注释去掉
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
realm = home/svn
6.停止,启动,查看是否启动
[root@devpos conf]# killall svnserve
[root@devpos conf]# svnserve -d -r /home/svn
[root@devpos conf]# ps -ef|grep svnserve
root 9830 1 0 15:53 ? 00:00:00 svnserve -d -r /home/svn
root 14231 1269 0 15:54 pts/0 00:00:00 grep --color=auto svnserve
7.本地TortoiseSVN连接
8.Eclipse中下载项目