centos7安装SVN

javascript 复制代码
[root@VM-16-3-centos ~]# yum install subversion -y
[root@VM-16-3-centos ~]# svnserve --version
// 创建目录
[root@VM-16-3-centos ~]# mkdir -p /opt/svn/repos
// 创建新的空版本库,执行后会在repos文件夹下建立多个文件,待修改
[root@VM-16-3-centos ~]# svnadmin create /opt/svn/repos
[root@VM-16-3-centos ~]# cd /opt/svn/repos/conf
// 修改passwd文件
[root@VM-16-3-centos ~]# vim passwd
[users]
# harry = harryssecret
# sally = sallyssecret
用户名=密码

// 在该文件添加如下配置,用户名=读写
[root@VM-16-3-centos ~]# vim authz
[/]
用户名=rw

[root@VM-16-3-centos ~]# vim svnserver.conf
anon-access = none
auth-access = write
password-db = password
authz-db = authz
realm = /opt/svn/repos

// SVN默认版本库目录是var/svn,这里由于我是创建在/opt/svn/repos下,所以这里需要替换一下
[root@VM-16-3-centos ~]# vim /etc/sysconfig/svnserve
OPTIONS="-r /opt/svn"

[root@VM-16-3-centos ~]# killall svnserve
[root@VM-16-3-centos ~]# svnserve -d -r /opt/svn/repos
[root@VM-16-3-centos ~]# systemctl restart svnserve
[root@VM-16-3-centos ~]# systemctl status svnserve

如果出现:E000098: Can't bind server socket: Address already in use报错,

执行如下命令

javascript 复制代码
[root@VM-16-3-centos ~]# lsof -i:3690
[root@VM-16-3-centos ~]# kill -9 PID
[root@VM-16-3-centos ~]# systemctl restart svnserve

windows客户端TortoiseSVN连接SVN服务时配置:

1、安装SVN

2、桌面右键选择check out

OK

idea配置SVN步骤这里就直接贴别人的链接了:

https://jingyan.baidu.com/article/2a138328e1b5be074a134f2b.html

可能会遇到的问题:

1、问题:cannot run parogram "svn"

解决:重新安装SVN,选择modify,

接着一直下一步即可

2、问题:鼠标右键项目时没有出现SVN

解决:

相关推荐
এ慕ོ冬℘゜20 天前
Git 基础规范:小步提交、提交信息规范与常用命令
git·svn
zjx238821 天前
批量删除.svn信息的Windows脚本
svn
এ慕ོ冬℘゜23 天前
Git 基础入门|和 SVN 对比 + 四大区域 + 常用命令详解
git·svn
阿萨德528号1 个月前
IDEA 项目 SVN 配置消失、版本控制变成 Git 且无 VCS 菜单的解决办法
git·svn·intellij-idea
天府云创1 个月前
Anthropic重做Git:Scion——Agent时代的版本管理系统
git·svn·版本控制·软件设计·迭代升级·scion
爱吃辣椒的小豆豆1 个月前
Apache 日志轮转触发 SVN 更新异常
svn·apache
鶴哥只手遮天1 个月前
Apache Subversion 1.15 源码深度剖析-第 3 章 文件系统层(FS 抽象与 FSFS 后端)
svn·开源
鶴哥只手遮天1 个月前
Apache Subversion 1.15 源码深度剖析-第 6 章 工作副本:WC-NG 与 pristineless
svn·开源
解道Jdon1 个月前
FigCraft把Figma用Rust从零重写了一遍
ide·windows·git·svn·eclipse·github·visual studio
Peter(阿斯拉)1 个月前
[macOS Tahoe 26]_[使用SmartSVN访问库路径报错的问题]
macos·svn·tahoe·smartsvn·macos26