【注意】
1.默认端口 3690
2.可通过启用命令修改默认端口:$svnserve --listen-port 9999 -d -r /opt/svndata
3.配置文件中,配置项前后均不能有空格,否则将会使配置错误.
[root@localhost bin]# cat /etc/sysconfig/svnserve
# OPTIONS is used to pass command-line arguments to svnserve.
#
# Specify the repository location in -r parameter:
OPTIONS="-r /var/svn"
修改后:
[root@localhost bin]# cat /etc/sysconfig/svnserve
# OPTIONS is used to pass command-line arguments to svnserve.
#
# Specify the repository location in -r parameter:
#OPTIONS="-r /var/svn"
OPTIONS="-d -r /home/svn/svn_java/"
systemctl start svnserve.service
停止:
systemctl stop svnserve.service
重启:
systemctl restart svnserve.service
开机启动:
systemctl enable svnserve.service
取消开机启动:
systemctl disable svnserve.service
https://www.leftso.com/article/23.html