阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Linux SVN服务配置 Subversion版本控制

196次阅读
没有评论

共计 9571 个字符,预计需要花费 24 分钟才能阅读完成。

Linux 版本:RHEL7.0

SVN 下载地址 http://subversion.apache.org/

下载页面

Linux SVN 服务配置 Subversion 版本控制

RHEL7 DVD 里面自带

Linux SVN 服务配置 Subversion 版本控制

由于需要相应的关联包, 使用 yum 源安装软件

[root@dns Packages]# yum -y install subversion

Failed to set locale, defaulting to C

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Repository ‘y’ is missing name in configuration, using id

y | 4.1 kB 00:00:00

Resolving Dependencies

–> Running transaction check

—> Package subversion.x86_64 0:1.7.14-6.el7 will be installed

–> Processing Dependency: subversion-libs(x86-64) = 1.7.14-6.el7 for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Running transaction check

—> Package apr.x86_64 0:1.4.8-3.el7 will be installed

—> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed

—> Package subversion-libs.x86_64 0:1.7.14-6.el7 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================

Package Arch Version Repository Size

==================================================================================================================

Installing:

subversion x86_64 1.7.14-6.el7 y 1.0 M

Installing for dependencies:

apr x86_64 1.4.8-3.el7 y 103 k

apr-util x86_64 1.5.2-6.el7 y 92 k

subversion-libs x86_64 1.7.14-6.el7 y 921 k

Transaction Summary

==================================================================================================================

Install 1 Package (+3 Dependent packages)

Total download size: 2.1 M

Installed size: 7.5 M

Downloading packages:

——————————————————————————————————————

Total 14 MB/s | 2.1 MB 00:00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : apr-1.4.8-3.el7.x86_64 1/4

Installing : apr-util-1.5.2-6.el7.x86_64 2/4

Installing : subversion-libs-1.7.14-6.el7.x86_64 3/4

Installing : subversion-1.7.14-6.el7.x86_64 4/4

Verifying : subversion-1.7.14-6.el7.x86_64 1/4

Verifying : subversion-libs-1.7.14-6.el7.x86_64 2/4

Verifying : apr-util-1.5.2-6.el7.x86_64 3/4

Verifying : apr-1.4.8-3.el7.x86_64 4/4

Installed:

subversion.x86_64 0:1.7.14-6.el7

Dependency Installed:

apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7 subversion-libs.x86_64 0:1.7.14-6.el7

Complete!

[root@dns Packages]#

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2014-08/105921p2.htm

 

Linux 中 Subversion 配置实例 http://www.linuxidc.com/Linux/2012-02/53109.htm

CentOS 6.2 SVN 搭建 (YUM 安装) http://www.linuxidc.com/Linux/2013-10/91903.htm

Apache+SVN 搭建 SVN 服务器 http://www.linuxidc.com/Linux/2013-03/81379.htm

Windows 下 SVN 服务器搭建和使用 + 客户端重新设置密码 http://www.linuxidc.com/Linux/2013-05/85189p5.htm

Ubuntu Server 12.04 安装 SVN 并迁移 Virtual SVN 数据 http://www.linuxidc.com/Linux/2013-05/84695.htm

Ubuntu Server 搭建 svn 服务以及迁移方法 http://www.linuxidc.com/Linux/2013-05/84693.htm

借助网盘搭建 SVN 服务器 http://www.linuxidc.com/Linux/2013-10/91271.htm

查看配置文件

Linux SVN 服务配置 Subversion 版本控制

创建默认目录

Linux SVN 服务配置 Subversion 版本控制

创建一个新项目

Linux SVN 服务配置 Subversion 版本控制

查看目录下面内容

[root@dns Packages]# ls -R /var/svn/project_lz

/var/svn/project_lz:

README.txt conf db format hooks locks

/var/svn/project_lz/conf:

authz passwd svnserve.conf

/var/svn/project_lz/db:

current fs-type min-unpacked-rev revs txn-current txn-protorevs write-lock

format fsfs.conf revprops transactions txn-current-lock uuid

/var/svn/project_lz/db/revprops:

0

/var/svn/project_lz/db/revprops/0:

0

/var/svn/project_lz/db/revs:

0

/var/svn/project_lz/db/revs/0:

0

/var/svn/project_lz/db/transactions:

/var/svn/project_lz/db/txn-protorevs:

/var/svn/project_lz/hooks:

post-commit.tmpl post-revprop-change.tmpl pre-commit.tmpl pre-revprop-change.tmpl start-commit.tmpl

post-lock.tmpl post-unlock.tmpl pre-lock.tmpl pre-unlock.tmpl

/var/svn/project_lz/locks:

db-logs.lock db.lock

修改配置文件 /var/svn/project_lz/conf/svnserve.conf

Linux SVN 服务配置 Subversion 版本控制

修改前

Linux SVN 服务配置 Subversion 版本控制

修改后

Linux SVN 服务配置 Subversion 版本控制

