1.创建执行脚本svn.sh(/root路径下,随便哪个路径),其内容很简单,如下:
- #!/bin/bash
- svnserve -d --listen-port 8080 -r /home/svnroot/repository(svn资源库路径)
2.添加可执行权限
- #chmod ug+x /root/svn.sh
3.添加自动运行
在最后添加一行内容如下:
- vim /etc/rc.d/rc.local
- /root/svn.sh
1.创建执行脚本svn.sh(/root路径下,随便哪个路径),其内容很简单,如下:
- #!/bin/bash
- svnserve -d --listen-port 8080 -r /home/svnroot/repository(svn资源库路径)
2.添加可执行权限
- #chmod ug+x /root/svn.sh
3.添加自动运行
在最后添加一行内容如下:
- vim /etc/rc.d/rc.local
- /root/svn.sh