介绍
怎么在Linux中安装SVN服务端吗?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
什么是Linux系统
Linux是一种免费使用和自由传播的类UNIX操作系统,是一个基于POSIX的多用户,多任务,支持多线程和多CPU的操作系统,使用Linux能运行主要的UNIX工具软件,应用程序和网络协议。
<强>一、百胜安装强>
yum install subversion
<强>二,配置强>
<强> 1,创建仓库强>
我们在/home下建立一个名为SVN的仓库(库),以后所有代码都放在这个下面,创建成功后在SVN下面多了几个文件夹。
[root@localhost /] #, cd /home 【root@localhost 家居】#,mkdir svn 【root@localhost 家居】#,svnadmin create /home/svn 【root@localhost 家居】#,ls svn conf db  format hooks  locks README。txt
之文件夹,是存放配置文件的
[root@localhost 家居]#,cd svn/conf 【root@localhost 相依】# ls authz passwd  svnserve。参看
- <李>
authz是权限控制文件
李> <李>passwd是帐号密码文件
李> <李>svnserve。相依是SVN服务配置文件
李> <强> 2,配置passwd文件
强>
[root@localhost 相依]#,vim passwd # # #,却;能够file is an example password file for svnserve。 # # #,Its format  is similar 用that of svnserve.conf只As shown 拷贝 # # #,example below  it contains one section labelled [用户]。 # # #,从而name 以及password for each user , one account per 线。 (用户) #,harry =harryssecret #,sally =sallyssecret user1=123456 user2=123456
<强> 3,配置authz 强>
[root@localhost 相依]#,vim authz # # #,却;能够file is an example authorization file for svnserve。 # # #,Its format  is identical 用that of mod_authz_svn 授权 # # #,文件。 # # #,As shown  below each section defines authorizations for 从而path # # #,(可选),repository specified by 从而section 名字。 # # #,从而authorizations 遵循只An authorization line 还要refer : # # #,安康;a  single 用户, # # #,安康;a  group of users defined 拷贝a special (组),部分, # # #,安康;an  alias defined 拷贝a special (别名),部分, # # #,安康;all  authenticated 用户,using 从而& # 39;验证# 39;美元,令牌, # # #,安康;only  anonymous 用户,using 从而& # 39;匿名# 39;美元,令牌, # # #,今天早上,任何人,,using 从而& # 39;* & # 39;通配符。 # # # # # #,A match 还要be inverted by prefixing 从而rule with & # 39; ~ & # 39;只Rules # # #,grant read (& # 39; " # 39;),访问,read-write (& # 39; rw # 39;),访问,趁机no 访问 # # #,(& # 39;& # 39;)。 (别名)=#,joe 圣=甜点/L/C=XZ/=Snake 城市/O=Snake 石油,,有限公司/OU=Research 研究所/CN=joe 平均水平 (组)=#,harry_and_sally 哈利,莎莉=#,harry_sally_and_joe 哈利,莎莉,和乔 #,[/foo/bar] #,harry =rw #,,joe =r # *,=#,(存储库:巴兹/fuz) #,@harry_and_sally =rw #,*,=,r (/) user1=rw user2=r *=~
<强> 4,配置svnserve。参看强>
[root@localhost 相依]#,vim svnserve.conf # # #,却;能够file controls 从而configuration of 从而svnserve 守护进程,if 你 # # #,use it 用allow access 用却;能够存储库只(If 你;only 允许 # # #,access through http:,和/或文件:,url,, then 却;能够file # # #,无关)。 # # #,Visit http://subversion.apache.org/  for more 信息。 (通用) # # #,从而anon-access 以及auth-access options control access 用 # # #,repository for  unauthenticated (又称为只匿名),users # # #,authenticated 用户,分别。 # # #,Valid values 断开连接;“write",,“read",以及“none"。 null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null怎么在Linux中安装SVN服务端