centos开机自动启动SVN服务的方法
1、编辑rc.local文件
vi /etc/rc.d/rc.local
2、加入如下启动命令
/usr/bin/svnserve -d -r /home/svn

注意:
我们在用终端操作的时候,可以直接使用以下命令启动SVN:
svnserve -d -r /home/svn
但是在/etc/rc.d/rc.local 文件中必须写上完整的路径!
不知道svnserve安装到哪里了?
可以使用 whereis 命令查找一下:

本文介绍如何配置CentOS系统使SVN服务在开机时自动启动。主要步骤包括编辑rc.local文件并添加启动命令。此外还提供了直接启动SVN服务的命令及查找svnserve路径的方法。
centos开机自动启动SVN服务的方法
1、编辑rc.local文件
vi /etc/rc.d/rc.local
2、加入如下启动命令
/usr/bin/svnserve -d -r /home/svn

注意:
我们在用终端操作的时候,可以直接使用以下命令启动SVN:
svnserve -d -r /home/svn
但是在/etc/rc.d/rc.local 文件中必须写上完整的路径!
不知道svnserve安装到哪里了?
可以使用 whereis 命令查找一下:

1127
978
565

被折叠的 条评论
为什么被折叠?