笔记仅当个人使用
1、建个svn的根目录 (因为项目不只一个)
mkdir -p /home/svnadmin/svndata/
2、建立一个仓库
mkdir -p /home/svnadmin/svndata/repos1
svnadmin create /home/svnadmin/svndata/repos1 # 创建这个仓库
3、导入数据
svn import ./svntest file:///home/svnadmin/svndata/repos1 -m "Initial repository test"
Adding svntest/test.php
Committed revision 1.
4、修改配置文件
cd /home/svnadmin/svndata/repos1/conf
vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
5、修改目录控制文件authz
vi authz
[groups]
admin= svnadmin
[repos:/]
@admin = rw
* = r
6、修改用户密码文件passwd
vi passwd
[users]
svnadmin= 123321
运维-周索 2015-7-8 17:31:01
svnserve -d --listen-port 36900 -r /usr/local/svn/
mkdir -p /home/svnadmin/svndata/
2、建立一个仓库
mkdir -p /home/svnadmin/svndata/repos1
svnadmin create /home/svnadmin/svndata/repos1 # 创建这个仓库
3、导入数据
svn import ./svntest file:///home/svnadmin/svndata/repos1 -m "Initial repository test"
Adding svntest/test.php
Committed revision 1.
4、修改配置文件
cd /home/svnadmin/svndata/repos1/conf
vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
5、修改目录控制文件authz
vi authz
[groups]
admin= svnadmin
[repos:/]
@admin = rw
* = r
6、修改用户密码文件passwd
vi passwd
[users]
svnadmin= 123321
运维-周索 2015-7-8 17:31:01
svnserve -d --listen-port 36900 -r /usr/local/svn/