1.在root下新建一个文件叫svn.sh,内容如下: #!/bin/bashsvnserve -d -r /home/svnrepos/ 2.在etc/rc.local里添加内容:/root/svn.sh