标签:style ar os sp on 代码 bs ad line
安装svn服务:
yum -y install svn mkdir /home/svn
创建svn版本库:
<project> 版本库项目名称
<username> 用户名
<password> 密码
以下代码为创建版本库并添加一个用户的脚本
cd ~ mkdir -p ./temp/trunk mkdir -p ./temp/branches mkdir -p ./temp/tags svnadmin create /home/svn/<project> cat > /home/svn/<project>/conf/authz <<EOF [aliases] [groups] [/] <username> = rw EOF cat > /home/svn/<project>/conf/passwd <<EOF [users] <username> = <password> EOF cat > /home/svn/<project>/conf/svnserve.conf << EOF [general] anon-access = none auth-access = write password-db = passwd authz-db = authz [sasl] EOF svn import temp svn://127.0.0.1/<project> -m "info"
启动:
svnserve -d -r /home/svn
启动自动运行:
echo "svnserve -d -r /home/svn" >> /etc/rc.local
标签:style ar os sp on 代码 bs ad line
原文地址:http://my.oschina.net/jean/blog/340680