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

解决:

相关推荐
高旭的旭1 天前
Gitlab 配置自定义 clone 地址
svn·ssh·gitlab·code
白帽小野3 天前
SVN和Git两种版本管理系统对比
git·svn·版本控制系统
闲人一小枚8 天前
mac Monterey 安装svn(已解决)
macos·svn
Jsy05090615 天前
dvcs-ripper ---CTFHub技能树: SVN泄露
svn·小白·网安·信息搜集
长沙红胖子Qt16 天前
关于 svn无法查看下拉日志提示“要离线”和根目录看日志“no data” 的解决方法
svn·离线·nodata·日志查看失败
码事漫谈1 个月前
SVN 仓库迁移与清理指南:如何正确切换仓库并保持代码整洁
svn
天和地丰1 个月前
AAltium SVN Database Library 配置使用说明
数据库·嵌入式硬件·svn
我是李武涯1 个月前
svn与git Merge重要区别讲解
git·svn
Ellie艾藜1 个月前
mac版SVN客户端
svn
向上的车轮1 个月前
SVN与GIT的区别,分别使用与哪些管理场景?
git·svn