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 build SVN server under centos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

The knowledge of this article "how to build a SVN server under centos" is not quite understood by most people, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to build a SVN server under centos" article.

The installation steps are as follows:

1 、 yum install subversion

2. Enter rpm-ql subversion to view the installation location, as shown below:

We know that svn generates several binaries in the bin directory.

Enter svn-- help to see how to use svn, as shown in the figure below.

3. Create the svn version library directory

The copy code is as follows:

Mkdir-p / var/svn/svnrepos

4. Create a version library

The copy code is as follows:

Svnadmin create / var/svn/svnrepos

After executing this command, the following files are generated in the / var/svn/svnrepos directory

5. Enter the conf directory (the svn version library configuration file)

The authz file is a permission control file

Passwd is the account password file

Svnserve.conf svn service profile

6. Set the account password

Vi passwd

Add the user and password to the [users] block, in the format: account = password, such as dan=dan

7. Set permissions

Vi authz

Add the following code at the end:

The copy code is as follows:

[/]

Dan=rw

Whiter

It means that the root directory of the version library, dan, has read and write access to it, and w only has read access.

8. Modify the svnserve.conf file

Vi svnserve.conf

Open the following comments:

Anon-access = read # Anonymous user readable

Auth-access = write # authorised user writable

Password-db = passwd # which file is used as the account file

Authz-db = authz # which file to use as the permissions file

Realm = / var/svn/svnrepos # authentication space name, directory where the version library is located

9. Start the svn version library

Svnserve-d-r / var/svn/svnrepos

10. Test on windows

Create a new test folder, and right-click svn checkout under this folder as shown below (to install tortoisesvn in advance):

Fill in the address of svn, as shown below:

Enter the password, as shown below:

The above is about the content of this article on "how to build a SVN server under centos". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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

Internet Technology

Wechat

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

12
Report