惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 【当耐特】
博客园_首页
The GitHub Blog
The GitHub Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
D
Docker
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
小众软件
小众软件
I
InfoQ
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky

博客园 - 漂泊雪狼

关于SeaTunnel 达梦数据迁移无法自动建表的问题 Kettel链接达梦数据 Elastic Job 入门笔记 记一次Spring boot集成mybatis错误修复过程 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Spring Boot 框架下使用MyBatis访问数据库之基于XML配置的方式 CentOS7下载配置PostgreSQL的pgAgent运行代理作业 ElasticSearch 中文分词搜索环境搭建 学习笔记——Ubuntu下使用Docker包部署禅道任务管理系统 windows下的Redis主从集群搭建 asp.net mvc5中使用Swagger 自动生成WebApi文档笔记 使用Fiddler 4 调用WebService 获取geometry边界范围的示例代码 使用pgrouting进行最短路径搜索 Nginx设置防止IP及非配置域名访问 java 调用c# web api 代码 一台机器部署多个tomcat服务 nginx反向代理多个服务 笔记 利用Kettle 从Excel中抽取数据写入SQLite sql server 统计信息 sql server 索引碎片相关问题
Centos 7.5下搭建SVN源代码服务器
漂泊雪狼 · 2018-06-01 · via 博客园 - 漂泊雪狼

1、先查看是否存在svn,没有就需要安装svn

svnserve --version #查看svn版本号
which svn #查看svn程序所在目录
yum install subversion -y #安装svn
systemctl cat svnserve.service #查看系统配置文件

2、修改svn全局配置文件中指向的目录

3、创建svn版本库

sudo svnadmin create /opt/svn/topevery

4、修改authz、passwd、 svnserve.conf三个文件建立用户组、用户、目录权限

authz

[groups]
manager=wilson
dev=wilson01

[/]
@manager=rw
[/UI]
@dev]

passwd

[users]
# harry = harryssecret
# sally = sallyssecret
wilson=123
wilson01=1234

svnserve.conf

[general]

anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = topevery
[sasl]

 5、编辑服务配置文件

在 /etc/init.d 目录下,创建脚本 svnd

touch svnd  
chmod u+x svnd  

svnd文件内容如下

#!/bin/sh
# chkconfig: 2345 10 90
# description: svn server
SVN_HOME=/opt/svn/topevery
if [ ! -f "/usr/bin/svnserve" ]
then
echo "svnserver startup: cannot start"
exit
fi
case "$1" in
start)
echo "Starting svnserve…"
/usr/bin/svnserve -d --listen-port 3690 -r $SVN_HOME
echo "Finished!"
;;
stop)
echo "Stoping svnserve…"
killall svnserve
echo "Finished!"
;;
restart)
$0 stop
$0 start
 
;;
*)
echo "Usage: svn { start | stop | restart } "
exit 1
esac

svnd

启动svn 

6、开放防火墙端口

firewall-cmd --zone=public --add-port=3690/tcp --permanent 

firewall-cmd --reload  
netstat -ln | grep 3690  
ps aux|grep svnserve

7、设置svn服务为自启动

chkconfig --add svnd  
chkconfig svnd on  

遇到的问题及解决方法

1、Can't open file '/opt/svn/topevery/db/txn-current-lock': Permission denied

关闭SELinux

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# vim /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled,保存后退出

2、