Created
August 3, 2010 01:24
-
-
Save huacnlee/505677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SVN 服务器创建简单步骤 | |
$ mkdir svn | |
$ cd svn | |
$ svnadmin create simple | |
$ sudo svnserve -d -r ~/svn/ | |
$ cd ~ | |
$ svn co svn://127.0.0.1/simple | |
如果要设置权限,那么: | |
$ sudo vi ~/svn/simple/conf/svnserve.conf | |
改为: | |
[general] | |
anon-access = none | |
password-db = passwd | |
并编辑 ~/svn/simple/conf/passwd 文件 | |
$ sudo vi ~/svn/simple/conf/passwd | |
改为如: | |
[users] | |
user1 = 123123 (明文密码) | |
user2 = 123123 | |
$ svn co svn://127.0.0.1/simple --username user1 | |
关于 sudo svnserve -d -r ~/svn/ | |
-d 做为后台服务运行,要停止直接用 sudo killall svnserve | |
-r 表示将 ~/svn/ 作为根目 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment