CentOS 7下搭建配置 SVN 服务器
生活随笔
收集整理的這篇文章主要介紹了
CentOS 7下搭建配置 SVN 服务器
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原文鏈接:https://www.cnblogs.com/tdalcn/p/6937714.html
同步:http://blog.csdn.net/u011884440/article/details/70495615
如果使用用戶(hù)組管理權(quán)限的話在group下這樣用
admin = aaa,bbb,ccc[/] @admin = rw * =如果要自動(dòng)把提交同步到web服務(wù)器上的話
我們先將SVN版本庫(kù)中的一個(gè)項(xiàng)目checkout到網(wǎng)站目錄:
svn co svn://localhost/yunms /home/yunms --username <用戶(hù)名> --password <密碼>在版本庫(kù)目錄下新建一個(gè)post-commit鉤子:(The post-commit hook is invoked after a commit.)
vim /home/svn/tcyg/hooks/post-commit #!/bin/sh REPOS="$1" REV="$2" export LANG="zh_CN.UTF-8" #防止亂碼 svn update /home/www/ --username Hwei --password 123456 --no-auth-cache #設(shè)置登陸賬號(hào)密碼并不緩存注:不要遺漏第一行的#!/bin/sh,否則post-commit會(huì)報(bào)代號(hào)255的錯(cuò)誤。然后改這個(gè)文件的權(quán)限?
chmod 755 /home/svn/tcyg/hooks/post-commit沒(méi)改權(quán)限提交時(shí)也會(huì)報(bào)255的錯(cuò)誤
轉(zhuǎn)載于:https://www.cnblogs.com/gavinyyb/p/8393443.html
總結(jié)
以上是生活随笔為你收集整理的CentOS 7下搭建配置 SVN 服务器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: unittest单元测试简单介绍
- 下一篇: Referenced file cont