https://help.ubuntu.com/community/Subversion
安裝:
sudo apt-get install subversion libapache2-svn apache2
建立svn倉庫
sudo mkdir /home/svn
cd /home/svn
sudo mkdir myproject
sudo svnadmin create /home/svn/myproject
sudo chown -R www-data:www-data /home/svn
sudo chmod -R g+rws myproject
1)從apache看
sudo gedit /etc/apache2/mods-available/dav_svn.conf
加入
<Location /svn> DAV svn SVNParentPath /home/svn SVNListParentPath On AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
restart apache
sudo /etc/init.d/apache2 restart
加passwd
sudo htpasswd -c /etc/subversion/passwd user_name
cat /etc/subversion/passwd (確認用)
access
svn co http://localhost/svn/myproject myproject --username user_name
沒有留言:
張貼留言