Last time we talked about the basic usage of subversion, but it was just a single-host operation. If you want to perform collaborative development on the network, you need to use a web server to manage the Subversion resource library. Here, we choose Apache 2, the next generation of the most famous server in the industry.
Reference: Debian-Reference
Except for the Ubuntu installation process, other steps are similar in other Linux distributions.
(Andyluo is my user name. Please modify it accordingly)
1. Install the apache2 and subversion modules.
Search for "apache2" in synaptic, install apache2, apache2-common, apache2-utils, apache2-doc (APACHE documentation, recommended installation), libapache2-svn (subversion module of apache2 ).
2. Create a subversion Library
Create directory:
$ Sudo mkdir-P/var/local/Repos
Create a subversion Library:
$ Sudo svnadmin create/var/local/Repos
Grant the ownership to Apache (www-data) to perform read and write operations on the library files:
$ Sudo chown-r www-data: www-data/var/local/Repos
3. Configure apache2 (using the basic authentication method, that is, the user name and password)
Modify/etc/apache2/mod-available/dav_svn.conf and change the corresponding row:
<Location/repos>
Dav SVN
Svnpath/var/local/Repos
Authtype basic
Authname "Subversion repository"
Authuserfile/etc/subversion/passwd
<Limitaskt get PROPFIND Options Report>
Require valid-user
</Limit10000t>
</Location>
Optional steps: Add a user authentication file (after adding the file, andyluo does not need to enter a password when using subversion ):
# Sudo htpasswd2-C/etc/subversion/passwd andyluo
4. Restart apache2:
# Sudo/etc/init. d/apache2 restart
5. Open your browser and visit http: // localhost/repos to view the page of the Subversion library. (Of course, there are no other things yet. We will import some files below)
6. add files in/home/andyluo/workspace to the workspace directory under http: // localhost/repos.
$ SVN import-M "Operation annotation"/home/andyluo/workspace http: // localhost/repos/workspace
7. Checkout http: // localhost/repos/workspace file to/home/andyluo/test
$ SVN checkout http: // localhost/repos/workspace/home/andyluo/test
For technologies related to subversion, please reply to the discussion.
Go on, be a tiger
Copyright Luo Ming
Note: The above content comes from the Internet and I am not liable for any joint liability.
ArticleFrom: http://www.blogjava.net/Andyluo/archive/2005/11/26/21505.html