linux版svn 软件,linux下搭建svn版本控制软件

环境:

版本管理服务器:Linux version 2.6.18-308.el5

客户端:win7

一、服务器端安装步骤

1、安装svn

yum -y install subversion

2、启动svn

svnserve -d -r /www/svndata

启动svn时以下异常

svnserve: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

找不到libaprutil-1.so.0,于是

find / -name libaprutil-1.so.0

结果为

/www/wdlinux/httpd-2.2.22/lib/libaprutil-1.so.0

3、将apr依赖包添加到共享库

查看共享库配置文件

more /etc/ld.so.conf

include ld.so.conf.d/*.conf

创建apr共享库配置文件

cd /etc/ld.so.conf.d/

vi httpd-apr.conf

/www/wdlinux/httpd-2.2.22/lib/

更新共享库配置

ldconfig -v

4、检测是否安装成功

svn --version

结果为

fcecaa27ea5212ceb9bf034c36bfbf34.gif

svn, version 1.6.11 (r934486)

compiled Mar 5 2014, 14:28:03

Copyright (C) 2000-2009 CollabNet.

Subversion is open source software, see http://subversion.tigris.org/

This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.

- handles ‘http‘ scheme

- handles ‘https‘ scheme

* ra_svn : Module for accessing a repository using the svn network protocol.

- with Cyrus SASL authentication

- handles ‘svn‘ scheme

* ra_local : Module for accessing a repository on local disk.

- handles ‘file‘ scheme

fcecaa27ea5212ceb9bf034c36bfbf34.gif

此时说明已将安装成功

5、启动svn

svnadmin create /www/svndata/testproject

修改配置文件svnserve.conf

cd /www/svndata/testproject/conf

vi svnserve.conf

#添加如下配置项

anon-access=none

auth-access=write

password-db=passwd

修改密码文件passwd,添加相应的用户和密码

vi passwd

[users]

harry = harryssecret

sally = sallyssecret

重启svn,为了增加svn的安全性,这里将svnm的默认端口3690改为6534。

#关闭svn服务

killall svnserve

#新的端口启动

svnserve -d -r /www/svndata --listen-port 6534

当然,如果出于安全性的考虑,你还可以添加https的支持。这里就不再详述。

6、使用svn

svn客户端中使用 “svn://你的IP:端口/项目名称/”进行项目的下载和管理等,当然你也可以通过命令行进行管理,这就见仁见智了。

svn://你的IP:端口/项目名称/

至此,svn的安装就告一段落了。

文章来源:https://www.cnblogs.com/rwxwsblog/p/4665199.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值