Ubuntu Server construction-use apache to build the svn server to install the subversion and the corresponding apache Module. Here we assume that the server has been installed, participate in server installation www.2cto.com $ sudoapt-getinstallsubversion $ sudoapt-get... ubuntu Server construction-use apache to build the svn server to install the subversion and the corresponding apache Module. Here we assume that the server has been installed, participate in server installation www.2cto.com $ sudo apt-get install subversion $ sudo apt-get install libapache2-svn to create a repository, add group subversion, and add users to the group, because the default apache Group user in ubuntu is www-data $ sudo addgroup subversion $ sudo usermod-G subversion-a www-data to create the svn version Library www.2cto.com $ sudo mkdir/home/svn $ cd/home/svn create SVN file repository $ sudo svnadmin create/home/svn/myproject grant the members of the group the corresponding permissions on all files added to the file repository: $ sudo chmod-R g + rws myproject $ sudo chown-R root: subversion myproject access method file: // directly access the file repository on the local hard disk http: // use the WebDAV protocol to access Apache 2 Web servers that support Subversion https: // similar to http: //, and support SSL-encrypted svn: // access svnserve server svn + ssh through the built-in protocol: // similar to svn: //, you can perform this operation when testing on the server through the SSH channel. $ svn co file:///home/svn/myproject Or $ svn co file://localhost/home/svn/myproject If so, you can perform remote operations to achieve collaborative development. you must add the following code snippets to your/etc/apache2/mod-available/dav_svn.conf file, which can also be used in http. conf. DAV svn SVNPath/home/svn/myproject AuthType Basic AuthName "test" AuthUserFile/etc/subversion/passwd Require valid-user Next, you need to create the/etc/subversion/passwd file, which contains the details of user authorization. To add a user, run the following command: sudo htpasswd-c/etc/subversion/passwd user_name and then access $ svn co http using the following command: // hostname/svn/myproject -- username user_name. On windows, you can install the subversion client for testing. after importing the project, you can use svn log to check whether user_name has done anything. So far, a svn server for collaborative development has been successfully built.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.