仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 521|回复: 8
打印 上一主题 下一主题

[CentOS(社区)] 来一发CentOS 情况下搭建svn办事器

[复制链接]
不帅 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:21:00 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如果您觉得本篇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
欢迎大家来到仓酷云论坛!
灵魂腐蚀 该用户已被删除
9#
发表于 2015-3-22 20:12:41 | 只看该作者
随着实验课程的结束,理论课也该结束了,说实话教OS的这两位老师是我们遇到过的不错的老师(这话放这可能不太恰当).
愤怒的大鸟 该用户已被删除
8#
发表于 2015-3-16 03:33:57 | 只看该作者
选择交流平台,如QQ群,网站论坛等。
第二个灵魂 该用户已被删除
7#
发表于 2015-3-8 07:17:24 | 只看该作者
熟悉操作是日常学习Linux中的三大法宝。以下是作者学习Linux的一些个人经验,供参考:
兰色精灵 该用户已被删除
6#
发表于 2015-2-25 19:59:49 | 只看该作者
随着Linux应用的扩展,出现了不少Linux社区。有一些非常优秀的社区往往是Linux高手的舞台,如果在探讨高级技巧的论坛张贴非常初级的问题经常会没有结果。
分手快乐 该用户已被删除
5#
发表于 2015-2-8 14:07:09 | 只看该作者
就这样,我们一边上OS理论课,一边上这个实验,这样挺互补的,老师讲课,一步一步地布置任务
简单生活 该用户已被删除
地板
发表于 2015-2-2 22:08:26 | 只看该作者
再次,Linux是用C语言编写的,我们有学习C语言的基础,读程序和编写代码方面存在的困难小一点,也是我们能较快掌握的原因之一。?
冷月葬花魂 该用户已被删除
板凳
发表于 2015-1-25 11:01:32 | 只看该作者
在系统检测不到与Linux兼容的显卡,那么此次安装就可能不支持图形化界面安装,而只能用文本模式安装等等。
莫相离 该用户已被删除
沙发
发表于 2015-1-16 09:12:58 | 只看该作者

来一发CentOS 情况下搭建svn办事器

对我们学习操作系统有很大的帮助,加深我们对OS的理解。?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-12-24 11:03

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表