|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!1、实行拓扑
svnserver(subversion):192.168.1.126
svnclient(TortoiseSVN):下载地点(http://tortoisesvn.net/downloads.html)
2、筹办yum源
[size=1em][size=1em]#cd/etc/yum.repos.d/
[size=1em]#wgethttp://mirrors.163.com/.help/CentOS6-Base-163.repo
3、装置软件包
[size=1em][size=1em]#yuminstallhttpdhttpd-develmod_dav_svnsubversionmod_ssl
4、检察测试是不是装置svn模块
[size=1em][size=1em]#ls/etc/httpd/modules/|grepsvn
[size=1em]mod_authz_svn.so
[size=1em]mod_dav_svn.so
[size=1em]
[size=1em]#svn--version
5、创立目次,初始化
[size=1em][size=1em]#mkdir-p/data/svn/repo
[size=1em]#cd/data/svn/repo
[size=1em]#svnadmincreatepeace////实行下令后,主动在peace目次下创建多个文件,分离是conf、db、format、hooks、locks、README.txt。
[size=1em]#chown-Rapache.apachepeace
6、设置subversion.conf
加载mod_dav_svn模块,一样平常apache2己一般加载这两个模块apache必要加载mod_dav_svn模块。假如apache是依照与预设目次装置的,mod_dav_svn模块应当会装置在apache装置地位(默许路径是/etc/httpd/)的modules子目次内。同时apache的设置文件httpd.conf(默许路径为etc/httpd/conf/)中已利用LoadModule指令加载了该模块(假如没有,手动增加)注重这个指令必需呈现在别的的Subversion相干指令之前。还要加载mod_authz_svn.so模块。
<divstyle="padding:0px;margin:0px;color:rgb(44,44,44);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterbash"id="highlighter_11505"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">[size=1em]LoadModuledav_svn_modulemodules/mod_dav_svn.so
[size=1em]LoadModuleauthz_svn_modulemodules/mod_authz_svn.so
[size=1em]
[size=1em]……
[size=1em]<Location/repos>
[size=1em]DAVsvn
[size=1em]#SVNParentPath/data/svn/repo//前面会注释为何不必这个
[size=1em]SVNPath/data/svn/repo/peace
[size=1em]SVNListParentPathon
[size=1em]
[size=1em]AuthTypeBasic
[size=1em]AuthName"AuthorizationRealm"
[size=1em]AuthUserFile/data/svn/passwdfile |
|