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