读书人

mac 下配置svn服务

发布时间: 2012-10-26 10:30:58 作者: rapoo

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=3113
5.启动svnserve
svnserve -d -r /opt/svn/repos
结束服务可以用 killall -9 svnserve
svn地址:svn://localhost
注:很可能会遇到权限问题,可使用 sudo 命令sudo chflags -R nouchg /opt/svn/repos

sudo chown -R UserName /opt/svn/repos
sudo chmod -R 755 /opt/svn/repos

?

读书人网 >CVS SVN

热点推荐