Ubuntu16.04 install SVN and configuration

Today I learned about the basic commands and installation configuration of SVN after installing the machine. I put the construction tutorial on the blog. I hope I can use it in the future and I hope it can help you. Come on, learn Internet technology, and continue to make progress. Build today. The environment is my blog server. The environment is Ubuntu 16.04 version. In fact, the installation of this software is similar.

Install SVN

sudo apt-get install subversion
Create a new SVN directory#####
mkdir /home/svn
Create two new version warehouses#####
# Basic command
svnadmin create /home/svn/<project>

example:

svnadmin create /home/svn/apple
svnadmin create /home/svn/orange

Configure SVN tool##

Modify the svnServe.conf file###

Remove the # and spaces in front of the following configuration items

anon-access = read // when anonymous access is read-only, if it is changed to none, anonymous access is prohibited

auth-access = write

password-db = passwd

authz-db = authz

Modify passwd file###

Add account and password under [users], such as:
[ users]
zhangsan1 = zhangsan1
lisi1 = lisi1

Modify the authz file###

Configure user groups and permissions
Group different users and manage users in the group in a unified way
[ groups]
topgroup = zhangsan, lisi
Explain that both zhangsan and lisi belong to the topgroup group

Next, configure permissions, use [/] to represent all resource libraries in the svn server
[ /apple]
@ topgroup = rw
Explain that all users in the topgroup group have read and write permissions for all resources. Use @ before being famous;

If the group name is not a single user, use the following
[ /apple]
zhangsan = rw

Start and shut down the SVN server##

Start SVN service#####

Command format: svnserve -d -r /home/avn/

svnserve -d -r /home/svn/apple

No prompt means correct. . .

Test SVN service###

Naming format: svn co svn://<ip地址> /

svn co svn://127.0.0.1/apple

Restart Svn service###

# Check the svn service startup id number
ps -aux | grep svnserve
# Kill process ID number
kill -9 ID number
# Restart SVN service
svnserve -d -r /home/svn/apple

Note: Can't find the ID number? Look here, where 1796 is the ID number

root      17960.00.1734922796?        Ss   18:500:00 svnserve -d -r /home/svn/apple/

Win system connects to remote SVN warehouse##

**Requirements: **

Okay, that’s it for now. Ask me in the comment section with questions!

Link to this article: https://www.debuginn.cn/2242.html

This article is licensed under CC BY-NC-SA 3.0 Unported agreement, please keep the link to this article for reprinting

Recommended Posts

Ubuntu16.04 install SVN and configuration
Ubuntu install PHP and PHP Nginx configuration method
Install svn and configuration through yum under CentOS
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
Ubuntu16.04 installation and simple configuration
ubuntu install and configure GitLab
Ubuntu16.04 install and uninstall VMware-Workstation 14
Ubuntu PostgreSQL installation and configuration
[Linux] ubuntu install configuration vsftpd and lock the directory
CentOS 8 install Git and basic configuration
Install and configure MySQL on Ubuntu
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Install and deploy Gerrit under Ubuntu
Install nodejs and npm under Ubuntu 16.04
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
Compile and install QEMU under Ubuntu
Install Gnome and VNC on Ubuntu Server
ubuntu 18.04 early configuration
ubuntu18.04 install docker
ubuntu12.04 install python3
Ubuntu install guide
Ubuntu install Elasticsearch and elasticsearch-analysis-ik word segmentation
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
Install docker on ubuntu and basic usage
Install fonts on Ubuntu and switch default fonts
Ubuntu nfs configuration
Ubuntu 18.04 source code compile and install ffmpeg4.1
ubuntu install Jenkins
docker install ubuntu
Install and uninstall CUDA and CUDNN on Ubuntu
Ubuntu20.04 configuration notes
Ubuntu 14.04 configuration record
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
Linux install Docker and run Ubuntu system
Ubuntu install ftp server and possible problems
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
How to install Ubuntu20.04 and install NVIDIA driver
ubuntu 18.04 install teamviewer
ubuntu install sendmail
How to install Pycharm and Ipython on Ubuntu 16.04/18.04
How to install and configure NATS on Ubuntu 16.04
Install JDK and configure environment variables on Ubuntu 16.04
How to install and configure Gogs on Ubuntu 18.04
How to install and configure Cyberpanel on Ubuntu 18.04
Debian and Ubuntu installation source configuration file description
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
Install and use Git and GitHub on Ubuntu Linux
The basic configuration and interface beautification of Ubuntu
How to install and configure GitLab on Ubuntu 18.04
How to install and use Docker on Ubuntu 20.04
How to install and configure Ansible on Ubuntu 18.04
Virtual machine installation and configuration ubuntu shared folder_
How to install and use Curl on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04