Build linux svn and use linuxsvn

Source: Internet
Author: User

Build linux svn and use linuxsvn
1. install # yum install subversion2. view the version # svnserve -- version3. create the SVN library # mkdir-p/opt/svn/repos # svnadmin create/opt/svn/repos to execute the above after the command, multiple files are automatically created under repos, including conf, db, format, hooks, locks, and README.txt. 4. Enter the conf folder generated above and configure the following files: authz, passwd, and svnserve. conf.
Among them, authz is the permission control, which users can access which directories, and passwd sets the user and password, svnserve is used to set svn-related operations 4.1 first set passwd [users] # harry = harryssecret
# Sally = sallyssecret
Hello = 123
Username = PASSWORD 4.2 and then set the permission authz

[/] Hello = rw means that the hello user has read and write permissions on all directories. Of course, you can also limit
[Groups]
Develop = pan, hellodesign = test [/trunk] @ develop = rw * = Set Group Permissions
4.3 Finally, set snvserv. conf anon-access = none # Make unauthorized users unable to access auth-access = write # grant authorized users the write permission
Password-db = password
Authz-db = authz # access control file
Realm =/opt/svn/repos # authenticate the namespace. The subversion is displayed in the authentication prompt and used as the key word of the Credential cache. 5. The link starts svn: svnserve-d-T-r/opt/svn/repos if svn is already running, run it on another port.
Svnserve-d-r/opt/svn/repos -- listen-port 3391 check out svn co file: // opt/svn/repos // home/test1/Export (none. svn) svn export svn: // 192.168.1.198: 3391/home/test4 import file svn import/opt/lampp/htdocs/zhijianew/config/svn: // 192.168.1.198: 3391/trunk-m "new" view svn process ps aux | grep svnserve check whether svn rpm-qa subversion is installed uninstall yum remove subversion to add file svn add aaa. php submits the svn ci-m "comment" aaa. php Update file svn up delete file svn delete aaa. comparison between php-m "comment" and basic files: svn diff aaa. php: view the svn log aaa. php

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.