The installation steps are as follows:
1. Yum Install Subversion
Yum-y Install httpd
Yum Install MOD_DAV_SVN
2. Enter RPM-QL subversion to view the installation location, such as: we know that SVN generated several binaries in the bin directory. Enter SVN--help to see how SVN is used, such as.
3. Create SVN repository directory mkdir-p/var/svn/svnrepos
4. Create the repository svnadmin create/var/svn/svnrepos after executing this command, the following files are generated in the/var/svn/svnrepos directory
5. Enter the Conf directory (the SVN repository configuration file) Authz file is the rights control file passwd is the account password file svnserve.conf SVN service profile
6, set the account password VI passwd in the [users] block add users and passwords, format: Account number = password, such as Dan=dan
7, set permissions VI authz Add the following code at the end: [/]dan=rww=r means that the repository root directory Dan has read and write permissions, W only Read permissions.
8, modify svnserve.conf file VI svnserve.conf Open a few comments: Anon-access = read #匿名用户可读auth-access = write #授权用户可写password-db = passwd # Which file to use as account file Authz-db = Authz #使用哪个文件作为权限文件realm =/var/svn/svnrepos # authentication space name, repository directory
9. Start SVN repository svnserve-d-r/var/svn/svnrepos
Test ServerSVN Co SVN://IP address
10, test a new test folder on Windows, under the folder right-click SVN Checkout (To install TORTOISESVN): Fill in the SVN address, such as: Enter a password, such as:
On Linux above checkout to directory SVN Co SVN://IP address
Finally, remember to modify the port:
Vim/etc/sysconfig/iptables
Service iptables Restart restart firewall
SVN deployment under Linux