Fedora 16 安装Subversion
Fedora 16 安装Subversion
1、安装subversion,mod_dav_svn
#yum install subversion mod_dav_svn
2、创建svn版本库
#mkdir -p /repos
#svnadmin create /repos/doc
#chown -R apache.apache /repo
#svnadmin create /repos/doc
#chown -R apache.apache /repo
3、启动svn服务
#svnserve --daemon --root=/repos --listen-port=3690
注意:关闭svn服务使用
# killall svnserve
#svnserve options
OPTIONS="-r /repos"
开启3690端口,在/etc/sysconfig/iptables文件中,添加
-A INPUT -m state --state NEW -m tcp -p udp --dport 3690 -j ACCEPT
使用chkconfig --list 查看svnserve服务默认在runlevel 123456情况下都是关闭的,使用chkconfig --level 2345 svnserve on 将其在对应runlevel下打开。
手动开启、关闭、重启svnserve,使用如下命令
# service svnserve start
# service svnserve stop
# service svnserve restart
# service svnserve stop
# service svnserve restart
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /repos
ServerName svn.linuxidc.com
ErrorLog logs/svn.linuxidc.com-error_log
CustomLog logs/svn.linuxidc.com-access_log common
<Location />
Allow from all
DAV svn
SVNParentPath /repos
</Location>
</VirtualHost>
ServerAdmin [email protected]
DocumentRoot /repos
ServerName svn.linuxidc.com
ErrorLog logs/svn.linuxidc.com-error_log
CustomLog logs/svn.linuxidc.com-access_log common
<Location />
Allow from all
DAV svn
SVNParentPath /repos
</Location>
</VirtualHost>
5、为了本地可以访问该虚拟主机,可在/etc/hosts文件,添加域名指向。
127.0.0.1 svn.linuxidc.com
相关推荐
  起点    2020-05-05  
   ECSHOP专属建设    2020-11-13  
   xzjforDream    2020-09-23  
   fenggit    2020-09-15  
   起点    2020-08-17  
   leehbhs    2020-07-26  
   leehbhs    2020-07-04  
 pub_svnserve.conf的 pub_authz.conf的配置文件有非法字符的原因引起,需要查找pub_authz.conf提的非法内容比如多余的空格删除或直接将pub_authz.conf
  起点    2020-06-28  
   leehbhs    2020-06-20  
   dingqinghu    2020-06-16  
   dengweijunkedafu    2020-06-09  
   nebulali    2020-05-27  
   起点    2020-05-10  
   83520298    2020-05-04