CentOS 7 installation SVN

SVN Profile

SVN stands for Subversion, namely version control system. It is the most popular version control system open source. As an open source version control system, Subversion manages data changes over time. The data is placed in a central repository (Repository) in. The archive is much like an ordinary file server, but it remembers every change in the file. So that you can restore files to change the history of the old version, or browse files. Subversion is a general purpose system can be used to manage any type of file, including program source.

SVN Client

SVN client / server architecture, various versions of the items are stored on the server, application developers first obtain the latest version of a project from the server and copy it to the machine, and then on this basis, each developers are able to conduct independent development work in their own client, and you can always submit new code to the server. Of course, you can get the latest code on the server by updating operations to maintain consistency with the version used by other developers.
SVN client there are two types, one is a Web-based WebSVN, etc., and the other is Tortoise SVN as the representative of the client software. The former needs the support of a Web server, which requires the user to install the client locally, both come in free and open source software for use. SVN version of the data is also stored in two ways: BDB (one kind of transaction-safe table types) and FSFS (which does not require storage system database). BDB way because when the server is interrupted, it is possible to lock the data, so it is a little more secure way FSFS.

SVN version edits

Subversion use "even / odd" edition mode. Even numbered edition decimal point (1.0, 1.2, etc.) are considered stable edition. This edition will only change the correction of the problem, not add new features, and users will expect the software to use no problem. On the contrary, the odd-numbered edition decimal point (1.1, 1.3, etc.) is to develop (development) version. In this version will add new features, they tend to change with rapid change, and there may be such that the defect or problem data loss. If the stability and preservation of data is important to you, then you should use the even-numbered edition. Only if it has an important function and must have the time and you are willing to take risks, use only the odd numbered edition.

installation steps

1.yum command to install

yum install subversion -y

2. Create a repository directory

(This directory only provide storage location for the back to create a repository)

mkdir /var/svn/svnrepos

3. Create svn repository

svnadmin create / var / svn / svnrepos / java #java repository name, customizable
cd / var / svn / svnrepos / java

4. Configuration changes

cd / var / svn / svnrepos / the Java / conf
authz: responsible for account management privileges, control whether the account read and write permissions
passwd: responsible for account and password of the user list management
svnserve.conf: svn server configuration file

Authz modify the file information, as follows:

authz vi
zhangsan = rw
rw representation given access to this account can read and write, note that [] slash, backslash must be some tutorials that need to add the repository name in parentheses, I would recommend this to write directly bigger, write allow access permissions to avoid some mistakes

Modify the passwd file information

psswd come
Zhangsan = 123456

Modify svnserve.conf

vim svnserve.conf
contents of the file are commented out, we just need to get rid of four pre-specified content to comment, as follows:

CentOS 7 installation SVN

5. Start SVN service

svnserve -d -r / var / svn / svnrepos
ps -aux | grep svn

CentOS 7 installation SVN

6. Client Access address

svn: // ip address: 3690 / xxxx

Guess you like

Origin blog.51cto.com/13760351/2480964