In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to build svn in Linux". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to build svn in Linux" can help you solve the problem.
SVN is an open source version control system, which can achieve the goal of multiple people developing a project and sharing resources at the same time. The following tutorial network shares the detailed steps of the svn server in the Linux system.
About SVN: SVN is a cross-platform open source version control system. Svn version management tools manage data that changes over time.
The data is placed in a central archive (repository), and svn backs up and records 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.
SVN is commonly used to manage program code. But it can also manage any type of file, such as text, video, pictures, and so on.
One: uninstall SVN (ignore this step if you are a new system machine) 1: rpm-qa subversion query whether SVN has a lower version of SVN (if it is not installed, it will not be displayed)
2:yum removesubversion Uninstall SVN
Second: install SVN1:yum-y install subversion cloud installation commands to install SVN related services
2: check whether SVN has successfully installed svnserve-version
Three: set up the SVN version library my own system installed the root directory of the version library in the var/svn/svnrepos/ directory
1: mkdir / var/svn/svnrepos create a folder
2: create SVN version library svnadmin create / var/svn/svnrepos/xxxx (xxxx) as the name of the directory (project or version library), which will be used later in checkout projects.
3: > cd / var/svn/svnrepos/xxxx enter this directory to view the directory
> ls checks the created files.
4: files or folders such as conf,db,format,books,locks
A brief introduction to the catalogue:
Conf:SVN version library configuration files (account, password, permissions, etc.)
Conf/authz: responsible for the management of account permissions and controlling whether the account has read and write permissions
Conf/passwd: responsible for user list management of accounts and passwords
Conf/svnserve.conf:svn server profile
Db: version library data storage
Locks: tracks visitors to the directory
4: modify the configuration file 1: enter the conf directory > cd / var/svn/svnrepos/xxxx/conf
2: modify authz file > vi authz
3: press I key to enter VIM editing mode
Add the following code at the end of this article:
[]
User name 1 = rw
User name 2 = r
* = r
[/ folder 1]
User name 2 = rw
PS:1: [] indicates maximum permissions [/ folder] indicates permissions for this folder
2: user name (group) can be defined at will
3:rw and r stand for readable, writable and read-only, respectively
4Rank * indicates any user
5: there is not too much explanation about permissions here.
4: save and exit esc >: wq
5: modify the passwd file configuration and add the account password at the end (see step 3, step 4 for how to write, save and exit in VIM mode) vi passwd
The format is: account number = password
6: modify svn configuration file vi svnserve.conf
Description of value range: write readable and writable read read-only none does not have access
Anon-access: indicates the access range of unauthorized (tourist) users. Default value: read
Auth-access: indicates the access range of authorized users. Default value: write
The relative path of password-db:passwd file will point to your.. / conf/passwd by default. No need to set it.
Realm: specify the authentication domain of the version library. You can set a UUID at will, for example: my test
Remove 4 lines of comments.
7: save and exit
5: in most cases, the firewall cannot be accessed after SVN is configured. Usually the firewall is configured with port 3690 (the default port for SVN).
1: > / sbin/iptables-I INPUT-p tcp-dport 3690-j ACCEPT
2: > / etc/init.d/iptables save
3: > service iptables restart
Or (the INPUT command is not installed on the system or centOS7 firewall has replaced iptables)
1: sudo firewall-cmd-permanent-add-service=telnet2: sudo firewall-cmd-permanent-add-port=3690/tcp3: sudo firewall-cmd-reload
CentOS 7 Firewall on / off and View status systemctl start firewalldsystemctl stop firewalld
Systemctl status firewalld
6: start the svn service 1:svnserve-d-r / var/svn/svnrepos (/ var/svn/svnrepos is the root directory of the original svn version)
2: ps aux after successful startup | grep svn can view the svn process
3: (skip this step if the directory is normal, if the directory is not originally created, then you need to stop the service and modify and restart it.) kill this process and perform step 1
Seven: check out project 1: enter windows check out project address bar and enter svn:// project ip:3690/xxxx
Project ip can view inet via ip addr or ifconfig
The SVN version library established by xxxx can be found from the above xxxx.
This is the end of the introduction on "how to build svn in Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.