I. Installing the YUM installation under CentOS
install subversion
To see if the installation was successful:
--version
View installation content and location
RPM-QL Subversion
Two. Configure the SVN repository directory to create
mkdir /home/svncd /home/svn
New repository: Testcode
Svnadmin Create/data/svn/testcode
Note: After execution, the file description in the/data/svn/testcode directory
README.txt documentation for the repository
Conf profile folder (the folders with the most subsequent actions)
DB SVN data File folder
Format version number of the current repository
Hooks SVN's Hooks script folder
Locks svn file Lock related folders
Testcode Library Add users, assign permissions
A. Configuring SVN
Vim/data/svn/testcode/conf/svnserve.conf
Anon-access=none #去除文件前的注释, change read to None to prevent anonymous access
Auth-access=write #去除文件前的注释
PASSWORD-DB=PASSWD #去除文件前的注释
Authz-db = Authz #去除文件前的注释, access rights configuration, very important, do not open, group permissions do not take effect
B. Adding access to Testcode users
vim/data/svn/testcode/conf/passwd
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
albert=123456
findyou=123456
abc=123456
love=123456
Note: Four + users added
C. Setting the added user rights
Vim/data/svn/testcode/conf/authz
[Groups]
G_qa=albert,findyou
G_read=abc
[testcode:/] #[< version library name >:< path;]
@g_qa =rw #< User Group > = < permissions >, the first way
@g_read =r #< User Name > = < permissions >, the second way
Love=r
*= #* = < permissions;, the Third Way, * for any user, this is to prohibit anonymous user access
Note: albert,findyou readable writable, ABC, love readable, other inaccessible
D. Firewall Open SVN port pass
Iptables-a input-p TCP--dport 3690-j ACCEPT
Start SVN service
-d -r /home/svn
Three. SVN Client connection
SVN Client Access
Svn://ip/testcode
Installing TORTOISESVN connections under Windows Svn://192.168.1.254/59wang
CentOS Summary Linux under SVN installation and use