yum install subversion
mkdir -p /data/wwwsvn/myrepo #创建svn仓库的目录
svnadmin create /data/wwwsvn/myrepo #与上面的目录相同。
# ls conf db format hooks locks README.txt
[users] # harry = harryssecret # sally = sallyssecret youname = yourpassword #你的用户和密码
... [/] yourname = rw
anon-access = read #匿名用户可读 auth-access = write #授权用户可写 password-db = passwd #使用哪个文件作为账号文件 authz-db = authz #使用哪个文件作为权限文件 realm = /data/wwwsvn/myrepo # 认证空间名,版本库所在目录,和之前的一样
svnserve -d -r /data/wwwroot/myrepo #开启 killall svnserve #关闭 ps aux | grep svnserve #查看是否运行
iptables -I INPUT -i eth0 -p tcp --dport 3690 -j ACCEPT #开放端口 service iptables save #保存 iptables 规则(如不能保存请使用其他方法保存)
cd /data/wwwsvn/myrepo/hooks #你的版本仓库目录 cp post-commit.tmpl post-commit vi post-commit
export LANG=zh_CN.UTF-8 #必须要这行 echo "hello world" >> /tmp/svn.log #用来测试钩子是否有执行,调试使用,如果正常就不需要这行了 /usr/bin/svn update /data/wwwroot/yourWebDir --username autoweb --password autoweb --no-auth-cache #也可以用其他方法,总之要保证web目录能正常update
cd /data/wwwroot/yourWebDir svn checkout svn://你的服务器ip ... #根据提示完成checkout
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有