SVN server has 2 modes of operation: Standalone server and Apache. Each of the 2 ways has its pros and cons.
SVN stores version data in 2 different ways: BdB and Fsfs. Because the BDB way in the server interruption, it is possible to lock the data (I am in the LDAP when the damage, can not be cured), so it is safer to Fsfs way.
1. Install Subversion:
Yum Install subversion.i386
(Note: URPMI subversion subversion-server Subversion-tool required to be installed under Mandriva)
2, create Subversion version library, and modify permissions
# mkdir-p #SVNPATH/repos
# svnadmin Create #SVNPATH/repos/project1
3. Start Subversion service and set version library location
Note: The root user boot service is not recommended, with the default port number of 3690
4.# Yum List mod_dav_svn
Note: MOD_DAV_SVN-related package mod_dav_svn.i386 can be found and installed mod_dav_svn.i386
# yum Install mod_dav_svn.i386
Note: After the installation is complete, you can find that the subversion.conf file is automatically generated under the/etc/httpd/conf.d folder, and the following two lines are automatically added:
Where-D is run in the background,-r specifies the root directory of the server, so that it can be accessed directly using the SVN://server IP when accessing the server. If the server has multiple IP--listen-host to specify the IP address of the listener.
We can access the SVN server via svn://192.168.1.18 in the SVN client.
For multiple code warehouses, we can also use the-r option at boot time to specify the server root directory, but we need to write the relative path of each warehouse relative to the SVN root directory at the time of the access.
For example, we have two code warehouses/home/svnroot/repository/test1 and/home/svnroot/repository/test2, we use svnserve-d-r/home/svnroot/ Repository--listen-host 192.168 1.18来 boot, you can access two projects with Svn://192.168.1.18/test1 and svn://192.168.1.200/test2 on client access
After startup is complete, we can use PS Aux|grep svnserv to see if there is a svnserve process.
10. Open Server Port
The SVN default port is 3690 and you need to open the port on the firewall.
You can also use the Svnserve--listen-port option to specify a port that is already open, but in this case the client must also add ports, such as svn://192.168.1.18:9999/.
11.yum has an interesting usage: Yum whatprovides mod_dav_svn.so
12. To install mod_dav.so under Mandriva, you can use URPMI apache-mod_dav_svn
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.