SVN version management tool.
The SVN server operates in 2 ways: stand-alone servers and operate with Apache. Both ways have pros and cons, users can choose their own.
SVN stores version data in 2 ways: BDB (a Transaction-safe table type) and FSFS (a storage system that does not require a database). Because the BDB mode is likely to lock the data when the server is interrupted, it is safer to fsfs the way.
1. Environment
# Cat/etc/redhat-release
CentOS Release 6.3 (Final)
# getconf Long_bit
64
2. Install SVN
#yum-y Install Subversion
3. Configure SVN
3.1 Build version Coogan directory
# mkdir-p/DATA/SVN
3.2 Creating the SVN repository
# svnadmin Create/data/svn/test
2. Create a repository and specify a data storage mode of FSFS
#./svnadmin Create--fs-type fsfs/www/svn/repository/
3.3 Modifying a repository configuration file
# vim/data/svn/test/conf/svnserver.conf
each parameter function is described in the comments in the configuration file, here:
[general]
anon-access = none # makes unauthorized users inaccessible
auth-access = write # enable authorized users to have write permission
password-db = /opt/svndata/repos/conf/pwd.conf # indicates the password file path
authz-db = /opt/svndata/repos/conf/authz.conf # access Control file
realm = /opt/svndata/repos # authentication namespace, Subversion is displayed in the authentication prompt and is used as a keyword for credential caching.
4. Configure the user
# CAT/DATA/SVN/TEST/CONF/PASSWD | Grep-v ' ^# '
[Users]
user = password
5. Start SVN
# svnserver-d-R/DATA/SVN
6. Firewall on port 3690;
This article is from the "System operation and maintenance website Development" blog, please be sure to keep this source http://cgc888.blog.51cto.com/3989433/1688723
Linux Installation Deploy SVN server