Centos 6.4 Build SVN service

Source: Internet
Author: User

Subversion is an excellent version of the Control tool, its specific advantages and detailed introduction can refer to the encyclopedia,

[Email protected] ~]# iptables-f[[email protected] ~]# setenforce 0[[email protected] ~]# lsb_release-a #查看系统版本L SB Version:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64: Graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor ID:CentOSDescription:CentOS Release 6.5 (Fin AL) release:6.5codename:final

Modify local Yum Source

[[email protected] ~]# cd /etc/yum.repos.d/[[email protected] yum.repos.d]#  lsCentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Media.repo   centos-vault.repo[[email protected] yum.repos.d]# mv centos-base.repo  centos-base.repo.bak[[email protected] yum.repos.d]# mv centos-debuginfo.repo  centos-debuginfo.repo.bak[[email protected] yum.repos.d]# mv centos-vault.repo  centos-vault.repo.ak[[email protected] yum.repos.d]# mv centos-vault.repo.ak  centos-vault.repo.bak[[email protected] yum.repos.d]# vim centos-media.repobaseurl=file:// /media/centos/        file:///media/cdrom/         file:///media/cdrecorder/gpgcheck=1enabled=0 changed into:baseurl=file:///mnt/sr0         file:///media/cdrom/  &nbSp;     file:///media/cdrecorder/gpgcheck=0enabled=1 

Save exit with: Wq

[[email protected] yum.repos.d]# mkdir /mnt/sr0     #建立挂在源 [[email  protected] yum.repos.d]# mount /dev/cdrom /mnt/sr0          #挂在光盘 [[email protected] yum.repos.d]# yum -y install subversion          #安装svn服务端 [[email protected] yum.repos.d]# rpm  -ql subversion         #查看安装位置/etc/bash_completion.d/etc/ bash_completion.d/subversion/etc/rc.d/init.d/svnserve/etc/subversion/usr/bin/svn/usr/bin/svnadmin/usr/bin/ Svndumpfilter/usr/bin/svnlook ........ ........ Omit the part ....... ............... [[email protected] yum.repos.d]# ll /bin     #svn在bin目录下生成了几个二进制文件, Lrwxrwxrwx. 1 root root      4 8 Month    6  2015 awk -> gawklrwxrwxrwx. 1 roOt root      4 8 Month    7 2015 csh ->  tcshlrwxrwxrwx. 1 root root      8 8 Month     6 2015 dnsdomainname -> hostnamelrwxrwxrwx. 1 root root       8 8 Month    6 2015 domainname ->  Hostnamelrwxrwxrwx. 1 root root      2 8 Month    6  2015 ex -> vilrwxrwxrwx. 1 root root       3 8 Month    6 2015 gtar -> tarlrwxrwxrwx. 1 root  Root     41 8 Month    6 2015 iptables-xml -> / Etc/alternatives/bin-iptables-xml.x86_64lrwxrwxrwx. 1 root root     20  8 Month    6 2015 iptables-xml-1.4.7 -> /sbin/iptables-multilrwxrwxrwx. 1 root root      22 8 Month    6 2015 mail -> /etc/alternatives/ Maillrwxrwxrwx. 1 root root      8 8 Month    6  2015 nisdomainname -> hostnamelrwxrwxrwx. 1 root root       2 8 Month    6 2015 rvi -> vilrwxrwxrwx. 1  Root root      2 8 Month    6 2015 rview ->  vilrwxrwxrwx. 1 root root      4 8 Month    6  2015 sh -> bashlrwxrwxrwx. 1 root root     10  8 Month    7 2015 traceroute6 -> traceroutelrwxrwxrwx. 1 root  root   &Nbsp;  2 8 Month    6 2015 view -> vilrwxrwxrwx. 1  Root root      8 8 Month    6 2015 ypdomainname  -> hostname

Enter SVN--help to get help for SVN

