`

Cent OS 7 Linux svn 配置

 
阅读更多

[root@localhost /]# svn --version
svn,版本 1.7.14 (r1542130)
   编译于 Nov 20 2015,19:25:09

版权所有 (C) 2013 Apache 软件基金会。
此软件包含了许多人的贡献,请查看文件 NOTICE 以获得更多信息。
Subversion 是开放源代码软件,请参阅 http://subversion.apache.org/ 站点。

可使用以下的版本库访问模块:

* ra_neon : 通过 WebDAV 协议使用 neon 访问版本库的模块。
  - 处理“http”方案
  - 处理“https”方案
* ra_svn : 使用 svn 网络协议访问版本库的模块。  - 使用 Cyrus SASL 认证
  - 处理“svn”方案
* ra_local : 访问本地磁盘的版本库模块。
  - 处理“file”方案

 

[root@localhost /]# which svn
/usr/bin/svn
[root@localhost /]# svnadmin create /home/pro
[root@localhost /]# vim  /home/pro/conf/svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
[root@localhost /]# cd /home/pro/conf
[root@localhost conf]# ls
authz  passwd  svnserve.conf
[root@localhost conf]# vim passwd
xiongjiajia=123456
[root@localhost bin]# pwd
/usr/bin
[root@localhost conf]# vim /etc/xinetd.d/svn
ervice svn
{
    disable = no
    port = 3690
    socket_type = stream
    protocol = tcp
    wait = no
    user = svn
    server = /usr/bin/svnserve      
    server_args = -i -r /home/svn

}
[root@localhost bin]# xinetd /etc/init.d/xinetd restart
[root@localhost bin]# /sbin/iptables -A INPUT -i eth0 -p tcp --dport 3690 -j ACCEPT
[root@localhost bin]# /sbin/service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[root@localhost bin]# killall svnserve
svnserve: no process found
[root@localhost bin]# svnserve -d -r /home/pro --listen-host 172.16.97.154
[root@localhost bin]# ps -ef|grep svn
root      8636     1  0 11:45 ?        00:00:00 svnserve -d -r /home/pro --listen-host 172.16.97.154
root      8638 31849  0 11:45 pts/0    00:00:00 grep --color=auto svn

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics