The independent SVN server is not installed and used in combination with Apache. HTTP protocol is not used to connect to the independent SVN server. This is a quick SVN server configuration method. I. Download tool 1.subversion-1.6.17.tar.gz2.subversion-deps-1.6.17.tar.gz, both of which must be downloaded. Otherwise, the first package will be prompted during compilation.
The independent SVN server is not installed and used in combination with Apache. HTTP protocol is not used to connect to the independent SVN server. This is a quick SVN server configuration method.
I. Download Tool
1.SuBversion-1.6.17.tar.gz
2.subversion-deps-1.6.17.tar.gz
Both of them must be downloaded. Otherwise, when the first package is downloaded separately, the system prompts that the module is missing.
Download these two packagesExtractAnd then decompress the package to the same directory.
II. Unzip and install
1. Decompress two packages:
Tar-xzvf subversion-1.6.17.tar.gz
Tar-xzvf subversion-deps-1.6.17.tar.gz
2. Compile and install
./Configure -- prefix =/svn or./configure -- prefix =/svn -- without-berkeley-db -- with-zlib
I am using the secondCommandAs for the differences, I did not query details.
Make
Make install
3. Check whether the installation is successful.
/Svn/bin/svnserve -- version: If the SVN version is displayed, the installation is successful.
3. Add the bin directory of svn to the Environment Variable
PATH = $ PATH:/svn/bin
4. Create a repository
1.Mkdir-P/svndata/repos1 (with the P Parameter added, it is automatically created if there is no parent directory)
Note:/svndata is the root directory of all repositories, and repos1 is one of them.
2. svnadmin create/svndata/repos1 (Here we use SVN to create repos1 as a repository. A series of configuration files for the repos1 repository will be generated in the repos1 folder)
5. Configure Repository
1. Enter/svndata/repos1/conf (multiple configuration files will be found, 1)
2. Modify svnserve. conf
[Root @ localhost conf] # vi svnserve. conf
[General]
Anon-access = none
Auth-access =Write
Password-db =Passwd
Authz-db = authz
3. Directory control file authz (or permission control file)
[Root @ localhost conf] # vi authz
[Groups]
Admin = sss
[Repos1:/]
@ Admin = rw
# * = R
------------------------- Format:
[Groups]
<用户组名> = <用户1> , <用户2>
[ <版本库> :/Project/directory]
@ <用户组名> = <权限>
<用户名> = <权限> The box number can be written in multiple ways:
/, Indicating the root directory and the following. The root directory is specified when svnserve is started.IdC.com we specify/opt/svndata. In this way,/sets permissions for all version libraries.
Repos1:/, indicating to set permissions for Version 1
Repos2:/occi, indicating to set permissions for the occi project in version library 2
Repos2:/occi/aaa, which indicates that the permission owner can be a user group, user, or * For the aaa directory of the occi project in version 2. Add @, * Indicates all users. The permission can be w, r, wr, or null. If it is null, no permission is granted.
4. Modify the User Password File passwd
[Root @ localhost conf] # vi passwd
[Users]
Sss = sss
-------------------------- Format:
[Users]
<用户1> = <密码1>
<用户2> = <密码2>
Note: × in the configuration file, each line except the comment must be the top line; otherwise, an error is reported.
× Note [repos1:/]. Here is the permission to configure a repository./indicates the root directory of the Repository repos1.
5. Create an account
UseraDdSss
Passwd sss (because we just added an account for SVN)
6. Pay attention to the LINUX directory file access permission. Because the file warehouse created by SVN has permission Control for users, user groups, and others in LIUNX. Therefore, you must pay attention to this when you find that the access is abnormal, or manually modify it:
ChownSss: sss/svndata
Sat. Start SVN
1. [root @ localhost www] # svnserve-d-r/svndata
Note: Here is/svndata, not/svndata/repos1. This is the command that SVN uses to make the root directory of all repositories take effect, not a specific repository. Note.
7. Open the SVN port, which is generally 3690. During my testing, the entire firewall was shut down for convenience. Hey.
8. Connect to SVN in Windows
1. Install TortoiseSVN-1.6.16.21511-win32-svn-1.6.17.msi on Windows.
2. Address: svn: // your SVN Server IP address or domain name/repos1
3. enter your account password.