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 天前
基于多因子流动性模型的“黄金闪崩”解析:利率预期强化与资金再平衡驱动的金价8%下跌机制
大数据·人工智能·svn·能源
金融小师妹1 天前
基于多因子定价模型解析:美元强势与利率预期重构驱动的金价8连跌机制
大数据·人工智能·svn·能源
shughui4 天前
SVN 下载+安装+汉化+使用全教程(附安装包详细图文)
svn
猿小路5 天前
SVN安装及IDEA集成详细使用教程
java·svn·intellij-idea
Liu.7746 天前
vscode使用git和svn
git·vscode·svn
苦逼IT运维7 天前
SVN 仓库目录迁移,仓库 “降级” 成子目录实战
linux·运维·ci/cd·svn·运维开发
企鹅郁金香8 天前
Gitlab和Confluence和Svn的备份
svn·gitlab·confluence·gitlab备份·svn备份·confluence备份
阿萨德528号9 天前
SVN提交报错“Unable to create pristine install stream“解决方案
svn
云中飞鸿9 天前
git、svn;TortoiseGit、TortoiseSVN;gitlab、github、bitbucket、bamboo有什么关系?
git·svn·gitlab
谁动了我的代码?11 天前
VNC中使用QT的GDB调试,触发断点时与界面窗口交互导致整个VNC冻结
开发语言·qt·svn