修改 passwd 文件新建用户

Linux SVN 服务配置 Subversion 版本控制

设置权限,修改文件 /var/svn/project_lz/conf/authz

增加以下表示,用户对其有读写权限。

Linux SVN 服务配置 Subversion 版本控制

重启 svn 服务

Linux SVN 服务配置 Subversion 版本控制

设置开机自启动 svn 服务

Linux SVN 服务配置 Subversion 版本控制

配置防火墙,查看端口

Linux SVN 服务配置 Subversion 版本控制

防火墙添加端口

Linux SVN 服务配置 Subversion 版本控制

重启防火墙

Linux SVN 服务配置 Subversion 版本控制

如果 selinux 开启了的话 设置 selinux

Linux 版本:RHEL7.0

SVN 下载地址 http://subversion.apache.org/

下载页面

Linux SVN 服务配置 Subversion 版本控制

RHEL7 DVD 里面自带

Linux SVN 服务配置 Subversion 版本控制

由于需要相应的关联包, 使用 yum 源安装软件

[root@dns Packages]# yum -y install subversion

Failed to set locale, defaulting to C

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Repository ‘y’ is missing name in configuration, using id

y | 4.1 kB 00:00:00

Resolving Dependencies

–> Running transaction check

—> Package subversion.x86_64 0:1.7.14-6.el7 will be installed

–> Processing Dependency: subversion-libs(x86-64) = 1.7.14-6.el7 for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7.14-6.el7.x86_64

–> Running transaction check

—> Package apr.x86_64 0:1.4.8-3.el7 will be installed

—> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed

—> Package subversion-libs.x86_64 0:1.7.14-6.el7 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================

Package Arch Version Repository Size

==================================================================================================================

Installing:

subversion x86_64 1.7.14-6.el7 y 1.0 M

Installing for dependencies:

apr x86_64 1.4.8-3.el7 y 103 k

apr-util x86_64 1.5.2-6.el7 y 92 k

subversion-libs x86_64 1.7.14-6.el7 y 921 k

Transaction Summary

==================================================================================================================

Install 1 Package (+3 Dependent packages)

Total download size: 2.1 M

Installed size: 7.5 M

Downloading packages:

——————————————————————————————————————

Total 14 MB/s | 2.1 MB 00:00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : apr-1.4.8-3.el7.x86_64 1/4

Installing : apr-util-1.5.2-6.el7.x86_64 2/4

Installing : subversion-libs-1.7.14-6.el7.x86_64 3/4

Installing : subversion-1.7.14-6.el7.x86_64 4/4

Verifying : subversion-1.7.14-6.el7.x86_64 1/4

Verifying : subversion-libs-1.7.14-6.el7.x86_64 2/4

Verifying : apr-util-1.5.2-6.el7.x86_64 3/4

Verifying : apr-1.4.8-3.el7.x86_64 4/4

Installed:

subversion.x86_64 0:1.7.14-6.el7

Dependency Installed:

apr.x86_64 0:1.4.8-3.el7 apr-util.x86_64 0:1.5.2-6.el7 subversion-libs.x86_64 0:1.7.14-6.el7

Complete!

[root@dns Packages]#

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2014-08/105921p2.htm

 

Linux 中 Subversion 配置实例 http://www.linuxidc.com/Linux/2012-02/53109.htm

CentOS 6.2 SVN 搭建 (YUM 安装) http://www.linuxidc.com/Linux/2013-10/91903.htm

Apache+SVN 搭建 SVN 服务器 http://www.linuxidc.com/Linux/2013-03/81379.htm

Windows 下 SVN 服务器搭建和使用 + 客户端重新设置密码 http://www.linuxidc.com/Linux/2013-05/85189p5.htm

Ubuntu Server 12.04 安装 SVN 并迁移 Virtual SVN 数据 http://www.linuxidc.com/Linux/2013-05/84695.htm

Ubuntu Server 搭建 svn 服务以及迁移方法 http://www.linuxidc.com/Linux/2013-05/84693.htm

借助网盘搭建 SVN 服务器 http://www.linuxidc.com/Linux/2013-10/91271.htm

在 Windows 上面安装客户端测试,一直下一步即可

Linux SVN 服务配置 Subversion 版本控制

Linux SVN 服务配置 Subversion 版本控制

在资源管理器里面右键,点击 check out

Linux SVN 服务配置 Subversion 版本控制

填写以下内容

Linux SVN 服务配置 Subversion 版本控制

Linux SVN 服务配置 Subversion 版本控制

成功

Linux SVN 服务配置 Subversion 版本控制

提交测试,

Linux SVN 服务配置 Subversion 版本控制

配置完成。

前面报了个错,处理方法如下

Error /svnserve.conf:19 Option expected

Linux SVN 服务配置 Subversion 版本控制

原因是配置文件里面行前面有空格

Linux SVN 服务配置 Subversion 版本控制

去掉前面的空格该错误消失

正文完
星哥玩云-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计9571字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中