仓酷云
标题:
来一发CentOS 情况下搭建svn办事器
[打印本页]
作者:
不帅
时间:
2015-1-14 20:21
标题:
来一发CentOS 情况下搭建svn办事器
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!
第1、装置svn步伐,
yuminstall-ysubversion
(rmp-qlsubversion检察装置地位
svnserve--version检察装置的版本)
[root@iZ25gd15vigZ~]#
yuminstallsubversion
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
epel/metalink|6.4kB00:00
*base:mirrors.yun-idc.com
*epel:mirrors.yun-idc.com
*extras:mirrors.yun-idc.com
*rpmforge:mirrors.neusoft.edu.cn
*updates:mirrors.yun-idc.com
base|3.7kB00:00
epel|4.4kB00:00
extras|3.3kB00:00
rpmforge|1.9kB00:00
updates|3.4kB00:00
updates/primary_db|5.3MB00:00
SettingupInstallProcess
ResolvingDependencies
-->Runningtransactioncheck
--->Packagesubversion.x86_640:1.6.11-10.el6_5willbeinstalled
-->ProcessingDependency:perl(URI)>=1.17forpackage:subversion-1.6.11-10.el6_5.x86_64
-->ProcessingDependency:apr>=1.3.0forpackage:subversion-1.6.11-10.el6_5.x86_64
-->ProcessingDependency:libneon.so.27()(64bit)forpackage:subversion-1.6.11-10.el6_5.x86_64
-->ProcessingDependency:libaprutil-1.so.0()(64bit)forpackage:subversion-1.6.11-10.el6_5.x86_64
-->ProcessingDependency:libapr-1.so.0()(64bit)forpackage:subversion-1.6.11-10.el6_5.x86_64
-->Runningtransactioncheck
--->Packageapr.x86_640:1.3.9-5.el6_2willbeinstalled
--->Packageapr-util.x86_640:1.3.9-3.el6_0.1willbeinstalled
--->Packageneon.x86_640:0.29.3-3.el6_4willbeinstalled
-->ProcessingDependency:libgnutls.so.26(GNUTLS_1_4)(64bit)forpackage:neon-0.29.3-3.el6_4.x86_64
-->ProcessingDependency:libproxy.so.0()(64bit)forpackage:neon-0.29.3-3.el6_4.x86_64
-->ProcessingDependency:libpakchois.so.0()(64bit)forpackage:neon-0.29.3-3.el6_4.x86_64
-->ProcessingDependency:libgnutls.so.26()(64bit)forpackage:neon-0.29.3-3.el6_4.x86_64
--->Packageperl-URI.noarch0:1.40-2.el6willbeinstalled
-->Runningtransactioncheck
--->Packagegnutls.x86_640:2.8.5-14.el6_5willbeinstalled
-->ProcessingDependency:libtasn1.so.3(LIBTASN1_0_3)(64bit)forpackage:gnutls-2.8.5-14.el6_5.x86_64
-->ProcessingDependency:libtasn1.so.3()(64bit)forpackage:gnutls-2.8.5-14.el6_5.x86_64
--->Packagelibproxy.x86_640:0.3.0-4.el6_3willbeinstalled
-->ProcessingDependency:libproxy-python=0.3.0-4.el6_3forpackage:libproxy-0.3.0-4.el6_3.x86_64
-->ProcessingDependency:libproxy-bin=0.3.0-4.el6_3forpackage:libproxy-0.3.0-4.el6_3.x86_64
--->Packagepakchois.x86_640:0.4-3.2.el6willbeinstalled
-->Runningtransactioncheck
--->Packagelibproxy-bin.x86_640:0.3.0-4.el6_3willbeinstalled
--->Packagelibproxy-python.x86_640:0.3.0-4.el6_3willbeinstalled
--->Packagelibtasn1.x86_640:2.3-6.el6_5willbeinstalled
-->FinishedDependencyResolution
DependenciesResolved
================================================================================
PackageArchVersionRepositorySize
================================================================================
Installing:
subversionx86_641.6.11-10.el6_5updates2.3M
Installingfordependencies:
aprx86_641.3.9-5.el6_2base123k
apr-utilx86_641.3.9-3.el6_0.1base87k
gnutlsx86_642.8.5-14.el6_5updates346k
libproxyx86_640.3.0-4.el6_3base39k
libproxy-binx86_640.3.0-4.el6_3base8.2k
libproxy-pythonx86_640.3.0-4.el6_3base8.4k
libtasn1x86_642.3-6.el6_5updates238k
neonx86_640.29.3-3.el6_4base119k
pakchoisx86_640.4-3.2.el6base21k
perl-URInoarch1.40-2.el6base117k
TransactionSummary
================================================================================
Install11Package(s)
Totaldownloadsize:3.4M
Installedsize:14M
Isthisok[y/N]:y
DownloadingPackages:
(1/11):apr-1.3.9-5.el6_2.x86_64.rpm|123kB00:00
(2/11):apr-util-1.3.9-3.el6_0.1.x86_64.rpm|87kB00:00
(3/11):gnutls-2.8.5-14.el6_5.x86_64.rpm|346kB00:00
(4/11):libproxy-0.3.0-4.el6_3.x86_64.rpm|39kB00:00
(5/11):libproxy-bin-0.3.0-4.el6_3.x86_64.rpm|8.2kB00:00
(6/11):libproxy-python-0.3.0-4.el6_3.x86_64.rpm|8.4kB00:00
(7/11):libtasn1-2.3-6.el6_5.x86_64.rpm|238kB00:00
(8/11):neon-0.29.3-3.el6_4.x86_64.rpm|119kB00:00
(9/11):pakchois-0.4-3.2.el6.x86_64.rpm|21kB00:00
(10/11):perl-URI-1.40-2.el6.noarch.rpm|117kB00:00
(11/11):subversion-1.6.11-10.el6_5.x86_64.rpm|2.3MB00:00
--------------------------------------------------------------------------------
Total5.4MB/s|3.4MB00:00
Runningrpm_check_debug
RunningTransactionTest
TransactionTestSucceeded
RunningTransaction
Installing:libproxy-python-0.3.0-4.el6_3.x86_641/11
Installing:libproxy-bin-0.3.0-4.el6_3.x86_642/11
Installing:libproxy-0.3.0-4.el6_3.x86_643/11
Installing:apr-1.3.9-5.el6_2.x86_644/11
Installing:apr-util-1.3.9-3.el6_0.1.x86_645/11
Installing:perl-URI-1.40-2.el6.noarch6/11
Installing:libtasn1-2.3-6.el6_5.x86_647/11
Installing:gnutls-2.8.5-14.el6_5.x86_648/11
Installing:pakchois-0.4-3.2.el6.x86_649/11
Installing:neon-0.29.3-3.el6_4.x86_6410/11
Installing:subversion-1.6.11-10.el6_5.x86_6411/11
Verifying:libproxy-0.3.0-4.el6_3.x86_641/11
Verifying:pakchois-0.4-3.2.el6.x86_642/11
Verifying:libtasn1-2.3-6.el6_5.x86_643/11
Verifying:subversion-1.6.11-10.el6_5.x86_644/11
Verifying:neon-0.29.3-3.el6_4.x86_645/11
Verifying:gnutls-2.8.5-14.el6_5.x86_646/11
Verifying:perl-URI-1.40-2.el6.noarch7/11
Verifying:libproxy-python-0.3.0-4.el6_3.x86_648/11
Verifying:libproxy-bin-0.3.0-4.el6_3.x86_649/11
Verifying:apr-1.3.9-5.el6_2.x86_6410/11
Verifying:apr-util-1.3.9-3.el6_0.1.x86_6411/11
Installed:
subversion.x86_640:1.6.11-10.el6_5
DependencyInstalled:
apr.x86_640:1.3.9-5.el6_2apr-util.x86_640:1.3.9-3.el6_0.1
gnutls.x86_640:2.8.5-14.el6_5libproxy.x86_640:0.3.0-4.el6_3
libproxy-bin.x86_640:0.3.0-4.el6_3libproxy-python.x86_640:0.3.0-4.el6_3
libtasn1.x86_640:2.3-6.el6_5neon.x86_640:0.29.3-3.el6_4
pakchois.x86_640:0.4-3.2.el6perl-URI.noarch0:1.40-2.el6
Complete!
第2、创立svn版本库的目次,svnadmincreate/var/svn/svnrepos
[root@iZ25gd15vigZsvn]#
svnadmincreate/var/svn/svnrepos
[root@iZ25gd15vigZsvn]#cd/var/svn/svnrepos/
[root@iZ25gd15vigZsvnrepos]#ls
confdbformathookslocksREADME.txt
第3、增加用户,设置权限,进进conf目次(该svn版本库设置文件)
authz文件是权限把持文件
passwd是帐号暗码文件
svnserve.confSVN办事设置文件
[root@iZ25gd15vigZsvnrepos]#cdconf
[root@iZ25gd15vigZconf]#ls
authzpasswdsvnserve.conf
[root@iZ25gd15vigZconf]#
vipasswd
###Thisfileisanexamplepasswordfileforsvnserve.
###Itsformatissimilartothatofsvnserve.conf.Asshowninthe
###examplebelowitcontainsonesectionlabelled[users].
###Thenameandpasswordforeachuserfollow,oneaccountperline.
[users]
#harry=harryssecret
#sally=sallyssecret
zhangshibo=123456#等号右边是用户名,等号右侧是暗码
[root@iZ25gd15vigZconf]#viauthz
###Thisfileisanexampleauthorizationfileforsvnserve.
###Itsformatisidenticaltothatofmod_authz_svnauthorization
###files.
###Asshownbeloweachsectiondefinesauthorizationsforthepathand
###(optional)repositoryspecifiedbythesectionname.
###Theauthorizationsfollow.Anauthorizationlinecanreferto:
###-asingleuser,
###-agroupofusersdefinedinaspecial[groups]section,
###-analiasdefinedinaspecial[aliases]section,
###-allauthenticatedusers,usingthe$authenticatedtoken,
###-onlyanonymoususers,usingthe$anonymoustoken,
###-anyone,usingthe*wildcard.
###
###Amatchcanbeinvertedbyprefixingtherulewith~.Rulescan
###grantread(r)access,read-write(rw)access,ornoaccess
###().
[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
#[/foo/bar]
#harry=rw
#&joe=r
#*=
[/]
#[repository:/var/svn/svnrepos]
#@harry_and_sally=rw
#*=r
zhangshibo=rw#意义是zhangshibo关于根目次具有读写权限,r为读,w为写
[root@iZ25gd15vigZconf]#visvnserve.conf
###Thisfilecontrolstheconfigurationofthesvnservedaemon,ifyou
###useittoallowaccesstothisrepository.(Ifyouonlyallow
###accessthroughhttp:and/orfile:URLs,thenthisfileis
###irrelevant.)
###Visithttp://subversion.tigris.org/formoreinformation.
[general]
###Theseoptionscontrolaccesstotherepositoryforunauthenticated
###andauthenticatedusers.Validvaluesare"write","read",
###and"none".Thesamplesettingsbelowarethedefaults.
anon-access=read#匿名用户可读
auth-access=write#受权用户可写
###Thepassword-dboptioncontrolsthelocationofthepassword
###databasefile.Unlessyouspecifyapathstartingwitha/,
###thefileslocationisrelativetothedirectorycontaining
###thisconfigurationfile.
###IfSASLisenabled(seebelow),thisfilewillNOTbeused.
###Uncommentthelinebelowtousethedefaultpasswordfile.
password-db=passwd#保留帐号暗码的文件
###Theauthz-dboptioncontrolsthelocationoftheauthorization
###rulesforpath-basedaccesscontrol.Unlessyouspecifyapath
###startingwitha/,thefileslocationisrelativetothethe
###directorycontainingthisfile.Ifyoudontspecifyan
###authz-db,nopath-basedaccesscontrolisdone.
###Uncommentthelinebelowtousethedefaultauthorizationfile.
authz-db=authz#设置权限的文件
###Thisoptionspecifiestheauthenticationrealmoftherepository.
###Iftworepositorieshavethesameauthenticationrealm,theyshould
###havethesamepassworddatabase,andviceversa.Thedefaultrealm
###isrepositorysuuid.
realm=/var/svn/svnrepos#版本库地点目次
[sasl]
###ThisoptionspecifieswhetheryouwanttousetheCyrusSASL
###libraryforauthentication.Defaultisfalse.
###ThissectionwillbeignoredifsvnserveisnotbuiltwithCyrus
###SASLsupport;tocheck,runsvnserve--versionandlookforaline
###readingCyrusSASLauthenticationisavailable.
#use-sasl=true
###Theseoptionsspecifythedesiredstrengthofthesecuritylayer
###thatyouwantSASLtoprovide.0meansnoencryption,1means
###integrity-checkingonly,valueslargerthan1arecorrelated
###totheeffectivekeylengthforencryption(e.g.128means128-bit
###encryption).Thevaluesbelowarethedefaults.
#min-encryption=0
#max-encryption=256
第4、启动svn版本库
svnserve-d-r/var/svn/svnrepos
[root@iZ25gd15vigZconf]#
svnserve-d-r/var/svn/svnrepos
svn的会见路径svn://123.57.17.118
欢迎大家来到仓酷云论坛!
作者:
莫相离
时间:
2015-1-16 09:12
标题:
来一发CentOS 情况下搭建svn办事器
对我们学习操作系统有很大的帮助,加深我们对OS的理解。?
作者:
冷月葬花魂
时间:
2015-1-25 11:01
在系统检测不到与Linux兼容的显卡,那么此次安装就可能不支持图形化界面安装,而只能用文本模式安装等等。
作者:
简单生活
时间:
2015-2-2 22:08
再次,Linux是用C语言编写的,我们有学习C语言的基础,读程序和编写代码方面存在的困难小一点,也是我们能较快掌握的原因之一。?
作者:
分手快乐
时间:
2015-2-8 14:07
就这样,我们一边上OS理论课,一边上这个实验,这样挺互补的,老师讲课,一步一步地布置任务
作者:
兰色精灵
时间:
2015-2-25 19:59
随着Linux应用的扩展,出现了不少Linux社区。有一些非常优秀的社区往往是Linux高手的舞台,如果在探讨高级技巧的论坛张贴非常初级的问题经常会没有结果。
作者:
第二个灵魂
时间:
2015-3-8 07:17
熟悉操作是日常学习Linux中的三大法宝。以下是作者学习Linux的一些个人经验,供参考:
作者:
愤怒的大鸟
时间:
2015-3-16 03:33
选择交流平台,如QQ群,网站论坛等。
作者:
灵魂腐蚀
时间:
2015-3-22 20:12
随着实验课程的结束,理论课也该结束了,说实话教OS的这两位老师是我们遇到过的不错的老师(这话放这可能不太恰当).
欢迎光临 仓酷云 (http://ckuyun.com/)
Powered by Discuz! X3.2