创建目录 mkdir /home/svn/admin
生成仓库 svnadmin create /home/svn/admin
cd conf
ll
authz,passwd,svnserve.conf
设置用户名密码 vi passwd
[users]
# harry = harryssecret
# sally = sallyssecret
yaomy = 12345678设置用户权限 vi authz
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = yaomy
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[admin:/]
@admin = rwvi svnserve.conf
anon-access = none 这个必须要修改成none 否则经常报
auth-access = writeorg.tmatesoft.svn.core.SVNAuthenticationException: svn: E220001: 条目不可读
password-db = passwd
authz-db = authz
realm = /home/svn/admin
启动svn : svnserve -d -r /home/svn
上述三个配置文件中的属性前面不能有空格,否则连接svn报错 svn: Authentication failed svnserve.conf:12: Option expected