<p>解决办法:</p><p>检验 conf目录 下所有文件,svnserve.conf 、authz、passwd文件在书写的时候行前都不要有空格<br/></p><p>如</p><p>authz文件</p><pre class="brush:bash;toolbar:false">[aliases]
#joe=/C=XZ/ST=Dessert/L=SnakeCity/O=SnakeOil,Ltd./OU=ResearchInstitute/CN=JoeAverage
[groups]
#harry_and_sally=harry,sally
#harry_sally_and_joe=harry,sally,&joe
admin=niy#前面不要有空格
#[/foo/bar]
#harry=rw
#&joe=r
#*=
[/]
@admin=rw#前面不要有空格
#[repository:/baz/fuz]
#@harry_and_sally=rw
#*=r
[repos:/]
@admin=rw
*=r
svnserve.conf
[general]
###Theseoptionscontrolaccesstotherepositoryforunauthenticated
###andauthenticatedusers.Validvaluesare"write","read",
###and"none".Thesamplesettingsbelowarethedefaults.
anon-access=none#取消注释后行前面不要有空格
auth-access=write
###Thepassword-dboptioncontrolsthelocationofthepassword
###databasefile.Unlessyouspecifyapathstartingwitha/,
###thefile'slocationisrelativetothedirectorycontaining
###thisconfigurationfile.
###IfSASLisenabled(seebelow),thisfilewillNOTbeused.
###Uncommentthelinebelowtousethedefaultpasswordfile.
password-db=passwd
###Theauthz-dboptioncontrolsthelocationoftheauthorization
###rulesforpath-basedaccesscontrol.Unlessyouspecifyapath
###startingwitha/,thefile'slocationisrelativetothethe
###directorycontainingthisfile.Ifyoudon'tspecifyan
###authz-db,nopath-basedaccesscontrolisdone.
###Uncommentthelinebelowtousethedefaultauthorizationfile.
authz-db=authz
###Thisoptionspecifiestheauthenticationrealmoftherepository.
###Iftworepositorieshavethesameauthenticationrealm,theyshould
###havethesamepassworddatabase,andviceversa.Thedefaultrealm
###isrepository'suuid.
realm=repos</pre>