首页 > 代码库 > Linux安装SVN服务器

Linux安装SVN服务器

“svn都快淘汰了”

 

#安装subversionyum -y install subversion#创建svn仓库基础路径mkdir /home/svn#创建svn仓库svnadmin create /home/svn/repos#配置开发者目录mkdir /home/svn/repos/dev#配置svncd /home/svn/repos#配置用户密码vi conf/passwd[users]king = kingdevp = devp#配置用户权限vi conf/authz[groups]admin = kingdevlp = devp[/]@admin = rw* =[repos:/]@admin = rw* = [repos:/dev]@admin = rw@devlp = rw*=#配置svn服务vi conf/svnserve.confanon-access = noneauth-access = writepassword-db = /home/svn/repos/conf/passwdauthz-db = /home/svn/repos/conf/authzrealm = repos#关闭ipatbles或者手动为svn添加策略service iptables stop#启动svn服务svnserve -d -r /home/svn

 

#添加repos进版本库svn import repos/ /home/svn/repos -m "repos-path"#检出repos版本svn co svn://192.168.11.105/repos

 

Linux安装SVN服务器