Search a lot of articles on the network, find either this mistake, that mistake. Time, the following article to test, simple to install.
The first part: the way of independent installation (not Apache):
1, yum install-y subversion-*
2, Mkdir–p/opt/svndata/repos
3, Svnadmin Create/opt/svndata/repos
"Error One:
Svnadmin:could not create top-level directory
Svnadmin:can ' t create directory '/opt/svn/repos ': No such file or directory
-----------------------------------------------------------------------------------------------
Solution: Create folder Error, Svndata written svdata to create a directory at the same level.
Find/-name xxx (XXX is the name of the package) can be found
--------------
vi mode, online search
"
X to delete the current character (click ESC to function) before inserting I
Press U in VI to undo one operation
U
Undo the action in the previous step
Ctrl+r restores the last action that was undone
DD Deletes that line
】
Part II:
The following modified svnserve.conf, the anon-access,auth-access,password-db,authz-db note removed (note that there is no space before, the same below), and now yum the latest SVN will automatically password-db , authz-db assigned to the AUTHZ,PASSWD file in this folder (comparison and other online information), Set realm =/opt/svndata/repos (this is your warehouse certification prompt), note: SVNSERVE.CONF,PASSWD, The Authz file cannot have spaces at the beginning of each line. "Notice, very much to note, my Authz inside is each line has the space, causes later link not to be on"
1. Directory Control file Authz (or called permission control file)
[Root@localhost conf]# VI Authz
Admin=sss//sss belongs to admin Group
[repos:/]//repos Coogan directory permissions
@admin = RW//@ indicates that the Group Admin group has read and write permissions
* = r//Other person has read access
The standard format is as follows: "Note that there are no spaces in each line, there are spaces I just can't link"
[Groups]
admin = SSS
[repos:/]
@admin = RW
* = R
2. Modify svnserve.conf
[Root@localhost conf]# VI svnserve.conf
[General]
Anon-access = None "Removes the previous annotation and cannot leave blank"
auth-access = Write
Password-db =/opt/svndata/repos/conf/passwd
Authz-db =/opt/svndata/repos/conf/authz
Realm =/opt/svndata/repos
4. Modify user password file passwd
[Root@localhost conf]# VI passwd
[Users]
sss= SSS
--------------------------Format:
[Users]
< user 1> = < password 1>
< user 2> = < password 2>
Note: x Here's the configuration file, in addition to the comment every line must top line, otherwise it will be an error.
x Note [repos1:/], this is the right to configure a warehouse,/to represent the root directory of the REPOS1 warehouse.
5. Account creation
Useradd SSS
passwd SSS (because we added an account for SVN just now) "Add the system user, directly enter the above two statements can be"
6. Note The Linux directory file access permissions. Because SVN set up a file warehouse, in the Liunx are users, user groups, other people, such as the rights control. Therefore, when you find that the visit is not normal, you should pay attention to here, or the first initiative to modify:
Chown sss:sss/svndata "Find that directory, modify the permissions can be"
Six. Start SVN
Svnserve-d-r/opt/svndata/repos/
-d means run in the background,-R indicates ...
Seven, check whether open
NETSTAT-ANTP |grep SVN
Close SVN killall svnserve
Test whether the link can be successful:
Native Test SVN Co svn://127.0.0.1/repos
Nine. Windows Connection SVN
1. Install Tortoisesvn-1.6.16.21511-win32-svn-1.6.17.msi on Windows.
2. Address: svn://Your SVN server IP or domain/repos1
3. Enter your password for the account you have configured.
Start SVN
Svnserve-d-r/opt/svndata/repos/
---------------------------------------------------
Reference article: http://blog.csdn.net/ichsonx/article/details/6594325
The previous installation of the compiler to take my yum way is better, not easy to make mistakes.
Uninstalling: Yum-y Remove Subversion