|
1
2
3
4
5
6
7
8
|
$ svnserve --version
svnserve, version 1.6.18 (r1303927)
compiled Aug 4 2012, 19:46:53
Copyright (C) 2000-2009 CollabNet.
Subversion is
open
source
software, see http:
//subversion
.apache.org/
This product includes software developed by CollabNet (http:
//www
.Collab.Net/).
The following repository back-end (FS) modules are available:
* fs_fs : Module
for
working with a plain
file
(FSFS) repository.
|
|
1
|
$
sudo
mkdir
-p
/data/svn/repositories/local
|
|
1
|
$
sudo
svnadmin create
/data/svn/repositories/local
|
|
1
2
3
4
5
6
7
8
9
|
$
cd
/data/svn/repositories/local/
$ ll
total 16
-rw-r--r-- 1 root wheel 229 12 14 01:33 README.txt
drwxr-xr-x 5 root wheel 170 12 14 01:41 conf
drwxr-sr-x 16 root wheel 544 12 14 02:07 db
-r--r--r-- 1 root wheel 2 12 14 01:33
format
drwxr-xr-x 11 root wheel 374 12 14 01:33 hooks
drwxr-xr-x 4 root wheel 136 12 14 01:33 locks
|
|
1
2
3
4
5
6
|
[general]
anon-access = none
auth-access = write
password-db =
passwd
authz-db = authz
[sasl]
|
|
1
2
|
administrator = admin@Svnserver
xiayong = xiayong
|
|
1
2
3
4
5
6
7
8
9
|
[
groups
]
admin = administrator
user = xiayong
[/]
@admin = rw
@user = r
[
local
:/]
@admin = rw
@user = r
|
|
1
|
$
sudo
svnserve -d -r
/data/svn/repositories
--log-
file
=
/var/log/svn
.log
|
|
1
2
3
4
5
6
7
|
$ telnet localhost 3690
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is
'^]'
.
( success ( 2 2 ( ) ( edit-pipeline svndiff1 absent-entries commit-revprops depth log-revprops partial-replay ) ) )
|
|
1
2
3
4
|
$
sudo
mkdir
-p
/tmp/svntemp
$
cd
/tmp/svntemp/
$
sudo
mkdir
tags trunk branches
$
|
|
1
2
3
4
5
6
7
8
9
10
|
$
sudo
svn
import
-m
'init repo'
/tmp/svntemp/
svn:
//localhost/local
Authentication realm: <svn:
//localhost
:3690> af662c40-23bf-43f4-93fa-8bf7eff40771
Password
for
'root'
:
Authentication realm: <svn:
//localhost
:3690> af662c40-23bf-43f4-93fa-8bf7eff40771
Username: administrator
Password
for
'administrator'
:
Adding
/tmp/svntemp/trunk
Adding
/tmp/svntemp/branches
Adding
/tmp/svntemp/tags
Committed revision 1.
|
|
1
2
3
4
5
6
|
[
local
:
/branches
]
@user = rw
[
local
:
/tags
]
@user = r
[
local
:
/trunk
]
@user = rw
|
|
1
2
|
# to run the svnserver on the automatically.
svnserve -d -r
/data/svn/repositories
|
四、遇到的一些问题
1、mac android studio Server SSL certificate rejected
打开终端,输入命令 svn co https://XXXX
如:svn co https://192.136.1.70:433
|
1
2
3
4
5
6
7
8
9
10
11
12
|
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
Certificate information:
- Hostname: APACHE
- Valid: from Thu,
25
Jul
2013
04
:
29
:
38
GMT until Mon,
14
Jan
2019
04
:
29
:
38
GMT
- Issuer: NBnet, NewBnet, Guangzhou, Guangdong, CN
- Fingerprint: ec:5b:
69
:b7:ac:
94
:
73
:b6:
23
:
59
:
27
:
28
:
78
:
28
:5b:3a:
62
:
27
:d5:5c
(R)eject, accept (t)emporarily or accept (p)ermanently? p
svn: E175002: Unable to connect to a repository at URL
'https://192.136.1.70:433'
svn: E175002: OPTIONS of
'https://192.136.1.70:433'
: Could not read status line: connection was closed by server (https://
192.136
.
1.70
)
|
在终端确认输入:p
这样就可以连接svn了

本文详细介绍了如何在Mac系统上搭建个人SVN服务器的过程,包括安装、配置及基本操作,适合需要在本地环境中进行版本控制的开发者。

2238

被折叠的 条评论
为什么被折叠?



