Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the SVN Startup Mode

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to realize the SVN startup mode". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to realize the SVN startup mode.

Apache Subversion, usually abbreviated to SVN, is an open source version control system. Subversion was developed by CollabNet Inc in 2000 and is now a project of the Apache Software Foundation. It is also part of a rich developer and user community.

Compared with RCS and CVS, SVN adopts branch management system, and its design goal is to replace CVS. Most of the free version control services on the Internet are based on Subversion.

First of all, configure the SVN version library on the server side

Manually create a new version library directory

Mkdir / opt/svn

Create a version library using the svn command

Svnadmin create / opt/svn/runoob

Start the service using the command svnserve

Svnserve-d-r directory-- listen-port port number

Due to the different configuration of-r, there are two different ways to access SVN startup.

Method 1:-r is directly assigned to the version library (called single-library svnserve mode)

Svnserve-d-r / opt/svn/runoob

In this case, a svnserve can only work for one version library.

The configuration of version library permissions in the authz configuration file should be written as follows:

[groups] admin=user1dev=user2 [/] @ admin=rwuser2=r

You can access the runoob version library using a URL:svn://192.168.0.1/ like this

Method 2: assign to the parent directory of the version library (called multi-library svnserve mode)

Svnserve-d-r / opt/svn

In this case, one svnserve can work for multiple version libraries

The configuration of version library permissions in the authz configuration file should be written as follows:

[groups] admin=user1dev= user2 [runoob: /] @ admin=rwuser2= r [runoob01: /] @ admin=rwuser2=r

If you still use [/] at this time, it means the root directory of all libraries. Similarly, [/ src] represents the src directory under the root directory of all libraries.

You can access the runoob version library using a URL:svn://192.168.0.1/runoob like this.

Thank you for your reading, the above is the content of "how to achieve SVN startup mode". After the study of this article, I believe you have a deeper understanding of how to achieve SVN startup mode, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report