CentOS 6.3 64-bit SVN Server Setup & amp; Win7 32-bit SVN Client Connection

Source: Internet
Author: User
Tags svn client

CentOS 6.3 64-bit SVN Server Setup & Win7 32-bit SVN Client Connection

Objective: To build a 64-bit SVN server in CentOS 6.3 and connect the Win7 32-bit SVN client.

The installation procedure is as follows:
1. yum install subversion (use yum to automatically install SVN)

2. Enter rpm-ql subversion to view the installation location, for example:

We know that svn has generated several binary files in the bin directory.
Enter svn -- help to view how to use svn, as shown in.
[Root @ master conf] # svn -- version

3. Create the svn version library directory
Mkdir-p/var/svn/svnrepos

4. Create a version Library
Svnadmin create/var/svn/svnrepos
After this command is executed, the following files are generated in the/var/svn/svnrepos directory:

5. Go to the conf directory (the svn version library configuration file)
The authz file is a permission control file.
Passwd is the account password file
Svnserve. conf SVN service configuration file

6. Set the account password
Vi passwd
Add the user and password to the [users] block. Format: account = password, for example, dan = dan

7. Set permissions
Vi authz
Add the following code at the end:
[/]
Dan = rw
Dan, the root directory of the version Library, has read and write permissions on it.

8. Modify the svnserve. conf file.
Vi svnserve. conf
Open the following comments:
Anon-access = none # unauthorized users cannot access
Auth-access = write # authorized users can write
Password-db = passwd # Which file is used as the account file
Authz-db = authz # Which file is used as the permission File
Realm =/var/svn/svnrepos # Name of the authentication space, directory of the version Library
There must be no spaces on the left.

9. Start the svn version Library
Svnserve-d-r/var/svn/svnrepos
Service svnserve start
Service svnserve restart

Service svnserve start stop

-------------------------------------- Split line --------------------------------------

Subversion configuration instances in Linux

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

Build SVN server with online storage

-------------------------------------- Split line --------------------------------------

10. After the installation and configuration are complete, the svnserve service is added to the Automatic startup process of the system, but it is not enabled yet. Therefore, the service cannot be automatically started with the system. To ensure security, we need to modify the SVN service port and the directory of the custom version library. Therefore, you must modify the following files.

Vi/etc/rc. d/init. d/svnserve

Find the following content

Pidfile =$ {PIDFILE-/var/run/svnserve. pid}
Lockfile =$ {LOCKFILE-/var/lock/subsys/svnserve}
Args = "-- daemon -- pid-file =$ {pidfile} $ OPTIONS"

Change

Pidfile =$ {PIDFILE-/var/run/svnserve. pid}
Lockfile =$ {LOCKFILE-/var/lock/subsys/svnserve}
Logfile =/var/log/svnserve. log
Args = "-- daemon -- root/storage/repos -- listen-port 621 -- pid-file =$ {pidfile} -- log-file =$ {logfile} $ OPTIONS"

-- Root is the directory of the version Library
-- Listen-port is the SVN service port number.
-- Log-file: SVN log file

After the modification is complete, use the following command to automatically follow the system startup function for activation.

Chkconfig svnserve on

Restart the Linux system to enable the svn server.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

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.