你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS 6.4 搭建SVN服务器

[日期:2014-01-23] 来源:Linux社区  作者:Linux [字体:大 中 小]

二.设置开机启动文件

1.  编辑/etc/rc.local

文件内容如下(在touch /var/lock/subsys/local下面添加一行)

#!/bin/sh

#

# This script will be executed *after* all the other init scripts.

# You can put your own initialization stuff in here if you don’t

# want to do the full Sys V style init stuff.

                touch /var/lock/subsys/local

svnserve    -d  -r  /opt/svn/repos

如图:

三.启动SVN服务

    1.启动svn服务,svn服务默认端口为3690,可以使用“netstat -ntlp”命令查看服务启动是否成功:

        #svnserve  -d  -r  /opt/svn/repos

如果已经有svn在运行,可以换一个端口运行
svnserve -d -r /opt/svn/repos –listen-port 3391

这样同一台服务器可以运行多个svnserve

    2.启动成功后就可以使用了

        a.建议采用TortoiseSVN, 连接地址为: svn://your server address (如果指定端口需要添加端口  :端口号

        b.或者用命令行连接:

            svn  co svn://ip/

      连接上之后就可以使用了。

更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款