Deploying SVN server based on Linux
(1) Yum install Subversion
Yum Install Subversion
(2) test the installation result
Svnserve--version Displays the installation results, indicating that the installation was successful
(3) Create a code warehouse directory
Mkdir/var/svn/projectname Create a new directory
Svnadmin create/var/svn/projectname Create SVN repository to this directory
(4) SVN server configuration
The Code Warehouse CONF directory has three important configuration files, passwd, Authz, svnserve.conf.
Modify the passwd file to add a user name and password
①vim passwd Open passwd file, modify the following
[Users]
username1 = 123456 Format: User name = password
UserName2 = 123456
Username3 =987654
After writing the user name password, Wq save to exit.
② Modify the Authz file to add user permissions
Vim Authz Open the Authz file and modify the contents as follows
[Groups] Format: User-group = Username, multiple users placed in the same group, separated
Developer = username1//Add user 1 to the development group
designer = username2,username3//Add users 2 and 3 to the design Group
[projectname:/]//Configure user group permissions for a project
@developer = RW//Set development group to read and write permissions
@designer = r//Set design Group only Read permission
③ Modifying the configuration of the svnserve.conf
Anon-access = none//modify anonymous user access rights
auth-access = write//Remove comment, verify user rights
PASSWORD-DB =/var/svn/projectname/passwd//Remove comment, set password file path
AUTHZ-DB =/var/svn/project/authz//Remove comments, set permissions file path
Realm = ProjectName//Set project name (UUID)
(4) Open SVN port
The SVN server uses 3690 ports by default, so open 3690 ports, save the settings, and then restart the firewall:
Iptables-i input-p TCP--dport 3690-j ACCEPT
/etc/rc.d/init.d/iptables Save
Service Iptables Restart
(5) Start SVN service
Svnserve-d-R/VAR/SVN
-D: Daemon-r:svn root directory
(6) Download software
SVN uses the TORTOISESVN software to log on to the connection: https://tortoisesvn.net/downloads.html
After downloading, you can install it in one step.
(7) When finished, click the right mouse button->tortoisesvn->repo-browser
(8) then enter the URL:
Svn://192.168.30.38/projectname
Then enter your user name and password.
Build SVN server under Linux