How to Build the SVN service and use SVN on the client in Linux

Source: Internet
Author: User

How to Build the SVN service and use SVN on the client in Linux

The software required to build the svn service in Linux is called subversion, which can be installed through yum,

The first thing after installing the software is to create a repository directory.

[Root @ server1 ~] # Mkdir/svn

Use the svn built-in command to create a repository

[Root @ server1 ~] # Svnadmin create/svn

Go to the repository and you will see that some directories and files are generated under this directory.

Other files are ignored for the moment. You only need to edit the following files.

Edit the main configuration file svnserve. conf and modify the following items as follows:

[General]

Anon-access = none # cancel Anonymous access

Auth-access = write # authorize the user to have the write permission

Password-db = passwd # specify the user configuration file, which will be used later

Authz-db = authz # specify the permission configuration file, which will be used later

Edit the passwd file, create the svn client user and password, one line at a time, two users are created here

Edit the authz file and specify the SVN repository directory. [/] indicates the root directory and the permissions of each user. It is readable and writable.

Start the SVN service.-d indicates that the svn service is running in the background.-r specifies the svn directory, and then runs the netstat check port. The default listening port is port 3690.

To use the SVN service in Windows, you need to download a TortoiseSVN client software, install the software, create a working directory on the local computer, right-click the Directory and select checkout, checkout is to download files from the SVN server to the local working directory.

In the dialog box, enter the address of the SVN server and the directory where the file is to be stored. Then, click OK. Then, the user name and password are required. Enter the information set in passwd.

After successful logon, You can edit or create a file in the working directory. After the operation is complete, right-click the Directory and choose check commit to submit. This operation is uploaded to the SVN server.

Switch to Linux and use the client for testing. Run the Linux SVN command to perform the checkout operation. After logging on, you can see that the file created on Windows has appeared.

Svn checkout svn: // 192.168.36.100/svnwork/-- username = tanglu -- password = 123456789

Create a file in Linux and submit it to SVN

[Root @ server1 svnwork] # svn add linux.txt # Use add to add new files

A linux.txt

[Root @ server1 svnwork] # svn commit-m "linux test" # submit

Adding linux.txt

Transmitting file data.

Committed revision 2. # the version number has changed.

Go back to Windows and check the version updates. You can also view the changes to each file and the changes that occur before and after the file through show log, all basic SVN operations have been demonstrated!

Set up SVN server SVN in Ubuntu 14.04 ://

CentOS 6.2 SVN setup (YUM installation)

Deploy Apache + SVN in CentOS 6.5

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build SVN service and migration method on Ubuntu Server

Subversion (SVN) Details: click here
Subversion (SVN): click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.