日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

【Linux】debian jessie版本安装1.9 svn

發布時間:2024/4/17 linux 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Linux】debian jessie版本安装1.9 svn 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

今天封裝使用官方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:
3wget?http://opensource.wandisco.com/wandisco-debian.gpg?-O /tmp/wandisco-debian.gpg
4# add downloaded key to apt
5apt-key add /tmp/wandisco-debian.gpg
6# create apt sources file for wandisco repo
7echo?"deb?http://opensource.wandisco.com/debian/?jessie svn19"?> /etc/apt/sources.list.d/wandisco.sources.list
8# update apt and upgrade packages
9apt-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?
12test?-f /usr/bin/svnserve ||?exit?0
13?
14OPTIONS="-d -T -r /srv/svn --log-file /var/log/svn.log"
15?
16case?"$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?
48esac
49?
50exit?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
4update-rc.d svnserve?enable

?

參考資料:

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

總結

以上是生活随笔為你收集整理的【Linux】debian jessie版本安装1.9 svn的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。