1. Install SVN server yum install subversion 2. Create an SVN version repository (can be created at will) //Create a SVN directory mkdir -p /svn/repos //Change the directory permissions to 777 chmod -R 777 repos //Create a SVN version repository first (first can be named arbitrarily) svnadmin create /svn/repos/first 3. Next, we need to modify the three configuration files in this directory (there should be no space after the key value) //Enter the newly created version repository directory cd /svn/repos/first //Configure the repository information, user file and password file paths, and repository path vi svnserve.conf //Set #anon-access = read # auth-access = write # password-db = passwd //These four lines, remove the # and space in front of them // and change them to none anon-access = none auth-access = write password-db = passwd //Change to your own version library realm = first //Save and exit (2)vi authz //file, create permissions for svn group and group user [groups] //Create a group called first and specify two users: ddl and shl first = ddl,shl //Set permissions for the root directory[/] //The first group user permissions are read and write @first = rw //Other users only have read permission* = r //Save and exit (3) vi passwd //Create or modify user password [users] //The password of the user named gep is 123456 ddl = 123456 //. . . shl = 123456 //Save and exit 4. Then set up automatic startup vi /etc/rc.local Open the autostart file, the file content is as follows #!/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 and exit Find all processes started by svn ps aux |grep 'svn' Kill and then start svn Start svn (you can put this in the /etc/local/rc.local file to start it automatically at boot) svnserve -d -r /usr/local/svnRepo/first SVN repository startup method, now there are two repositories under svnRepo: first and test 1: Start with a single repository svnserve -d -r /usr/local/repos/first 2: Multi-version repository 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. Limit different users' access to different repository operations, and modify the authz file in the conf directory of the repository (no spaces after the key value) Take the configuration of the first version library as an example vi authz [groups] company = user1,user2 [first:/] //Specify the permissions for the repository and directory @company = rw //Company group users have read and write permissions * = r //Other users only have read permissions //Save and exit vi passwd //Set the account and password for users in the group [users] user1 = 123456 user2 = 123456 5. Client Access Assume the client uses tortoiseSVN Open the repository browser and enter the address, svn://your svn server ip:3690 Enter username ddl password 12345 Because there is no network resource library to store files, you need to use the client right click [create forder], then [add forder] Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Detailed explanation of the example of exporting data from a specified table in MySQL
>>: AsyncHooks asynchronous life cycle in Node8
Solution: Kill all .vscode related processes in t...
Table of contents Simple Factory Factory Method S...
Preface Usually, a "paging" strategy is...
Table of contents Binding Class Binding inline st...
In the previous article - The charm of one line o...
1. Download the RPM package corresponding to Linu...
TABLE> <TR> <TD> <TH> <CA...
In MySQL, we usually use limit to complete the pa...
px(pixel) I believe everyone is familiar with the...
Problem description: After executing docker run -...
I recently started learning Linux. After reading ...
Table of contents 1 Conceptual distinction 2 Case...
The default template method is similar to vue2, u...
When a running container is terminated, how can w...
Everyone may be familiar with the select drop-dow...