今天封装使用官方mysql docker镜像时,发现svn版本有问题。需要更新到1.9版本。方法如下。

Subversion 1.9 on Debian Jessie

November 4, 2015 Views: 250ArticlesDebian, Subversion, WanDisco

If you would like to use the latest version of Subversion and prefer using the package manager like me, the following steps below will enable you to install Subversion 1.9 from the WanDisco repositories. At the time of writing, the latest version in the WanDisco repo is 1.9.2.

1 #!/bin/bash
2 # download the GPG key of the repository and add it to apt:
3 wget http://opensource.wandisco.com/wandisco-debian.gpg -O /tmp/wandisco-debian.gpg
4 # add downloaded key to apt
5 apt-key add /tmp/wandisco-debian.gpg
6 # create apt sources file for wandisco repo
7 echo "deb http://opensource.wandisco.com/debian/ jessie svn19" > /etc/apt/sources.list.d/wandisco.sources.list
8 # update apt and upgrade packages
9 apt-get update ; apt-get install subversion subversion-tools

It is important to note that the subversion install on Debian Jessie does not include a systemd start script for svnserve. This problem can easily be solved with the service start script provided below. Create an executable file at /etc/init.d/svnserve with the contents below. Note the OPTIONS line in the script below will need to be updated to reflect your specific environment.

view source print?
1 #!/bin/sh -e
2 ### BEGIN INIT INFO
3 # Provides:          subversion
4 # Required-Start:    $network
5 # Required-Stop:     $network
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: Start daemon at boot time
9 # Description:       Enable service provided by daemon.
10 ### END INIT INFO
11  
12 test -f /usr/bin/svnserve || exit 0
13  
14 OPTIONS="-d -T -r /srv/svn --log-file /var/log/svn.log"
15  
16 case "$1" in
17  start)
18   echo -n "Starting subversion daemon:"
19   echo -n " svnserve"
20   start-stop-daemon --start --quiet --oknodo --chuid www-data:www-data --exec /usr/bin/svnserve -- $OPTIONS
21   echo "."
22   ;;
23  
24  stop)
25   echo -n "Stopping subversion daemon:"
26   echo -n " svnserve"
27   start-stop-daemon --stop --quiet --oknodo --exec /usr/bin/svnserve
28   echo "."
29   ;;
30  
31  reload)
32   ;;
33  
34  force-reload)
35   $0 restart
36   ;;
37  
38  restart)
39   $0 stop
40   $0 start
41   ;;
42  
43  *)
44   echo "Usage: /etc/init.d/svnserve(start|stop|reload|restart)"
45   exit 1
46   ;;
47  
48 esac
49  
50 exit 0

Once your script is in place and set as executable, you can test it with the command below. Assuming your test succeeds, you can then instruct systemd to start the service at boot time.

1 # Test our new svnserve service
2 /etc/init.d/svnserve start
3 # Enable at boot in systemd
4 update-rc.d svnserve enable

参考资料:

https://oitibs.com/subversion-1-9-on-debian-jessie/

【Linux】debian jessie版本安装1.9 svn相关推荐

  1. Linux :debian(ubuntu)下安装和使用haskell

    文章目录 Linux :debian(ubuntu)下安装haskell 安装 使用 Linux :debian(ubuntu)下安装haskell 安装 直接使用apt进行安装: sudo apt- ...

  2. Linux: debian/ubuntu下安装和使用Java 11

    Linux: debian/ubuntu下安装和使用Java 11 只需6行命令: su - echo "deb http://ppa.launchpad.net/linuxuprising ...

  3. Linux: debian/ubuntu下安装和使用Java 8

    Linux: debian/ubuntu下安装和使用Java 8 7行命令解决问题: su - echo "deb http://ppa.launchpad.net/webupd8team/ ...

  4. Linux: debian/ubuntu下安装Neo4j

    文章目录 Linux: debian/ubuntu下安装Neo4j Linux: debian/ubuntu下安装Neo4j Neo4j的官方仓库地址:neo4j/neo4j: Graphs for ...

  5. Linux下EasyPanel版本安装及升级

    Linux下EasyPanel版本安装及升级 本脚本为官方脚本,集成了kangle web服务器和mysql,仅支持centos 5和centos 6. 执行下面的命令即可,安装程序将自动安装或者升级 ...

  6. linux debian 下 docker安装windows应用 qq 微信 迅雷

    其实,不是我针对谁,我只是想说,github上都有人家的源码,最官方的指导,我咋才知道 环境 debian9.11 下载 docker 大致有两种:不过我这里不是全都可行 但是都挺方便 apt 先说, ...

  7. linux(debian 11)下安装nginx

    在linux系统环境中,安装nginx的方式是有多种的,这里就不一一介绍了,今天主要记录一种手动安装配置的方式. 首先,可以到nginx官网找到合适的资源. 找到下载板块 小编这里以1.18为例,下载 ...

  8. Linux debian 11上安装 Google Chrome浏览器教程

    Google Chrome简介 Google Chrome是世界上最受欢迎的网络浏览器.它是为现代网络构建的快速,安全的浏览器.Chrome不是开放源代码的浏览器,也不包含在官方Debian存储库中. ...

  9. linux debian u盘安装,Debian U盘安装盘,debian安装盘

    Debian U盘安装盘,debian安装盘 来源:Installing Debian Sarge from a USB memory stick (USB key) updated:http://w ...

最新文章

  1. python opencv 图像膨胀
  2. 简析并查集[C/C++]
  3. MySQL5.6主从复制搭建基于日志(binlog)
  4. 开始学习jQuery和准备工作
  5. python socket send_python socket 连续send,出现粘包问题
  6. C++(7)--for循环,break,continue语句
  7. 【mysql基础知识】解决java连接mysql时将localhost改为本机的ip地址后失败问题
  8. in band out of band
  9. vue - rimraf
  10. 南非世界杯火热角逐 金山网盾开启搜索保护
  11. mysql主从同步图
  12. 软件dfmea_fmea软件|失效模式与效应分析(fmea)下载 v03.01.13.0中文版 - 121下载站
  13. 系统分析师——论文篇(三)
  14. Racket编程指南——1 欢迎来到Racket!
  15. matlab受力分析,基于Matlab的多支座蒸压釜的受力分析和强度计算
  16. QQ如何应对中年困境?
  17. 51制作贪吃蛇小游戏,附带Proteus仿真
  18. printf 中的伪灵异事件
  19. mysql c盘满了 怎么办_C盘满了如何清理
  20. MySQL——INSERT INTO

热门文章

  1. Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)
  2. FWK005 parse may not be called while parsing
  3. c# thread 编程
  4. python 之 前端初识 html
  5. ThreadPoolExecuotor源码参考
  6. Vim强制写入w!的分析
  7. Linux学习笔记4-CentOS7中redis3.2.9安装教程
  8. sqlite3-查看数据库
  9. [转]C++中的static关键字的总结
  10. c语言数据结构学习心得——线性表