sudo apt-get install subversion subversion-tools libapache2-svn
dav_fs.load dav_svn.conf dav_fs.conf dav.load dav_svn.load
sudo svnadmin create /var/svn
conf dav db format hooks locks README.txt
cd /etc/apache2/mods-enabled
sudo vi dav_svn.conf
# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
<Location /svn>
# Uncomment this to enable the repository,
DAV svn
# Set this to the path to your repository
SVNPath /var/svn
# The following allows for basic http authentication. Basic authentication
# should not be considered secure for any particularly rigorous definition of
# secure.
# to create a passwd file
# # rm -f /etc/apache2/dav_svn.passwd
# # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
# New password:
# Re-type new password:
# Adding password for user dwhedon
# #
# Uncomment the following 3 lines to enable Basic Authentication
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# Uncomment the following line to enable Authz Authentication
# AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# The following three lines allow anonymous read, but make
# committers authenticate themselves.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
<VirtualHost 127.0.0.10>
ServerName svn.rollenc.com
DocumentRoot /var/svn
<Location />
DAV svn
SVNPath /var/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
</VirtualHost>
sudo htpasswd2 -c /etc/apache2/dav_svn.passwd username
sudo htpasswd2 /etc/apache2/dav_svn.passwd username2
sudo apache2 -k restart
Revision 0: /
Powered by Subversion version 1.3.1 (r19032).
Revision 1: /
* eemap/
* lab.rollenc.com/
继续checkout和commit吧,祝你有一个愉快的subversion。