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

Example Analysis of setting up svn Server by Linux

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will introduce to you the example analysis of building svn server by Linux. The content of the article is good. Now I would like to share it with you. Friends who feel in need can understand it. I hope it will be helpful to you. Let's read it along with the editor's ideas.

SVN is an open source control system, through the use of branch management system management, in short, it is used for multiple people to jointly develop the same project, to achieve shared resources, to achieve the final centralized management. Next, let's talk about building a svn server.

1. Check whether the system is installed. If so, uninstall it.

Check: svnserve-version

Uninstall: yum remove subversion

2. Installation

Yum install subversion

3. Set up SVN library (file location can be free)

Create a warehouse folder: mkdir-p / opt/svn/repository

Create a warehouse as svn administrator: svnadmin create / opt/svn/repository

After executing the above command, automatically establish the repositories library, check the / opt/svn/repository folder and find that it contains conf, db,format,hooks, locks, README.txt and other files, indicating that a SVN library has been established.

4. Permission configuration

(1) authz file configuration, which sets which users can access which directories: enter the folder generated above / opt/svn/repository/conf

Configure the authz file, vi authz, and append the following to the authz file, with the user name on the left and read and write permissions on the right (r, w, rw, no access)

Read and write permissions for each directory can be finely controlled, such as:

(2) passwd file configuration mainly adds user name and password, such as:

(3) svnserve.conf file configuration configuration access permissions

5. Start svn

I suggest to specify the start-up mode of the port, if you build multiple warehouses, it is also easy to manage.

The default port of svn is 3690, which needs to be added in the firewall to be accessed in the svn client.

Again, I chose to start with port 3691.

Launch command: svnserve-d-r / opt/svn/repository-listen-port 3691

6. View svn processes

Ps-ef | grep svn, you can see that the service starts successfully. If you want to restart, kill-9 pid, and then start it again using the command svnserve-d-r / opt/svn/repository-listen-port 3691.

At this time, using the svn tortoise client connection will find that svn://ip:port/opt/svn/repository cannot be used. This is because linux does not open the port and needs to add it manually.

The steps are as follows:

Vi / etc/sysconfig/iptables, open new port

Restart the firewall

Service iptables restart

Re-use the client and you can connect normally!

SVN has the functions of backup, code restore, collaborative modification, multi-version project file management, traceability of writing time and author, permission control and so on.

These are all the contents of the example analysis of Linux building svn server. For more content related to Linux building svn server example analysis, you can search the previous article or browse the following article to learn! I believe the editor will add more knowledge to you. I hope you can support it!

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

Development

Wechat

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

12
Report