1. Installation Services
2. Create an SVN repository
#创建仓库目录mkdir-P/var/www/svn# Create the SVN repository svnadmin create/var/www/svn/project# configuration file to the warehouse vim/var/www/svn/project/conf/ svnserve.conf# disable anonymous users and turn on verify user rights. anon-access = noneauth-access = Write
3.SVN Integrated Apache
#配置subversion the following content for the. conf file:
LoadModule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so< Location/project>dav svnsvnpath/var/www/svn/project/ authtype basicauthname "SVN" authuserfile/var/www/svn/ Project/conf/passwdrequire valid-user</location>
#修改/var/www/svn Permissions chown apache.apache/var/www/svn-rchmod 777/var/www/svn-r# shut down Selinuxsetenforce 0# restart Apache Services service httpd restart
4. Create SVN users
cd/var/www/svn/project/conf# create user with htpasswd, first create user HTPASSWD-CB passwd user password# Add users htpasswd-b passwd new-user new-password# Delete User htpasswd-d passwd user# Modify user password htpasswd passwd users
5. Configure SVN permissions
#编辑authz文件, set the guest group to contain test and ABC two users.
[Groups]
Guest = Test,abc
#配置组权限, the Guest group under the root directory is read-write and readable by other users.
[/]
Guest = RW
* = R
6. Start the SVN service
#关闭svn服务
Killall Svnserve
#启动svn服务
Svnserve-d-r/var/www/svn/project
7. Client Testing SVN
Enter Http://IP/project in the browser
Enter a user name and password to access
Enter Http://IP/project in the SVN client
Enter a user name and password to access
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
APACHE+SVN Service Building