In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Install the svn server side
Yum install subversion
two。 Create a svn version repository (feel free to create it)
/ / create a svn directory mkdir-p / svn/repos/ / modify directory permissions to 777chmod-R 777 repos/ / create a svn version repository first (first can be named casually) svnadmin create / svn/repos/first
3. The following is to modify the three configuration files in this directory (there can be no spaces after the key value)
/ / enter the newly created version repository directory cd / svn/repos/first// configuration version library information and the path of user files and user password files, version library path vi svnserve.conf / / put # anon-access = read# auth-access = write# password-db = passwd// these four lines The previous # sign and space are removed / / changed to noneanon-access = noneauth-access = writepassword-db = passwd// to your own version library realm = first// save exit (2) vi authz / / file, create svn group and group user permissions [groups] / / create a first group And make two users, ddl and shlfirst = ddl,shl//, set the permissions under the root directory [/] / / first group user permissions are read / write @ first = rw// other users only have read permissions * = r vi passwd / save exit (3) vi passwd / / create or modify the user password [users] / / the password of the user whose user name is gep is 123456ddl = 123456MB /. No, no, no. Shl = 123456 Compact / Save exit
4. Then you need to set up self-startup.
Vi / etc/rc.local
Open the self-startup file with the following contents
#! / bin/sh# This script will be executed * after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.touch / var/lock/subsys/local// add the following line svnserve-d-r / usr/local/svnRepo/first// save exit
Find all processes started by svn
Ps aux | grep 'svn'
Kill and start svn
Start svn (you can put this in the / etc/local/rc.local file to boot automatically)
Svnserve-d-r / usr/local/svnRepo/first
SVN version library startup mode. Now there are first and test version libraries under svnRepo.
1: single version library startup
Svnserve-d-r / usr/local/repos/first
2: multi-version library startup
Svnserve-d-r / usr/local/repos
The difference lies in the directory specified by the startup parameter-r in the command when starting svn.
4. Restrict the operation rights of different users to different version libraries, and modify the authz files in the conf directory in the version library (there can be no spaces after the key values)
Take configuring first version library as an example
Vi authz [groups] company = user1,user2 [first:/] / / permissions under the specified version library and directory @ company = rw / / company group user permissions are read and write * = r / / other users only have read permission / / save exit vi passwd / / set the account and password of the user in the group [users] user1 = 123456user2 = 123456
5. Client access
Assume that the client uses tortoiseSVN
Open the repository browser and enter the address to svn:// your svn server ip:3690
Enter user name ddl password 12345
Because there is no file in the network resource library, you need to right-click [create forder] on the client side, and then [add forder]
Summary
The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.
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.