Ubuntu Install and configure SVN

Source: Internet
Author: User
Tags svn client tortoisesvn

Ubuntu version is 1204server
Install SVN

apt-get install subversion

Build SVN repository

mkdir -p /home/.svn/test   #建立仓库目录mkdir -p /home/.svn/test_2svnadmin create /home/.svn#创建仓库,执行完毕后test目录有仓库相关文件svnadmin create /home/.svn

Configure and manage SVN

1) The configuration file for the warehouse$depot/conf/svnserve.confanon-access = None#匿名用户的权限设置, can be read,write, and noneauth-access = Write#认证用户的权限设置, can be Read,write,nonePassword-db = passwd#密码数据库的路径Authz-db = Authz#认证规则库的路径2) Configure password$depot/conf/passwd [Users]allen =111111    #allen (username) = 111111 (password)3) Configure authentication Rules$depot/conf/authz[groups] harry_and_sally = harry,sally#组名 = user 1, user 2[/]#启动时从/home/.svn/test starts, test asks the root directory. [/] Set the test directory to the root directoryHarry = RW#用户对根目录权限为rwSally = R#用户对根目录权限为r[test1:/]#启动时从/home/.svn Start@harry_and_sally = RW#用户组的用户权限都为rw

SVN startup, shutdown, access

启动:    svnserve -d -r /home/.svn/test #从test目录启动,对应[/].访问方式为:svn://**IP**/     svnserve -d -r /home/.svn/test1  #从.svn目录启动,对应[test1:/]。访问方式为:svn://**IP**/test1关闭:    killall svnserve##  netstat -at  可以查看svn是否启动 ##  如果需要svn开机启动  ,把启动命令加入到 /etc/rc.local  (开机启动脚本)##   

SVN Client
Install TortoiseSVN http://tortoisesvn.tigris.org/under Windows

Use of the SVN client reference TORTOISESVN basic use

Ubuntu Install and configure SVN

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.