---
title: "linux svnserve 开机启动"
author: "113.com"
date: "2014-07-09T22:56:31Z"
tags: []
categories: ["开源软件"]
slug: "linux-svnserve"
draft: false
lastmod: "2014-07-09T22:56:31Z"
id: 2090159
url: "https://113-com.iteye.com/blog/2090159"
---

1.创建执行脚本svn.sh（/root路径下），其内容很简单，如下：

#!/bin/bash 

/usr/local/svn/bin/svnserve -d --listen-port 3690 -r /opt/svn

     2.添加可执行权限

命令行运行

#chmod ug+x /root/svn.sh

     3.添加自动运行

     打开（vi或gedit） /etc/rc.local ，在最后添加一行内容如下：

     /root/svn.sh

     保存退出。

     4.检查

     重启服务器，使用 ps -ef 看看svn进程是否启动了。