[[Email protected] ~]# svn --help Usage: svn <subcommand> [options]  [Args] subversion  command-line client, version  1.6.11. Use the svn help <subcommand>   display Help information for subcommands. Use "svn --version" to view the program's version number and version library access module, or use "Svn --version --quiet" to view only the program's version number. Most subcommands can accept file or directory parameters and recursively handle the directory. If no parameters are specified, the default is to recursively handle the current directory (containing the current directory). Available subcommands:    add   blame  (Praise, annotate, ann)     cat   changelist  (CL)    checkout  (CO)    cleanup    commit  (CI)    copy  (CP)    delete  (del,  REMOVE,&NBSP;RM)    diff  (di)    export   help  (?,  h )    import   info   list  (LS)    lock    log   merge   mergeinfo   mkdir   move  (Mv, rename, ren)    propdel  (PDEL,&NBSP;PD)    propedit   (PEDIT,&NBSP;PE)    propget  (PGET,&NBSP;PG)    proplist  (plist, &NBSP;PL)    propset  (pset, ps)    resolve   resolved    revert   status  (stat, st)    switch  (SW)     unlock   update  (UP) subversion  is a version control tool. For more information, see  http://subversion.tigris.org/Creating an SVN version directory [[Email protected] ~]# mkdir -p  /var/svn/svnrepos to create a repository [[email protected] ~]# svnadmin create /var/svn/svnrepos/          generate several files under the/var/svn/svnrepos/#执行后会在 [[email protected] ~] # ll /var/svn/svnrepos/Total dosage  24drwxr-xr-x. 2 root root 4096 8 month     6 16:43 confdrwxr-sr-x. 6 roOt root 4096 8 month    6 16:43 db-r--r--r--.  1 root root     2 8 Month    6 16:43 formatdrwxr-xr-x. 2 root  Root 4096 8 Month    6 16:43 hooksdrwxr-xr-x. 2 root root  4096 8 month    6 16:43 locks-rw-r--r--.  1 root root  229  8 month    6 16:43 readme.txt View all files under the/var/svn/svnrepos/conf/directory [[email protected]  ~]# ll /var/svn/svnrepos/conf/Total dosage  12-rw-r--r--.  1 root root 1080  8 Moon    6 16:43 authz     #权限控制文件-rw-r--r--.  1 root  root  309 8 Month    6 16:43 passwd    # Account password file-rw-r--r--.  1 root root 2279 8 month    6 16:43  svnserve.conf     #svn服务配置文件 [[email protected] ~]# vim /var/svn/svnrepos/conf/passwd     #添加访问账号和密码 [ users]wlr=wlr     #用户名 = password [[email protected] ~]# vim /var/svn/svnrepos/ conf/authz     #授权wlr有读写权限 [/]wlr=rww=r[[email protected] ~]# vim /var/ svn/svnrepos/conf/svnserve.conf     #服务器配置  anon-access = read          #匿名用户可读写  auth-access = write     #授权用户可读  password-db = passwd     #使用哪个文件作为账号文件  authz-db = authz          #使用哪个文件作为权限文件  realm = My First  Repository changed to realm = /var/svn/svnrepos  #认证空间名, repository directory   Note: The above comments can not be left blank, otherwise it will be an error/var/svn/svnrepos/ conf/svnserve.conf:12: option expected  Enable SVN repository  [[email protected] ~]#  Svnserve -d -r /var/svn/svnrepos/ 

Client testing, installation here is not the description, you can Baidu a bit, has been the next

Install only, in the desktop blank right button, move the mouse to TortoiseSVN right shift

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/71/03/wKiom1XDJHexcdqvAAHI0MP6eRA480.jpg "title=" QQ picture 20150806170810.jpg "alt=" Wkiom1xdjhexcdqvaahi0mp6era480.jpg "/>

You can click on SVN Checkout to appear

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/FF/wKioL1XDJ5SDMRqmAAGi-HiT0hU455.jpg "title=" QQ picture 20150806171202.png "alt=" Wkiol1xdj5sdmrqmaagi-hit0hu455.jpg "/>

Click OK to enter the user WLR password added to the file WLR

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/00/wKioL1XDKX_zs2kRAAFuf46SXog108.jpg "title=" QQ picture 20150806172242.png "alt=" Wkiol1xdkx_zs2kraafuf46sxog108.jpg "/>

Click OK, the link is successful, you can try to upload it.



This article is from the "stand in the Cloud" blog, be sure to keep this source http://9827789.blog.51cto.com/9817789/1682332

Centos 6.4 Build SVN service

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.