1、查看是否安装
svn --version安装了卸载
sudo apt-get remove --purge subversion2、安装
sudo apt-get update sudo apt-get install subversion3、查看版本
#svn版本 svn --version #svn server版本 svnserve --version4、创建仓库
sudo mkdir -p /home/project sudo svnadmin create /home/project修改conf目录下的三个文件,authz;passwd;svnserve.conf 1、svnserve.conf仓库主配置文件
[general] #匿名用户不可读,选项值none,read和write anon-access = none #权限用户可写 auth-access = write #密码文件为passwd password-db = passwd #权限文件为authz authz-db = authz2、passwd是密码文件,当前仓库下的所有用户都记录在这里
[users] # harry = harryssecret # sally = sallyssecret admin = admin3、authz是权限文件,用于为passwd中的用户配置权限
[groups] #在这里创建权限组并指定组内用户,中间用,分割 # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe admin = zhangcy,liuzz,admin user = admin,maym,lizh,dongyan #为权限组分配权限 [/project] @admin = rw @user = rw * =1、启动
svnserve -d -r /home/project2、查看svnserve是否运行
ps aux | grep svnserve3、停止服务器
killall svnserve ps aux | grep svnserve