共计 9571 个字符,预计需要花费 24 分钟才能阅读完成。
Linux 版本:RHEL7.0
SVN 下载地址 http://subversion.apache.org/
下载页面
RHEL7 DVD 里面自带
由于需要相应的关联包, 使用 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
查看配置文件
创建默认目录
创建一个新项目
查看目录下面内容
[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
修改前
修改后
修改 passwd 文件新建用户
设置权限,修改文件 /var/svn/project_lz/conf/authz
增加以下表示,用户对其有读写权限。
重启 svn 服务
设置开机自启动 svn 服务
配置防火墙,查看端口
防火墙添加端口
重启防火墙
如果 selinux 开启了的话 设置 selinux
Linux 版本:RHEL7.0
SVN 下载地址 http://subversion.apache.org/
下载页面
RHEL7 DVD 里面自带
由于需要相应的关联包, 使用 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 上面安装客户端测试,一直下一步即可
在资源管理器里面右键,点击 check out
填写以下内容
成功
提交测试,
配置完成。
前面报了个错,处理方法如下
Error /svnserve.conf:19 Option expected
原因是配置文件里面行前面有空格
去掉前面的空格该错误消失