In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "centos installation svn server detailed process", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "centos installation svn server detailed process" bar!
1. Install SVN
The code is as follows:
Yum list svn*
Yum install subversion
two。 Test SVN installation
The code is as follows:
Svnserve-version
3. Create three code repositories
The code is as follows:
Svnadmin create / usr/svnhome/project1
Svnadmin create / usr/svnhome/project2
Svnadmin create / usr/svnhome/project3
4. Change the directory to / usr/svnhome/project1/conf directory
The code is as follows:
Cd/projcet1/conf
5. Copy the authz and passwd files from the project1 file to the root folder of the SVN repository
The code is as follows:
Cp authz passwd / usr/svnhome/
6. Modify the svnserve.conf file
The code is as follows:
Vim svnserve.conf
Modify it as follows:
The code is as follows:
Anon-access = none / / Anonymous access is prohibited
Auth-access = write
Password-db = / usr/svnhome/passwd / / uniform use of password files
Authz-db = / usr/svnhome/authz
Realm = project1 / / permission domain name, very important, write your project name
7. In the same way, modify the configuration files of the project2 and project3 directories, and only modify the attribute realm.
8. Modify the master password file
The code is as follows:
Vim / usr/svnhome/passwd
[users]
Test = test
9. Modify permissions file
The code is as follows:
Vim / usr/svnhome/authz
[/] / the manager has all read and write permissions
Test = rw
10. Restart the SVN server
The code is as follows:
Killall svnserve / / Kill the SVN server
Svnserve-d-r / usr/svnhome/svn
11. Release the port firewall of the SVN server
Delete invalid firewall configuration:
The code is as follows:
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3690-j ACCEPT
Set up the firewall as follows:
The code is as follows:
/ sbin/iptables-I INPUT-p tcp-- dport 3690-j ACCEPT
/ etc/rc.d/init.d/iptables save
View after configuration:
The code is as follows:
/ etc/init.d/iptables status
The customer server telnet is successful, and the svn can also be accessed.
The code is as follows:
Telnet domain.name 3690
The following is the configuration of specific user permissions:
Modify two rights management files:
The code is as follows:
Passwd
/ / user name = password
[users]
Eg1 = 123
Eg2 = 123
Eg3 = 123
Eg4 = 123
Eg5 = 123
Eg6 = 123
Authz
[groups] / / grouping
Admin = eg1,eg2
Guest = eg3,eg4
Guset1 = eg5,eg6
[/] / the manager has all read and write permissions
* =
@ admin = rw
[project1:/] / / access control of project 1. Guest1,2 cannot access it.
@ admin = rw
Or
Eg1 = rw
Eg2 = rw
[project2:/]
@ guest = rw
Or
Eg3 = rw
Eg4 = rw
[project3:/]
@ guest1 = rw
Or
Eg5 = rw
Eg6 = rw
Thank you for your reading, the above is the "detailed process of centos installation of svn server" content, after the study of this article, I believe you have a deeper understanding of the detailed process of centos installation of svn server, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.