Use the Alibaba Cloud server to deploy the SVN code repository method on the Ubuntu system, which can be tested by yourself.

Add an open port in the console: Network and Security Group -> Security Group Configuration -> Configure Rules

 Manually add port: 3690

1. Uninstall svn

Use the following command to check whether your system has svn installed:

svn

It is installed and can be uninstalled with the following command:

sudo apt-get remove --purge subversion

(--purge option means to completely delete the software and related files)

2. Install svn

It is recommended to update before installation, and then install:

sudo apt-get update

sudo apt-get install subversion

After the installation is successful, you can verify it with the following command:

svn help //--svn help

svn --version //--svn version

svnserve --version //--svn server version

3. Create SVN repository 

create folder svn

sudo mkdir  /www/svn  

Create folder repository

sudo mkdir /www/svn/repository

edit permission

sudo chmod -R 755  /www/svn

Create repository code repository

sudo svnadmin create /www/svn/repository

Modify the configuration file

Open the following file and add content:


 

admin=yuknight
[/]
@admin=rw

Start the service:

 /usr/bin/svnserve --daemon --pid-file=/run/svnserve.pid -r /www/svn/repository

svn client input:

svn://ipaddress/svn

View SVNserve process

ps -ef | grep svnserve

 View svn port

netstat -ntlp

If you have any other questions, please leave a message directly

Guess you like

Origin blog.csdn.net/u014657752/article/details/123298763