Linux操作系统下配置subversion跟我来
来源:互联网 发布:经传软件源代码 编辑:程序博客网 时间:2024/05/21 10:25
1.准备工作
在Centos5或Fedora 8版本,httpd和subversion默认安装,通过web访问svn还需要apache的mod_dav_svn、mod_authz_svn模块,如果没加载重新安装;
2.创建仓库
mkdir /home/svnrepo
svnadmin create --fs-type fsfs /home/svnrepo/ecshop
svnadmin create --fs-type fsfs /home/svnrepo/discuz6
chmod 700 /home/svnrepo
3.添加用户
//创建MD5加密的密码文件authfile,-c:create,-m:以MD5加密
htpasswd -c -m /home/svnrepo/authfile pujing
//添加第二个用户
htpasswd -m /home/svnrepo/authfile bushi
4.权限分配
#vi /home/svnrepo/authz.conf
[ecshop:/]
bushi = r
pujing = rw
[discuz6:/]
bushi =
pujing = r
#[/]
#* = r
#[groups]
#svn1-developers = bushi,pujing
#svn2-developers = bushi
#[svn1:/]
#@svn1-developers = rw
5.配置apache
#vi /etc/httpd/conf/httpd.conf
在Loadmodule后或最末加入
DAV svn
SVNParentPath /home/svnrepo/
AuthzSVNAccessFile /home/svnrepo/authz.conf
AuthType Basic
AuthName "svn repository"
AuthUserFile /home/svnrepo/authfile
Require valid-user
#service httpd restart
6.import文件到版本仓库
svn import -m"the first import" /var/www/html/ecshop file:///home/svnrepo/ecshop
7.访问
http://192.168.1.139/svn/ecshop
8.commit到版本库,同时更新web测试环境
#cd /home/svnrepo/ecshop/hooks
#cp post-commit.tmpl post-commit //去掉.tmpl
#chmod 755 post-commit
#vi post-commit
//在post-commit文件最后加入三行
SVN=/usr/bin/svn
WEB=/home/website/ecshop
$SVN update --username pujing --password 123456 $WEB
9.其他。
- Linux操作系统下配置subversion跟我来
- linux下配置subversion
- linux下的subversion 配置
- LINUX下Subversion安装配置
- linux下的subversion 配置
- LINUX下Subversion安装配置
- linux下的subversion 配置
- subversion 在Linux 下的安装配置
- Linux下初步配置Apache+Subversion
- Linux下配置Apache,Subversion和Trac
- Linux下配置CollabNet Subversion Edge
- Linux下 安装 配置CollabNet Subversion Edge
- 我的SubVersion配置
- ubuntu下subversion配置
- linux subversion server配置
- Linux配置subversion
- linux subversion安装配置
- linux下的subversion
- linux下SVN配置笔记
- log4j.properties的作用与使用方法
- 4.通过引用捕获异常
- Linux平台下Subversion的安装与配置
- ACM Steps_Chapter Seven_Section2
- Linux操作系统下配置subversion跟我来
- 指针常量 常量指针 常量指针常量
- 单片机的ROM与RAM
- linux下的subversion 配置
- struts2 中的 result 返回类型是 json 的配置问题
- hdu 1247 Hat’s Words
- A ndroid 获取屏幕高度、标题高度、状态栏高度详解
- ACM Steps_Chapter Seven_Section3
- hdu 1051 贪心