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

解决:

相关推荐
恬静的小魔龙2 天前
【群晖Nas】群晖Nas中实现SVN Server功能、Docker/ContainerManager等
docker·svn·容器
技术策划Boring5 天前
什么是 SVN Blame 以及如何使用
svn
小疙瘩9 天前
Windows 11 安装SVN 服务端和客户端
svn
长沙红胖子Qt13 天前
SVN培训笔记(三):使用sourceTree管理svn项目添加、修改、删除和下载指定版本操作
svn·sourcetree
长沙红胖子Qt17 天前
SVN培训笔记(二):使用sourceTree通过git桥接管理svn项目
git·svn·sourcetree·sourcetree管理svn
Snower_202217 天前
CentOS 7 搭建 SVN 服务器(精简版教程)
linux·运维·服务器·svn·centos
siqiangming19 天前
将SVN项目迁移到Git,保留提交记录
git·svn
小趴菜不能喝20 天前
Linux 搭建SVN服务
linux·运维·svn
在下小孙21 天前
Git与SVN常用指令
git·svn
Albert Edison1 个月前
【Git】多人协作二(不同分支下)
git·elasticsearch·svn·github