Environment: CentOS x86_64
Description: Use Daemon's way to run SVN without using Apache
First to: http://subversion.tigris.org/Download the latest Subversion source code
I'm down: http://subversion.tigris.org/downloads/subversion-1.6.2.tar.bz2.
Decompression: Tar jxvf subversion-1.6.2.tar.bz2
CD subversion-1.6.2
SVN Co http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x Apr
SVN Co http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x apr-util
Download: Wget-c http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
Decompression sqlite-amalgamation-3.6.13.tar.gz
and copy the sqlite3.c into the (non-existent path to build it yourself):
CP sqlite-3.6.13/sqlite3.c./subversion-1.6.2/sqlite-amalgamation/
./configure–prefix=/usr/local/subversion–with-ssl–with-zlib=/usr/local/zlib–enable-maintainer-mode
Make && make install
Compile and install!
Simple configuration
First start subversion (create your own SVN home directory, I am mkdir-p/www/svnroot):
/usr/local/subversion/bin/svnserve-d-r/www/svnroot
(have not understood to see/USR/LOCAL/SUBVERSION/BIN/SVNSERVE–HELP)
Cd/www/svnroot
Create a directory:
/usr/local/subversion/bin/svnadmin Create Hao32
To modify a configuration file:
CD./hao32/conf
LS you will find three files (respectively, permissions, passwords, configuration):
Authz passwd svnserve.conf
Paste out three files for your reference:
Authz
[Aliases]
[Groups]
dev = User1,user2 #两个用户, in the dev group you can add multiple groups
[hao32:/] #这里是目录名字就是刚才svnadmin Create Hao32
@dev = RW #dev组赋予读写权限
passwd
[Users]
User1 = 123456
User2 = 456789
Svnserve.conf
[General]
Anon-access = none # does not allow anonymous users
auth-access = Write # gives writable
password-db = passwd # passwd authentication method, is to use the above passwd configuration file
authz-db = Authz # Use this authz permission file
[SASL]
Check out the local test! Good luck!
CentOS Quick Build Subversion server