Fedora16 install Subversion1. Install subversion, mod_dav_svn # yuminstallsubversionmod_dav_svn2, create svn version library # mkdir-p/repos # svnadmincreate/repos/doc # chown-R & nbs
Fedora 16 install Subversion
1. Install subversion and mod_dav_svn
# Yum install subversion mod_dav_svn
2. Create an svn version Library
#
Mkdir-P/repos
# Svnadmin create/repos/doc
# Chown-R apache. apache/repo
3. Start the svn Service
# Svnserve -- daemon -- root =/repos -- listen-port = 3690
Note: To disable the svn service, use # killall svnserve. If svn is automatically started, configure the/etc/sysconfig/svnserve file and add the following content:
# Svnserve options
OPTIONS = "-r/repos"
Enable port 3690. In the/etc/sysconfig/iptables file, add
-A input-m state -- state NEW-m tcp-p udp -- dport 3690-j ACCEPT
Run chkconfig -- list to check whether the svnserve service is disabled at runlevel 123456 by default. Use chkconfig -- level 2345 svnserve on to open it at the corresponding runlevel.
Run the following command to manually enable, disable, and restart svnserve:
# Service svnserve
Start
# Service svnserve stop
# Service svnserve restart
4. I want to use svn.linuxidc.com to access the svn server domain name, modify the configuration file/etc/httpd/conf/httpd. conf, and add the virtual host svn.linuxidc.com
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot/repos
ServerName svn.linuxidc.com
ErrorLog logs/svn.linuxidc.com-error_log
CustomLog logs/svn.linuxidc.com-access_log common
Allow from all
DAV svn
SVNParentPath/repos
5. To access the VM locally, you can add a Domain Name Pointing to the/etc/hosts file.
127.0.0.1 svn.linuxidc.com
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5