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 understand SVN shared Resource Files

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How to understand SVN shared resource files? in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Svn introduction

SVN is the abbreviation of Subversion, is an open source version control system, compared with RCS, CVS, it uses a branch management system, its design goal is to replace CVS. Many version control services on the Internet have migrated from CVS to Subversion. To put it simply, SVN is the purpose for multiple people to jointly develop the same project and share resources.

Experimental requirements

A centos7:192.168.177.140

Two win7: sharing resources

Configuration on centos7

Install the SVN service

# systemctl stop firewalld.service / / disable the firewall # setenforce yum install subversion-y # svnserve-- version / / View the version

Create a repository directory repo for php programmers

# mkdir-p / opt/svn/repo/ / create directory # svnadmin create / opt/svn/repo/ create a new warehouse

Adjust SVN parameters

# vim / opt/svn/repo/conf/svnserve.conf / / Note: there cannot be spaces before the configuration item [general] / / overall configuration anon-access = none / / Anonymous user does not have permission auth-access = write / / authenticated user has write permission password-db = / opt/svn/repo/conf/passwd / / user's password file authz-db = / opt/svn/repo/conf/authz / / user's information file

Start the service

# svnserve-d-r / opt/svn/repo/ start the service # netstat-ntap | grep svnserve / / check whether port 3690 is enabled

Set up an account for php programmer zhangsan, and have read and write access to repo repository, and feedback account information and warehouse directory information to php programmer

# vim / opt/svn/repo/conf/passwd / / create account password file [users] zhangsan = abc123 / / create zhangsan# vim conf/authz / / create permissions file [/] zhangsan = r [/ webphp] zhangsan = rw / / zhangsan users have read and write permissions # cd / opt/svn/repo # mkdir webphp / / create files under the repository Used to store shared resources # svn import webphp/ file:///opt/svn/repo/webphp-m "initialize SVN directory" / / Import wenphp

Install svn on win7

You must restart after installation, and then set it to nat mode on the same network segment as centos7, as shown in the screenshot.

Since there is no time to take screenshots when creating a 123.txt, create another 234.txt so that you can see the process clearly.

Install it in the same way on another win7. After installation, just open the folder and you can see the shared resources.

This is the answer to the question about how to understand the SVN shared resources file. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about 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

Servers

Wechat

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

12
Report