Subversion Installation notes

Source: Internet
Author: User
To make my spare time professional, I used the PS3 in my house as the svn server for a long time. Article It has been misleading for a long time, and a deposit is kept.

If ora core 6 is installed with the server components, SVN should be available. If you are not sure:
$ Rpm-Q Subversion

In this case, you 'd better add a svn-specific user first:
$ Useradd svnroot
$ Passwd svnroot

Switch to the svnroot user, under the user directory
$ Svnadmin create./Repo

Switch to root and change the directory access permission
$ Chown-r svnroot: Daemon/Your/repo/path

This will create a database with a lot more files, ls to confirm:
$ Ls Repo
Conf/Dav/DB/format hooks/Locks/readme.txt

We don't need Apache, so we need to further configure the conf/svnserve. conf file. We need to set the permission and permission file. This can be referred to here in detail.
Then you need to compile the authz permission file and passwd password file, which is also a reference manual. Never trust some online documents, but it will make you more complicated.

Of course, your service will not be enabled by default. The official document says that it can be enabled in inetd mode, but I didn't succeed, so it was started in daemon mode used by people on earth.
Svnserve-d-r/home/svnroot/Repo

To confirm whether the operation is successful, Telnet yourserverip 3690 on your client.
(Success (1 2 (anonymous) (edit-pipeline )))
The SVN service is successfully started.

At this time, you can install the tortoisesvn Client for Windows. After the client is installed and restarted, directly press SVN: // yourserverip in the browser and enter the user name and password, you can see the svn directory structure. Import your items first and then checkout them out.

If you want to automatically start the svn service at each startup, edit/etc/init. d/SVN
#! /Bin/sh
# Subversion initialization routine

Svnserve-d-r/Your/repo/path

Then
$ Chmod 755/etc/init. d/SVN
$ Ln-S/etc/init. d/SVN/etc/RC.3/s60svn
$ Ln-S/etc/init. d/SVN/etc/rc.5/s60svn

Restart the instance.

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.