资源描述:
《局域网搭建svn服务器(LANbuildSVNserver).doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、局域网搭建svn服务器(LANbuildSVNserver)LANbuildSVNserverServerside:windows,XP,WAMP5,1.7.4,Subversion,1.6.16,TortoiseSVN,1.6.4(32bit)IP:192.168.1.99Clientside:Windows7,TortoiseSVN,1.6.4(64bit)IP:192.168.1.102InstallationandconfigurationofSVNunderWindowsSTEP1:downloadandinstallFirst,downloadtheSetup-Subver
2、sion-1.6.16.msiinstallationpackageattheofficialwebsiteofSubversion,whereyoucanuse1.6.16,andyoucanalsoinstallthe1.7version.Afterdownloading,clickinstall.Installationdirectory:D:/ProgramFiles/SubversionDownloadTortoiseSVNforlocalinstallation,andIinstallTortoiseSVN1.6.4,aGUImanagementtoolthatintegr
3、atesSVNintoWindowsshell,andisrecommendedforuse.STEP2:createsrepositoriesAfterinstallingTortoiseSVNpromptedtorestartthemachine,infact,KaiKaiisnotcanbeusednormally,firstcreateaSVNrepository(repository),youcanchoosethecommandlineortheoperationofGUIthroughtheTortoiseSVNplug-in,thefollowingcommandlin
4、eoperation:SvnadmincreateE:svnhaike221E:svnhaike221ismydesignatedrepositorydirectory,ifusingGUI,canbeinthisdirectoryrightclicktoselect[TotoiseSVN]->[Createrepositoryhere...]tocreatethedefaultmodeforthespecifiedrepositorycanbe.Repositorycreatedwillgenerateanumberoffilesandfoldersinthedirector
5、yundertheDBdirectoryisallversioncontroldatafiles;thehooksdirectoryplacedhookscriptfiledirectory;locksisusedtoplacetheSubversionfilelibrarytolockthedatadirectorytotrackaccessfiledatabaseclient;formatfileisatextfile,whichonlyaninteger,representingthecurrentconfigurationfilelibraryversionnumber;con
6、fdirectoryconfigurationfiles,accesspermissions,userinformationandsoon.STEP3:configurationOpenthe/conf/directory,opensvnserve.conf,andfindtwosentences:#[general]#password-db=passwdTothebeginningofeachlineofthe#,ofwhichsecondistospecifytheauthenticationfilename,filepasswdAgain,openthepasswdfile#[u
7、sers]#Harry=harryssecret#Sally=sallyssecretThebeginningoftheline#characterremoved,whichissetforauser,astorageformatfortheusername二password”,suchasinsertingaline:admin二Admin888,thatistoaddausernameforthesystemisadmin,thepassw