北京SEO

Linux配置安装svn服务端、客户端应用的例子

2019/10/10/17:44:52  阅读:2030  来源:谷歌SEO算法  标签: Google

安装svn对于团队开发与版本控制的朋友肯定是会用到了,今天,我们来看在Linux配置安装svn服务端、客户端应用的例子,希望这个例子能给各位带来有效帮助.

Linux配置安装svn服务,此次配置环境为centos6.6,内核版本2.6.32.

  1. Lastlogin:SatMar1406:12:562015
  2. [root@Svn-Server~]#cat/etc/redhat-release
  3. CentOSrelease6.6(Final)
  4. [root@Svn-Server~]#uname-rm
  5. 2.6.32-504.el6.x86_64x86_64
  6. [root@Svn-Server~]#rpm-qasubversion
  7. [root@Svn-Server~]#yuminstallsubversion-y
  8. DependenciesResolved
  9. PackageArchVersionRepositorySize
  10. Installing:
  11. subversionx86_641.6.11-12.el6_6updates2.3M
  12. Installingfordependencies:
  13. aprx86_641.3.9-5.el6_2base123k
  14. apr-utilx86_641.3.9-3.el6_0.1base87k
  15. gnutlsx86_642.8.5-14.el6_5base346k
  16. libproxyx86_640.3.0-10.el6base39k
  17. libproxy-binx86_640.3.0-10.el6base9.0k
  18. libproxy-pythonx86_640.3.0-10.el6base9.1k
  19. neonx86_640.29.3-3.el6_4base119k
  20. pakchoisx86_640.4-3.2.el6base21k
  21. perlx86_644:5.10.1-136.el6_6.1updates10M
  22. perl-Module-Pluggablex86_641:3.90-136.el6_6.1updates40k
  23. perl-Pod-Escapesx86_641:1.04-136.el6_6.1updates32k
  24. perl-Pod-Simplex86_641:3.13-136.el6_6.1updates212k
  25. perl-URInoarch1.40-2.el6base117k
  26. perl-libsx86_644:5.10.1-136.el6_6.1updates578k
  27. perl-versionx86_643:0.77-136.el6_6.1updates51k
  28. TransactionSummary
  29. =====================================================================================================================================
  30. Install16Package(s)
  31. [root@Svn-Server~]#mkdir/byrd/svndata-p
  32. [root@Svn-Server~]#svnserve-d-r/byrd/svndata/
  33. [root@Svn-Server~]#ps-ef|grepsvn
  34. root12161006:31?00:00:00svnserve-d-r/byrd/svndata/
  35. [root@Svn-Server~]#rpm-qasubversion
  36. subversion-1.6.11-12.el6_6.x86_64
  37. [root@Svn-Server~]#netstat-tunlp#lsof-i:3690
  38. ActiveInternetconnections(onlyservers)
  39. ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/Programname
  40. tcp000.0.0.0:220.0.0.0:*LISTEN1053/sshd
  41. tcp00127.0.0.1:250.0.0.0:*LISTEN1130/master
  42. tcp000.0.0.0:36900.0.0.0:*LISTEN1216/svnserve
  43. tcp00:::22:::*LISTEN1053/sshd
  44. tcp00::1:25:::*LISTEN1130/master
  45. [root@Svn-Server~]#whichsvnadmin
  46. /usr/bin/svnadmin
  47. [root@Svn-Server~]#svnadmincreate/byrd/svndata/linuxerdox#创建svn版本库(ThisisaSubversionrepository)
  48. [root@Svn-Server~]#cd/byrd/svndata/linuxerdox/conf/
  49. [root@Svn-Serverconf]#cpsvnserve.confsvnserve.$(date+%F).conf#备份svnserve.conf配置文件
  50. [root@Svn-Serverconf]#sed-i's#\#anon-access=read#anon-access=none#g'svnserve.conf#取消svn匿名访问
  51. [root@Svn-Serverconf]#sed-i's#\#auth-access=write#auth-access=write#g'svnserve.conf
  52. [root@Svn-Serverconf]#mkdir/byrd/svnpasswd#创建公共密码区域
  53. [root@Svn-Serverconf]#sed-i's/\#password-db=passwd/password-db=\/byrd\/svnpasswd\/passwd/g'svnserve.conf
  54. [root@Svn-Serverconf]#sed-i's/\#authz-db=authz/authz-db=\/byrd\/svnpasswd\/authz/g'svnserve.conf
  55. [root@Svn-Serverconf]#diffsvnserve.*
  56. 12,13c12,13
  57. <#anon-access=read
  58. <#auth-access=write
  59. ---
  60. >anon-access=none
  61. >auth-access=write
  62. 20c20
  63. <#password-db=passwd
  64. ---
  65. >password-db=/byrd/svnpasswd/passwd
  66. 27c27
  67. <#authz-db=authz
  68. ---
  69. >authz-db=/byrd/svnpasswd/authz
  70. [root@Svn-Serverconf]#cpauthzpasswd/byrd/svnpasswd/
  71. [root@Svn-Serverconf]#chmod700/byrd/svnpasswd/*
  72. [root@Svn-Serverconf]#ll/byrd/svnpasswd/
  73. total8
  74. -rwx------.1rootroot1080Mar1420:54authz
  75. -rwx------.1rootroot309Mar1420:54passwd
  76. [root@Svn-Serverconf]#sed-i's#\#harry=harryssecret#byrd=admin#g'/byrd/svnpasswd/passwd
  77. [root@Svn-Serversvndata]#tail-3/byrd/svnpasswd/authz
  78. [linuxerdox:/]
  79. byrd=rw
  80. *=
  81. [root@Svn-Serversvndata]#netstat-tunlp
  82. ActiveInternetconnections(onlyservers)
  83. ProtoRecv-QSend-QLocalAddressForeignAddressStatePID/Programname
  84. tcp000.0.0.0:220.0.0.0:*LISTEN1052/sshd
  85. tcp00127.0.0.1:250.0.0.0:*LISTEN1129/master
  86. tcp000.0.0.0:36900.0.0.0:*LISTEN1267/svnserve
  87. tcp00:::22:::*LISTEN1052/sshd
  88. tcp00::1:25:::*LISTEN1129/master//phpfensi.com
  89. [root@Svn-Serversvndata]#pkillsvnserve
  90. [root@Svn-Serversvndata]#svnserve-d-r/byrd/svndata/

