In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the steps to install the SVN server under the CentOS system". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Subversion supports linux and windows and is more likely to be installed under linux.
Svn servers can be run in two ways: stand-alone servers and apache. The two methods have their own advantages and disadvantages.
Svn also stores version data in two ways: BDB and FSFS. Because it is possible to lock data in BDB mode when the server is down, FSFS mode is more secure.
Download the relevant software
The code is as follows:
Wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz
The code is as follows:
Wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.gz
II. Installation and configuration
1. Decompress: (to be in the same directory)
The code is as follows:
Tar-zxvf subversion-1.6.1.tar.gz
Tar-zxvf subversion-deps-1.6.1.tar.gz
2. Compile and install:
The code is as follows:
. / configure-- prefix=/usr/local/svn/
Make & & make install
3. Add SVN-related command paths to environment variables
The code is as follows:
Echo "export PATH=$PATH:/usr/local/svn/bin/" > > / etc/profile
Source / etc/profile
Third, establish a test warehouse
1. Establish the root directory of SVN
The code is as follows:
Mkdir-p / opt/svn/
2. Set up a test warehouse
The code is as follows:
Mkdir-p / opt/svn/svntest/
Svnadmin create / opt/svn/svntest/
3. Modify the configuration file
There are three files in the cd / opt/svn/svntest/conf/ directory:
Svnserve.conf is the configuration file for svn
Authz is a configuration file that sets user permissions (customizable file name, specified in svnserve.conf 's authz-db = authz)
Passwd is the configuration file that sets the user name and password (customizable file name, specified in svnserve.conf 's password-db = passwd)
The code is as follows:
Vi svnserve.conf
The modifications are as follows:
The code is as follows:
[general]
Anon-access = none
Auth-access = write
Password-db = passwd
Authz-db = authz
=
The code is as follows:
Vi authz
The modifications are as follows:
The code is as follows:
[svntest:/]
92csz.com = rw
# add a user named 92csz.com to the svntest repository with writable permissions.
=
The code is as follows:
Vi passwd
The modifications are as follows:
92csz.com = 123456
# because of the test, the password is set to 123456
Install the svn client on the client
1. Download address:
Http://code.google.com/p/rails4scm/downloads/detail?name=tortoisewin32svn.msi
2. After the download is completed, you can install next directly. After the installation is completed, you need to restart to take effect.
Start the server and test
1. Start the SVN service and specify the root directory of SVN:
The code is as follows:
Svnserve-d-r / opt/svn/
2. Check whether the service has become normal:
The code is as follows:
Netstat-tunlp | grep svn
If the result is as follows, port 3690 is listening normally.
The code is as follows:
Tcp 000.0.0.0VR 36900.0.0.0VOV * LISTEN 8646/svnserve
3. Testing
Create a new directory named svntest on the desktop, right-click on the directory, select Checkout, and fill in the IP address of the svn server and the name of the warehouse on the first line
After a successful login, the following figure is shown (there is a green check on the folder)
This is the end of the "steps to install a SVN server under the CentOS system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.