mac 上配置svn服务
刚接手mac,闲来没事从网上查了下资料小配一下。
1、创建svn仓库:
创建一个保存数据的目录,我用的是其它网友的目录 /opt/svn/repos
? ????sudo su (然后输入密码)
mkdir /opt
mkdir /opt/svn
mkdir /opt/svn/repos
即创建了目录/opt/svn/repos/
进入到仓库配置目录 cd /opt/svn/repos/conf
2、编辑配置文件 vi svnserve.conf 取消下列行的注释
anon-access = read
auth-access = read
password-db = passwd (密码配置的保存文件)
auth-db = authz (认证配置的保存文件)
### This file is an example password file for svnserve.### Its format is similar to that of svnserve.conf. As shown in the### example below it contains one section labelled [users].### The name and password for each user follow, one account per line.[users]# harry = harryssecret# sally = sallyssecret#username = passwordhilary=31135.启动svnserve:
sudo chown -R UserName /opt/svn/repos
sudo chmod -R 755 /opt/svn/repos
?