Install SVN server software using yum, build the code warehouse used by the team in CentOS, create accounts for development members, and assign permissions:
1. Check the installation of SVN service software
svnserve–version command to view the installation status,
The "-bash:/usr/bin/svnserve:no such file or directory" prompt indicates that there is no installation, go directly to step 2nd,
Otherwise, the installed SVN Server software version Information "Svnserve, Version ..." is displayed, and you can use the following command to remove the installed version
Yum Remove Subversion
2. Install SVN server Software
Yum Install Subversion
3. Create a code Warehouse
① Creating a folder manually
mkdir-p/var/www/svntest
② the created folder as the Code warehouse
svnadmin create/var/www/svntest
③ into the Warehouse folder Svntest, you can see the following several folders and files
Where the Conf folder contains three configuration files
Authz file is user/user group permissions configuration, passwd file is User account and password configuration file, svnserve.conf file is a comprehensive configuration file
4. Create users and set permissions
(1). Create a user in the passwd file
Vim passwd
Top line fill in the account name and password
[Users]
Admin1 = Password1
Server = Password2
web = Password3
UI = Password4
(2). Set up user groups and assign corresponding permissions
① Determining role types
Admin
Server
Web
Ui
② designing user groups and Members
Vim Authz
Add under [Group]
admin = admin1
Server = Server1,server1
web = Web1
UI = Ui1
③ assign permissions, followed by the above configuration Write permission
The Administrators group has read and write permissions in all directories, and other groups have read and write permissions to separate directories that have read-only or no permissions on other directories
[/]
@admin = RW
@server = R
@web = R
@ui = R
[/server]
@server = RW
[/web]
@server = RW
[/web]
@web = RW
[/common]
* = RW
5. Configure Firewall port Access
Vim/etc/sysconfig/iptables
Add a line
-A input-m state–state new-m tcp-p tcp–dport 3690-j ACCEPT
Then quit editing and restart the firewall
Service iptables Restart
6. Start the SVN service
svnserve-d-r/var/www/svntest
7. Turn off SVN service
Killall Svnserve
8. Client access to SVN server
The connection address is:svn://server IP
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Set up SVN server and related permissions configuration in CENTOS6