svn搭建和启动

1 怎么添加用户:

vim passwd

添加一行 username = password

2 怎么设置用户的权限:
vim authz

添加一行

[/]

username = rw

 

3 怎么设置开机启动
/etc/rc.local 添加一行
启动 svnserve -d -r /usr/local/svn
停止 killall svnserve

4 怎么设置钩子

vim hooks/post-commit

export LANG=en_US.UTF-8
SVN=/usr/bin/svn #这里配置的是svn安装bin目录下的svn文件
WEB=/home/wwwroot/xxx #要更新的目录
$SVN update $WEB --username test --password 123456

 

posted @ 2022-03-04 11:29  Yau0315  阅读(63)  评论(0)    收藏  举报