SVN Server Build- up
----- based on Red Hat Enterprise Linux Server release 6.4 (Santiago) ; Subversion1.6.11
Introduction: svn is a version management system, formerly known as CVS, are open source software. In order to improve efficiency, many people cooperate to open code, the project code is stored on the server, Subversion manages data that changes over time, and these data is stored in the central repository ( repository), this archive really wants a common file server, However, he will record every change in the file, and can manage any type of file, including the program source code. matching with the Windows client is TortoiseSvn.
the 6.4 version comes with a yum source containing subversion, so the direct yum is installed and resolves the dependency problem. Yum install-y subversion.
after installation, verify that the machine is installed successfully. svnserve–version
you can use Netstat-nat to see if the default TCP3690 port is being monitored, and thesvn default port is 3690
then we'll create the SVN repository, first set up a directory mkdir-p/opt/svndata
Create a new repository in the directory just below, using the command svnadmin create/opt/svndata/repos repos The name of the repository
then the most important configuration work, and then using the svnadmin Create command, will automatically generate the necessary configuration file under repos//conf/authz;passwd ;svnserve.conf
then add svn user, add user name and password in passwd, format Username=password
For example user1=passwd1 user2=passwd2
-
authz inside [groups] set up Group
Admin = User1
[/] root permission settings ( is " " Svndata " this folder )
user1 = rw user 1 permissions are: writable
User2 = r user 2 permissions are: Readable, non-writable
@admin = RW Span style= "Font-family:dejavu Sans" > set group permissions
[Svndata:/repos] Set the root directory " repos"
User1 = rw
User2 = r
... And so you can set permissions for each folder
-
svnserve.conf
" general"
Anon-access = None ( Do not allow anonymous users to operate )
Auth-access = Write ( Span style= "Font-family:dejavu Sans" > authorized user has Write permission )
password-db authz-db default on line, without modification, default user modification and Access Policy modification profile is passwd Authz
Finally, we can start svn, svnserve-d-r/opt/svndata/ .
-D indicates background run -R to develop root directory is /opt/svndata
Stop svn service:Ps-aux | grep svn then uses kill-9 + process number to kill the process
Linux under SVN server (not finished, to be consolidated MyEclipse)