Detailed explanation of the process of configuring multiple SVN repositories on Linux servers

Detailed explanation of the process of configuring multiple SVN repositories on Linux servers

1. Create a repository in the specified directory to save the total directory. The example directory in this article is set to: /usr/local/svn/svnrepos

# mkdir -p /usr/local/svn/svnrepos

2. Create two warehouse folders in the general directory and use commands to create a version library

# mkdir -p /usr/local/svn/svnrepos/warehouse1
# mkdir -p /usr/local/svn/svnrepos/warehouse2
# svnadmin create /usr/local/svn/svnrepos/warehouse1
# svnadmin create /usr/local/svn/svnrepos/warehouse2

3. Enter the conf folder under the warehouse1 directory. Copy the authz and passwd files to the svnrepos directory

# cd /usr/local/svn/svnrepos/warehouse1/conf
# cp authz ../../
# cp passwd ../../

4. Modify the svnserve.conf file under warehouse1/conf, modify the password file and authz file, and configure other configurations according to the normal single svn configuration. (Set up the same for warehouse2)

5. Modify the password file and authz file in the copied /svnrepos directory

passwd file: set account password


authz file

6. Start the SVN service

# svnserve -d -r /usr/local/svn/svnrepos (這里目錄配到總目錄,不是倉庫目錄)

7. Others

When checking out a project in a Windows environment,

The checkout address of warehouse 1 is: svn://ip address/warehouse1

The checkout address of warehouse 2 is: svn://ip address/warehouse2

8. About configuring multiple SVN

1. Establish SVN library

mkdir /opt/svndata/one
svnadmin create /opt/svndata/one

Note: Here I put all the SVN libraries in the SVNdata folder of opt. Here I created a

2. Upload the project to the specified SVN

svn import D:\eclipse\Test svn:/
/192.168.1.105:3690/TestProject -m "TestProject"

3. Automatically open multiple SVNs at the same time

1. Create an execution script svn.sh (in the /root path), the content of which is very simple. as follows:

#!/bin/bash
svnserve -d --listen-port 3690 -r /opt/svndata/one
svnserve -d --listen-port 3691 -r /opt/svndata/two

2. Add executable permissions

chmod ug+x /root/svn.sh

3. Add automatic operation to open (vi or gedit) /etc/rc.d/rc.local and add the following content to the last line:

/root/svn.sh

Save and exit

4. Inspection

Restart the server and use ps -ef to see if the process is started.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of two ways of Linux service management: service and systemctl
  • Solve the problem of VScode configuration remote debugging Linux program
  • Analysis of Linux configuration to achieve key-free login process
  • Detailed tutorial on uploading and configuring jdk and tomcat on linux
  • Installation and configuration method of Zabbix Agent on Linux platform
  • vscode Linux C++ development code automatic prompt configuration under win10 environment (based on WSL)
  • Summary of Linux environment variable configuration methods (differences between .bash_profile and .bashrc)
  • Install Tomcat on Linux system and configure Service startup and shutdown

<<:  MySQL merge and split by specified characters example tutorial

>>:  JavaScript tips to help you improve your coding skills

Recommend

Tutorial on installing MySQL under Linux

Table of contents 1. Delete the old version 2. Ch...

Detailed explanation of the transition attribute of simple CSS animation

1. Understanding of transition attributes 1. The ...

Implementation of breakpoint resume in vue-video-player

In a recent project, I needed to implement the fu...

4 ways to avoid duplicate insertion of data in Mysql

The most common way is to set a primary key or un...

Research on the problem of flip navigation with tilted mouse

In this article, we will analyze the production of...

Tips for turning pixels into comprehensive brand experiences

Editor: This article discusses the role that inte...

Pure CSS to achieve a single div regular polygon transformation

In the previous article, we introduced how to use...

React Native scaffolding basic usage detailed explanation

Build the project Execute the command line in the...

Analysis of MySQL general query log and slow query log

The logs in MySQL include: error log, binary log,...

CSS pixels and solutions to different mobile screen adaptation issues

Pixel Resolution What we usually call monitor res...

jQuery implements a simple carousel effect

Hello everyone, today I will share with you the i...

Example code of setting label style using CSS selector

CSS Selectors Setting style on the html tag can s...

Nexus private server construction principle and tutorial analysis

one. Why build a Nexus private server? All develo...