To build the SVN service and effectively manage code, you can perform the following three steps.

Source: Internet
Author: User
Tags collabnet
To build the SVN service and effectively manage code, you can perform the following three steps. To build the SVN service and effectively manage code, you can perform the following three steps.
1. Installation
# Yum install subversion

Determine whether the installation is successful
# Subversion-v

Svnserve, version 1.6.11 (r93411)
The above prompt indicates that the installation is successful.

If the prompt is as follows:-bash: subversion: command not found
Found:
[Root @] # svnserve -- versionsvnserve, version 1.6.11 (r93411)
Compiled Apr 11 2013, 16:13:51

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product has des software developed by CollabNet (http://www.Collab.Net /).

The following repository back-end (FS) modules are available:

* Fs_base: Module for working with a Berkeley DB repository.
* Fs_fs: Module for working with a plain file (FSFS) repository.

Cyrus SASL authentication is available.

With the SVN software, you also need to create a SVN database.
# Mkdir/opt/svn/repos
# Svnadmin create/opt/svn/repos
After executing the preceding command, multiple files are automatically created under repos, including conf, db, format, hooks, locks, and README.txt.

2. configuration

The above operation is very simple, just a few commands, the following operation is not difficult.
Go to the conf folder generated above and configure the following files: authz, passwd, svnserve. conf
Among them, authz is permission control, which users can access which directories, passwd is used to set users and passwords, and svnserve is used to set svn-related operations.


2.1 set passwd first

[Users]
# Harry = harryssecret
# Sally = sallyssecret
Hello = 123
UserName = password

In this way, the hello user and 123 password are created.
2.2 set the permission authz again

[/]
Hello = rw

This means that the hello user has read and write permissions on all directories, but it can also be limited.
If you use it on your own, read and write it directly.


2.3 finally set snvserv. conf

Anon-access = none # make unauthorized users inaccessible
Auth-access = write # grant the authorized user the write permission
Password-db = password
Authz-db = authz # access control file
Realm =/opt/svn/repos # authenticate the namespace. The subversion is displayed in the authentication prompt and serves as the key word cached by the credential.
Use the default configuration. the above statements must be written in the top level, and no space is left. Otherwise, an error will occur.
Now, with the above configuration, you can use svn.

3. connection

Start svn: svnserve-d-r/opt/svn/repos

If svn is already running, you can run it on another port.
Svnserve-d-r/opt/svn/repos -- listen-port 3391

In this way, the same server can run multiple svnservers.

Okay. after the startup is successful, you can use it.
TortoiseSVN is recommended, and the connection address is svn: // your server address (if the specified Port needs to be added: port number)

After the connection, you can upload local files to effectively manage your code.

Through the above three steps, you can quickly build svn and start your project. if you find it useful, please leave a message. thank you for your support.
Reposted from (public information service network). thank you!


I'm glad that this article has reached the first article in Baidu search. I will continue to work hard to write original and high-quality blog posts.

If you think this article is helpful to you, please support the advertisement on the blog header and the book on the blog header. it is a selection by the author to learn about Linux and other related books.

Stop SVN: killall svnserve


Svn-clear svn usernames and passwords in linux

Problem: the svn account used previously has insufficient permissions and needs to be used by another account. Therefore, we need to ask how to use the new svn account for operations.

Method 1:

Delete in linux ~ /. Subversion/auth to clear the previous user name and password: rm-rf ~ /. Subversion/auth

If you operate svn later, you will be prompted to enter the user name, and you will be able to use the new

Method 2:

The -- username parameter is included in the svn operation, for example, svn -- username = smile co svn_path local_path.


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.