linux作为客户端:

  1. co:checkout
  2. ci:commit
  3. up:update
  4. ls:list
  5. [root@Svn-Serverlinuxerdox]#svncosvn://1.1.1.32/linuxerdox/tmp/--username=byrd--password=admin
  6. -----------------------------------------------------------------------
  7. ATTENTION!Yourpasswordforauthenticationrealm:
  8. <svn://1.1.1.32:3690>3c9e524f-5a71-49bf-92d5-0a9b8d86bc7e
  9. canonlybestoredtodiskunencrypted!Youareadvisedtoconfigure
  10. yoursystemsothatSubversioncanstorepasswordsencrypted,if
  11. possible.Seethedocumentationfordetails.
  12. Youcanavoidfutureappearancesofthiswarningbysettingthevalue
  13. ofthe'store-plaintext-passwords'optiontoeither'yes'or'no'in
  14. '/root/.subversion/servers'.
  15. -----------------------------------------------------------------------
  16. Storepasswordunencrypted(yes/no)?no
  17. Checkedoutrevision3.
  18. [root@Svn-Serverlinuxerdox]#svncosvn://1.1.1.32/linuxerdox/tmp/--username=byrd--password=admin
  19. A/tmp/111.txt
  20. Checkedoutrevision4.
  21. [root@Svn-Serverlinuxerdox]#ll/tmp/
  22. total4
  23. -rw-r--r--.1rootroot46Mar1421:45111.txt
  24. [root@Svn-Serverlinuxerdox]#touch/tmp/abc.txt
  25. [root@Svn-Serverlinuxerdox]#svnadd/tmp/abc.txt
  26. A/tmp/abc.txt
  27. [root@Svn-Serverlinuxerdox]#svnci
  28. svn:'/byrd/svndata/linuxerdox'isnotaworkingcopy
  29. [root@Svn-Serverlinuxerdox]#svnci-m"abc"
  30. svn:'/byrd/svndata/linuxerdox'isnotaworkingcopy
  31. [root@Svn-Serverlinuxerdox]#cd/tmp/
  32. [root@Svn-Servertmp]#svnci-m"abc"
  33. Authenticationrealm:<svn://1.1.1.32:3690>3c9e524f-5a71-49bf-92d5-0a9b8d86bc7e
  34. Passwordfor'byrd':
  35. -----------------------------------------------------------------------
  36. ATTENTION!Yourpasswordforauthenticationrealm:
  37. <svn://1.1.1.32:3690>3c9e524f-5a71-49bf-92d5-0a9b8d86bc7e
  38. canonlybestoredtodiskunencrypted!Youareadvisedtoconfigure
  39. yoursystemsothatSubversioncanstorepasswordsencrypted,if
  40. possible.Seethedocumentationfordetails.
  41. Youcanavoidfutureappearancesofthiswarningbysettingthevalue
  42. ofthe'store-plaintext-passwords'optiontoeither'yes'or'no'in
  43. '/root/.subversion/servers'.
  44. -----------------------------------------------------------------------
  45. Storepasswordunencrypted(yes/no)?no
  46. Addingabc.txt
  47. Transmittingfiledata.
  48. Committedrevision5.
  49. [root@Svn-Servertmp]#svncofile:///byrd/svndata/linuxerdox/tmp/--username=byrd--password=admin
  50. svn:'/tmp'isalreadyaworkingcopyforadifferentURL
  51. [root@Svn-Servertmp]#ll
  52. total0
  53. -rw-r--r--.1rootroot0Mar1422:10abc.txt
  54. -rw-------.1rootroot0Feb1017:11yum.log

到此配置完成,记得要防火墙开启对应的端口,当然你可以临时关闭防火墙,THX.

广告内容

Linux配置安装svn服务端、客户端应用的例子 Linux配置安装svn服务端、客户端应用的例子 Linux配置安装svn服务端、客户端应用的例子

相关阅读

热门评论

木木老贼 木木老贼

互联网营销达人~

总篇数181

精选文章

RMAN中catalog和nocatalog区别介绍 小技巧:为Linux下的文件分配多个权限 zimbra8.5.1安装第三方签名ssl证书的步骤 解决mysql不能远程连接数据库方法 windows服务器mysql增量备份批处理数据库 mysql中slow query log慢日志查询分析 JavaScript跨域问题总结 Linux下负载均衡软件LVS配置(VS/DR)教程 mysql中权限参数说明 MYSQL(错误1053)无法正常启动

SEO最新算法