Environment: centos6.5
Installation
CentOS 6.5 is installed by default with SVN server, which is used directly here. If not, use the Yum-y install Subversion installation
To create a version library
3.1 Creating the SVN root directory
MKDIR/MNT/SVN #/mnt is my data disk.
3.2 Creating a Project Repository
Cd/mnt/svn
Svnadmin Create Test #test是版本库名字, can be named according to your preference
4. Configuration
The configuration file is stored in the test/conf directory:
SVNSERVE.CONF:SVN Service configuration file
Authz: Privilege profile
passwd: User name password configuration file
You can see that each repository has its own user and permission profiles. When there are multiple repositories at the same time, it is common to create Authz and passwd files in the SVN directory for all repositories.
4.1 Copy the AUTHZ,PASSWD to the SVN directory first
CP AUTHZ/MNT/SVN
CP AUTHZ/MNT/SVN
4.2 Configuring Svnserve.conf
Modify the following several places
Anon-access = None
auth-access = Write
Password-db =.. /.. /passwd
Authz-db =.. /.. /authz
4.3 Configuring passwd
vim/mnt/svn/passwd
Add users under [users] in the following format
User1 = Passwd1
User2 = Passwd2
4.4 Configuring Authz
Vim/mnt/svn/authz
Create a user group under [groups]
team1 = User1,user2
Set permissions under [/], specify that all libraries are read-only, root can read and write, and this permission is valid for all repositories under the root.
* = R
Root = RW
If you need permission settings for a repository, you can continue to add
[test:/]
@team1 = RW
* = R #其它用户只读
5. Start SVN
Svnserve-d-R/MNT/SVN
6. The client installs the TORTOISESVN, opens the Tortoisesvn-repo-browser, enters the SVN address svn://ip/test, enters the user name password, then can create the trunks,branches,tags.
LINUX-SVN Server