TypechoJoeTheme

EYblog - Powered by Eyblog

统计
登录
用户名
密码

郑先森灬

世上没有偶然,有的只是必然,正面面对困难,才能迈向成功。
网站页面

【技术解读】Linux下SVN的安装以及使用教程

1、安装SVN

yum install subversion

2、配置

2-1、配置仓库

在/home下建立一个名为svn的仓库(repository),以后所有代码都放在这个下面,创建成功后在svn下面多了几个文件夹

[root@localhost /]# cd /home
[root@localhost home]# mkdir svn
[root@localhost home]# svnadmin create /home/svn
[root@localhost home]# ls svn
conf  db  format  hooks  locks  README.txt

查看创建后的svn目录下的配置文件

[root@localhost home]# cd svn/conf
[root@localhost conf]# ls
authz  passwd  svnserve.conf

注:

  1. authz 是权限控制文件
  2. passwd 是帐号密码文件
  3. svnserve.conf 是SVN服务配置文件

2-2、配置passwd

[root@localhost conf]# vi passwd 
[users]
test1=123456
test2=123456

根据自己的需求创建自己的账号以及密码

2-3、配置authz

[root@localhost conf]# vi authz 
[/]
liuxianan=rw
test1=r
test2=r
*=

注:
liuxianan对/home/svn/下所有文件具有可读可写权限,test只有只读权限,除此之外,其它用户均无任何权限,最后一行*=很重要不能少

2-4、配置svnserve.conf

[root@localhost conf]# vi svnserve.conf 
打开下面的5个注释
anon-access = read #匿名用户可读
auth-access = write #授权用户可写
password-db = passwd #使用哪个文件作为账号文件
authz-db = authz #使用哪个文件作为权限文件
realm = /home/svn # 认证空间名,版本库所在目录

注:

  1. 最后一行的realm记得改成你的svn目录
  2. 打开注释时切记前面不要留有空格,否则存在异常问题

3、启动与停止

[root@localhost conf]# svnserve -d -r /home/svn(启动)
[root@localhost conf]#killall svnserve(停止)

注:

  1. -d表示守护进程
  2. -r 表示在后台执行

停止还可以使用杀死进程的方式进行:

[root@localhost conf]# ps -ef|grep svnserve
root      4908     1  0 21:32 ?        00:00:00 svnserve -d -r /home/svn
root      4949  4822  0 22:05 pts/0    00:00:00 grep svnserve
[root@localhost conf]# kill -9 4908

4、指定端口启动(适用于多项目运行svn)

当前面(除了第三步以外)的配置都配置齐全之后,可使用下面的命令指定端口启动

svnserve -dr /home/svn/ --listen-port 80

5、客户端链接

客户端安装svn工具,输入地址svn://你的IP 即可,不出意外输入用户名和密码就能连接成功了。默认端口3690,如果你修改了端口,那么要记得加上端口号。

6、多项目同时启动

svnserve -d -r /home

适用于指定目录运行 例如 svn://xxxx/xxx.com

赞(0)
版权属于:

EYblog - Powered by Eyblog

本文链接:

https://akxdz.com/index.php/archives/34/(转载时请注明本文出处及文章链接)

