关闭

Centos 6.5 下IF.SVNAdmin 安装

1217人阅读 评论(0) 收藏 举报
#1. 安装 apache svn php 
yum install httpd mod_dav_svn subversion php -y
#2. 安装 SVNAdmin
wget http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download
unzip svnadmin-1.6.2.zip  
cp -r iF.SVNAdmin-stable-1.6.2/ /var/www/html/svnadmin  
# chown -R apache:apache /var/www/html/svnadmin/ 
#3. 配置SVN
# vi /etc/httpd/conf.d/subversion.conf
<Location /svn>  
   DAV svn  
   SVNParentPath /var/www/svn  
  
    AuthType Basic  
    AuthName "Restricted Access"  
  
    #File will be created by SVNManager, keep location in mind!  
    AuthUserFile /var/www/svnconfig/passwdfile  
  
    Require valid-user  
    #SSLRequireSSL  
  
    #File will be created by SVNManager, keep location in mind  
    AuthzSVNAccessFile /var/www/svnconfig/accessfile  
  
   # Limit write permission to list of valid users.  
   #<LimitExcept GET PROPFIND OPTIONS REPORT>  
   #   # Require SSL connection for password protection.  
   #   # SSLRequireSSL  
  
   #   AuthType Basic  
   #   AuthName "Authorization Realm"  
   #   AuthUserFile /path/to/passwdfile  
   #   Require valid-user  
   #</LimitExcept>  
</Location>  
#4. 创建存放repo目录和权限信息目录
#repo目录
mkdir -p /var/www/svn 
#权限信息目录
mkdir -p /var/www/svnconfig  
#创建svn权限信息文件
#accessfile 用户、用户组(R/W)权限
#passwdfile 用户信息
touch /var/www/svnconfig/accessfile /var/www/svnconfig/passwdfile
chown -R apache:apache /var/www/
#5. iptables设置开启,开启80端口
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 
/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT 
/etc/rc.d/init.d/iptables save
#6. 设置开机启动WebServer
chkconfig httpd on
service httpd restart
# chkconfig subversion on

# 2、修改 /etc/rc.d/rc.local 这个文件:
# 例如将 apache、mysql、samba、svn 等这些服务的开机自启动问题一起搞定:
# vi /etc/rc.d/rc.local
# 添加以下命令
# /usr/sbin/apachectl start
# /etc/rc.d/init.d/mysqld start
# /etc/rc.d/init.d/smb start
# /usr/local/subversion/bin/svnserve -d
#now we can  http://<IP>/svnadmin
# 192.168.168.200/svnadmin
#如果出现Could not reliably determine the server`s fully qualified domain name,
#vi /etc/httpd/conf/httpd.conf 加入一句 ServerName localhost:80
/var/www/svnconfig/accessfile
/var/www/svnconfig/passwdfile
/var/www/svn/
/usr/bin/svn
/usr/bin/svnadmin

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:131689次
    • 积分:974
    • 等级:
    • 排名:千里之外
    • 原创:29篇
    • 转载:11篇
    • 译文:1篇
    • 评论:0条