歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

centos下svn安裝記錄

centos安裝與ubuntu安裝稍有不同,ubuntu安裝見:/content/8173165.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/
Copyright © Linux教程網 All Rights Reserved