In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to configure SVN version control system under Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to configure SVN version control system under Linux" this article.
SVN is a cross-platform open source version control system. Svn version management tools manage all kinds of data that changes over time, which are placed in a central archive (repository). Svn will back up and record every change, update and change of each file. In this way, you can restore the file at any point in time to an old version you want, and you can view the update history of the specified file.
Installation steps
❝
1. Install SVN
# yum install subversionimg
two。 Check whether the installation is successful
# svnserve-version
Note:
# in addition, you can also detect whether the old version has been installed before installation, and you can uninstall the old version and reinstall it. # check the installed version # rpm-qa subversion# uninstall the old version of SVN# yum remove subversion
3. Create a warehouse catalog
# mkdir-p / home/svn/project
4. Create a project
# svnadmin create / home/svn/project/
5. Check whether the creation is successful
# cd / home/svn/project/# ll
Enter the project folder to see that the folder contains conf, db, format, hooks, locks, README.txt and other files, indicating that a SVN library has been established.
Configuration step
❝
1. When you enter the conf directory, you will see three configuration files
Go to the folder conf generated above and configure it. There are several files called authz,passwd,svnserve.conf. Authz is the permission control, you can set which users can access which directories, passwd is to set users and passwords, svnserve is to set svn-related operations, the resulting files are described in English comments.
two。 Configure svnserv.conf
# vim svnserv.confu [general] anon-access = none # makes it impossible for unauthorized users to access auth-access = write # so that authorized users have write access to password-db = password # user password file authz-db = authz # access control file realm = / home/svn/project # authentication namespace, subversion is displayed in the authentication prompt and is cached as a keyword for credentials. # with the default configuration, all the above statements must be written at the top, and no spaces can be left on the left, otherwise errors will occur.
3. Configure passwd (format: account = password)
# This file is an example password file for svnserve.### Its format is similar to that of svnserve.conf. As shown in the### example below it contains one section labelled [users]. # The name and password for each user follow, one account per line. [users] # harry = harryssecret# sally = sallyssecretusername = 123456
4. Configure authz permissions
# add the following code at the end [/] username = rw# r: read, w: write
Note: there are more detailed permissions configuration, we will not write here, you can check the SVN documentation.
5. Start the SVN service
# svnserve-d-r / home/svn
Note: the default port is 3690. Please check whether this port allows outbound and inbound before checking out the commit operation. If not, please set up the firewall.
Test result
❝
1. Install TortoiseSVN on this machine
For installation method and specific usage, please see: https://blog.csdn.net/zhihua_w/article/details/64904692
two。 Perform code check out
# enter svn:// your ip address / project#. If a dialog box pops up to enter the account password, the above settings are correct.
3. Create a new commit.txt for submission test
These are all the contents of the article "how to configure SVN version control system under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.