centos安装与ubuntu安装稍有不同,ubuntu安装见:http://www.jb51.cc/article/p-vpdfcvql-ys.html
step 1 Install Apache:
yum install httpd service httpd restart step 2 Install Subversion: yum install subversion mod_dav_svn step 3 Configure Subversion with Apache: vi /etc/httpd/conf.d/subversion.conf add content like: LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so Alias /svn /var/svn <Location /svn> DAV svn SVNParentPath /var/svn AuthType Basic AuthName "Subversion User Authentication " AuthUserFile /etc/svn-users Require valid-user </Location> step 4 Create First SVN Repository: cd /var/svn svnadmin create PHP chown -R apache.apache PHP step 5 Create SVN Users: touch /etc/svn-users htpasswd -m /etc/svn-users user1 htpasswd -m /etc/svn-users user2 step 6 Access Repository in Browser: http://ip/svn/PHP/ 原文链接:https://www.f2er.com/centos/382206.html