评论 (70)
  1. Richardheest 作者
    Windows 10 · Google Chrome

    cheap erectile dysfunction pill ed drugs best pills for ed

    2022-05-16 回复
  2. Richardheest 作者
    Windows 10 · Google Chrome

    best ed pills non prescription pain meds without written prescription cheap pet meds without vet prescription

    2022-05-15 回复
  3. Richardheest 作者
    Windows 7 · Google Chrome

    best ed drug ed pills otc the best ed pills

    2022-05-14 回复
  4. Richardheest 作者
    Windows 10 · Google Chrome

    buy prescription drugs without doctor prescription without a doctor's prescription canadian drugs

    2022-05-12 回复
  5. Richardheest 作者
    Windows 7 · Google Chrome

    stromectol ivermectin tablets stromectol side effects buy stromectol pills

    2022-05-11 回复
  6. Nathannus 作者
    Windows 7 · Google Chrome

    generic cialis with dapoxetine cialis generic shopping buy cialis online reddit

    2022-05-11 回复
  7. Nathannus 作者
    Windows 8.1 · Google Chrome

    ed treatment natural pain medications without a prescription ed tablets

    2022-05-10 回复
  8. Nathannus 作者
    Windows 10 · Google Chrome

    prednisone 20 mg generic cheap prednisone 30mg prednisone

    2022-05-09 回复
  9. Nathannus 作者
    Windows 10 · Google Chrome

    prednisone coupon prednisone for sale 20 mg prednisone

    2022-05-07 回复
  10. Nathannus 作者
    Windows 8.1 · Google Chrome

    viagra without a doctor prescription psychological ed treatment ed devices

    2022-05-05 回复
  11. RobertUSELS 作者
    Windows 10 · Google Chrome

    best ed pill ed pharmacy carprofen without vet prescription

    2022-05-03 回复
  12. RobertUSELS 作者
    Windows 8.1 · Google Chrome

    ed cures buy ed pills online erectial dysfunction

    2022-05-01 回复
  13. RobertUSELS 作者
    Windows 10 · Google Chrome

    prednisone otc price prednisone iv prednisone

    2022-04-30 回复
  14. RobertUSELS 作者
    Windows 10 · Google Chrome

    how to get cialis 800mg cialis online canadian cialis 20mg tablets price

    2022-04-29 回复
  15. RobertUSELS 作者
    Windows 7 · Google Chrome

    pay pal for cialis cialis windsor canada pharmacy prices on cialis

    2022-04-27 回复
  16. Victortoisa 作者
    Windows 10 · Google Chrome

    top erection pills non prescription ed drugs mexican pharmacy without prescription

    2022-04-24 回复
  17. Victortoisa 作者
    Windows 7 · Google Chrome

    amoxicillin without a doctor's prescription top ed drugs buy erection pills

    2022-04-21 回复
  18. JasonDaync 作者
    Windows 10 · Google Chrome

    ed pills that really work canada ed drugs best natural cure for ed

    2022-04-18 回复
  19. JasonDaync 作者
    Windows 10 · Google Chrome

    best pill for ed cheap medication best ed treatment pills

    2022-04-17 回复
  20. Josephboime 作者
    Windows 8.1 · Google Chrome

    buy doxycycline 100mg uk vibramycin 100 mg buy doxycycline capsules

    2022-04-16 回复
  21. Josephboime 作者
    Windows 8.1 · Google Chrome

    buying clomid online usa buy clomid uk clomid 5 mg tablet

    2022-04-14 回复
  22. Josephboime 作者
    Windows 10 · Google Chrome

    clomid buy online buy clomid from canada clomid order online

    2022-04-13 回复
  23. Josephboime 作者
    Windows 10 · Google Chrome

    generic amoxicillin over the counter amoxicillin 500mg capsule buy online amoxicillin 500 mg brand name

    2022-04-11 回复
  24. RichardVen 作者
    Windows 10 · Google Chrome

    cialis without prescribtion generic cialis online purchase price of cialis in nz

    2022-04-10 回复
  25. RichardVen 作者
    Windows 10 · Google Chrome

    is there a generic cialis buying viagra or cialis min canada cialis professionel

    2022-04-08 回复
  26. Dadhar 作者
    Windows 10 · Google Chrome

    albendazole vs ivermectin ivermectin horse paste human dosage cvs ivermectin

    2022-04-07 回复
  27. Dadhar 作者
    Windows 10 · Google Chrome

    ivermectin dosage for cats ear mites ivermectin paste stromectol walgreens

    2022-04-05 回复
  28. JaDiAl 作者
    Windows 10 · Google Chrome

    cialis canada org doc viagra cialis sample pack cialis withouth prescriptiong

    2022-04-04 回复
  29. JaDiAl 作者
    Windows 10 · Google Chrome

    36 hour cialis mg cialis overnight online can i take cialis with daxpoteine

    2022-04-03 回复
  30. Jasonbof 作者
    Windows 10 · Google Chrome

    is cialis better than viagra can you take viagra with high blood pressure how long does it take for viagra to work
    https://cutt.ly/jDOLBRm# is viagra sold over the counter
    how to make natural viagra can i take viagra twice a day viagra online no prior prescription

    2022-03-31 回复
  31. Jasonbof 作者
    Windows 7 · Google Chrome

    clomid online from india how to get clomid online clomid 50mg canada

    2022-03-27 回复
  32. Jasonbof 作者
    Windows 8.1 · Google Chrome

    cialis dapoxetine overnight shipment cialis coupon walmart paypal cialis online

    2022-03-25 回复
  33. Daviddum 作者
    Windows 8.1 · Google Chrome

    amoxicillin 500 mg without a prescription amoxicillin 875 125 mg tab amoxacillian without a percription

    2022-03-24 回复
  34. Daviddum 作者
    Windows 7 · Google Chrome

    buy amoxicillin 500mg online amoxicillin for sale buy amoxicillin 500mg uk

    2022-03-23 回复
  35. Daviddum 作者
    Windows 8.1 · Google Chrome

    doxycycline pharmacy singapore can you buy doxycycline over the counter in canada doxycycline prescription canada

    2022-03-21 回复
  36. Marcusthake 作者
    Windows 7 · Google Chrome

    ivermectin dose for scabies ivermectin pills for dogs ivermectin dosage humans

    2022-03-19 回复
  37. Marcusthake 作者
    Windows 7 · Google Chrome

    ivermectin 1 cream ivermectin for covid 19 ivermectin ointment

    2022-03-18 回复
  38. Marcusthake 作者
    Windows 8.1 · Google Chrome

    ivermectin lotion traitement gale stromectol where can i buy ivermectin for humans

    2022-03-17 回复
  39. Jameselirl 作者
    Windows 10 · Google Chrome

    ver to bay cialis 20mg cialis legal purchase how much is a cialis prescription with no insurance

    2022-03-14 回复
  40. Jameselirl 作者
    Windows 10 · Google Chrome

    cialis and viagra cialis omline cheap cialis pills uk

    2022-03-12 回复
  41. Russellepife 作者
    Windows 8.1 · Google Chrome

    pfizer covid pill anticovid paxlovid interaction checker

    2022-03-11 回复
  42. Russellepife 作者
    Windows 10 · Google Chrome

    molnupiravir tablet price molnupiravir price in india molnupiravir tablet

    2022-03-09 回复
  43. Russellepife 作者
    Windows 10 · Google Chrome

    paxlovid dosing paxlovid and molnupiravir buy paxlovid

    2022-03-08 回复
  44. Russellepife 作者
    Windows 10 · Google Chrome

    ivermectin new zealand cost of ivermectin pill minocycline pills

    2022-03-07 回复
  45. Russellepife 作者
    Windows 8.1 · Google Chrome

    paxovid paxovid paxlovid cost

    2022-03-06 回复
  46. Stevenprish 作者
    Windows 10 · Google Chrome

    viagra government funding snopes what does female viagra do difference between cialis and viagra

    2022-03-03 回复
  47. Stevenprish 作者
    Windows 10 · Google Chrome

    buy viagra online without prescriptions how to get a free trial of viagra buying viagra online legal

    2022-03-02 回复
  48. MathewMiz 作者
    Windows 8.1 · Google Chrome

    buy doxycycline hyclate 100mg without a rx doxycycline order online - generic doxycycline
    https://doxycyline1st.com/# doxy

    2022-03-01 回复
  49. MathewMiz 作者
    Windows 10 · Google Chrome

    doxycycline hyclate doxycycline online - buy doxycycline for dogs
    https://doxycyline1st.com/# order doxycycline

    2022-02-28 回复
  50. MathewMiz 作者
    Windows 7 · Google Chrome

    buy doxycycline without prescription order doxycycline online - cheap doxycycline online
    https://doxycyline1st.com/# doxycycline 500mg

    2022-02-27 回复
  51. Jamesdor 作者
    Windows 10 · Google Chrome

    buy clomid online no prescription clomid purchase - cheap clomid online
    https://clomiphene1st.com/# clomid cost

    2022-02-25 回复
  52. Stevenvap 作者
    Windows 8.1 · Google Chrome

    https://stromectolis.com/# ivermectin 50

    2022-02-22 回复
  53. Stevenvap 作者
    Windows 8.1 · Google Chrome

    https://stromectolis.com/# stromectol uk

    2022-02-22 回复
  54. Stevenvap 作者
    Windows 10 · Google Chrome

    https://stromectolis.com/# stromectol online canada

    2022-02-21 回复
  55. Stevenvap 作者
    Windows 7 · Google Chrome

    https://stromectolis.com/# ivermectin lice

    2022-02-21 回复
  56. Stevenvap 作者
    Windows 8.1 · Google Chrome

    https://stromectolis.com/# stromectol generic name

    2022-02-20 回复
  57. Stevenvap 作者
    Windows 7 · Google Chrome

    https://stromectolis.com/# ivermectin 9 mg

    2022-02-20 回复
  58. Chrisskelf 作者
    Windows 10 · Google Chrome

    order stromectol: ivermectin cost canada - ivermectin oral solution
    http://stromectolst.com/# stromectol
    ivermectin cost canada ivermectin stromectol covid 19

    2022-02-18 回复
  59. Chrisskelf 作者
    Windows 7 · Google Chrome

    buy ivermectin pills: buy ivermectin - ivermectin 5
    http://stromectolst.com/# buy ivermectin canada
    stromectol tab price cost of ivermectin 1% cream stromectol online

    2022-02-18 回复
  60. Georgelajow 作者
    Windows 7 · Google Chrome

    buy paxlovid online paxlovid for sale paxlovid
    https://apollobgshospitalsmysore.online/ buy paxlovid
    where can i buy paxlovid paxlovid cost paxlovid price

    2022-02-17 回复
  61. Georgelajow 作者
    Windows 10 · Google Chrome

    where can i get paxlovid buy paxlovid buy paxlovid online
    https://apollobgshospitalsmysore.online/ paxlovid cost
    molnupiravir price buy molnupiravir molnupiravir india

    2022-02-16 回复
  62. Georgelajow 作者
    Windows 10 · Google Chrome

    buy molnupiravir online where to get molnupiravir molnupiravir price
    https://myalliancehealthcare.online/ molnupiravir
    molnupiravir price buy molnupiravir cost of molnupiravir

    2022-02-15 回复
  63. JamesAmand 作者
    Windows 10 · Google Chrome

    buy prescription drugs online without buy prescription drugs canadian drugstore online
    https://without-prescription-online.online/ buy cheap prescription drugs online
    best canadian online pharmacy pet meds without vet prescription prescription drugs canada buy online

    2022-02-12 回复
  64. JamesAmand 作者
    Windows 10 · Google Chrome

    prescription drugs without prior prescription buy prescription drugs from india pet meds without vet prescription canada
    https://without-prescription-online.online/ pet meds without vet prescription canada
    prescription drugs online without buy canadian drugs best online canadian pharmacy

    2022-02-12 回复
  65. JamesAmand 作者
    Windows 7 · Google Chrome

    canadian online drugs canadian drugs online canadian pharmacy
    https://without-prescription-online.online/ cheap pet meds without vet prescription
    how can i order prescription drugs without a doctor canadian medications best canadian online pharmacy

    2022-02-12 回复
  66. GrantTOT 作者
    Windows 10 · Google Chrome

    buy zithromax without presc can i buy zithromax over the counter zithromax 250 mg tablet price
    https://azithromycin1st.com/ zithromax for sale usa
    zithromax 500 mg lowest price pharmacy online generic zithromax medicine zithromax prescription in canada

    2022-02-10 回复
  67. GrantTOT 作者
    Windows 10 · Google Chrome

    zithromax for sale cheap where to buy zithromax in canada where to get zithromax over the counter
    https://azithromycin1st.com/ zithromax tablets
    buy zithromax 1000mg online zithromax 500 mg for sale zithromax generic price

    2022-02-10 回复
  68. GrantTOT 作者
    Windows 7 · Google Chrome

    zithromax azithromycin zithromax 500 mg lowest price online zithromax price canada
    https://azithromycin1st.com/ zithromax 500 without prescription
    zithromax 500 price zithromax 500mg price in india zithromax 500 mg lowest price drugstore online

    2022-02-10 回复
  69. GrantTOT 作者
    Windows 10 · Google Chrome

    cheap zithromax pills buy zithromax online australia zithromax capsules 250mg
    https://azithromycin1st.com/ zithromax drug
    zithromax coupon where to get zithromax zithromax online paypal

    2022-02-09 回复
  70. Timothypoism 作者
    Windows 7 · Google Chrome

    stromectol generic name stromectol for sale - ivermectin 18mg
    http://stromectolabc.com/ ivermectin 1mg
    ivermectin 5 mg price generic stromectol stromectol 3 mg

    2022-02-04 回复
郑先森灬
世上没有偶然,有的只是必然,正面面对困难,才能迈向成功。
24 文章数
25,898 评论量

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月