全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Linux下svn版本控制服务1、 官网,svn是apache组织下的一个项目。实验目的实现部署并实现推送下载2、 安装软件rootvipuser200 # yum -y install subversion httpd mod_dav_svn创建文件和项目rootvipuser200 # mkdir /svnrootvipuser200 # cd /svn/rootvipuser200 svn# svnadmin create /svn/www.vipuser.clubrootvipuser200 svn# svnadmin create /svn/www.vipuser1.club查看目录下信息rootvipuser200 svn# lswww.vipuser1.club www.vipuser.clubrootvipuser200 svn# cd www.vipuser.club/rootvipuser200 www.vipuser.club# lsconf db format hooks locks README.txt进入配置文件修改配置文件rootvipuser200 www.vipuser.club# cd conf/rootvipuser200 conf# lsauthz passwd svnserve.confrootvipuser200 conf# vim svnserve.conf#将下面几行启用generalanon-access = readauth-access = writepassword-db = passwdauthz-db = authzrealm = My First Repository添加用户信息rootvipuser200 conf# vim passwd users# harry = harryssecret# sally = sallyssecretzlf01 = 123456zlf02 = 123456zlf03 = 123456修改认证信息添加下面信息rootvipuser200 conf# vim authz Check = zlf01,zlf02#Check组/#当前版本根目录zlf03 = rw#用户可读可写Check = r#Check组可以读* =#其他人没权限启动版本库查看帮助rootvipuser200 conf# svnserve -help方法一:rootvipuser200 conf# svnserve -d -r /svn/方法二:修改下面一行rootvipuser200 conf# vim /etc/init.d/svnserve args=-daemon -pid-file=$pidfile $OPTIONS -d -r /svnrootvipuser200 conf# ps -aux | grep svnWarning: bad syntax, perhaps a bogus -? See /usr/share/doc/procps-3.2.8/FAQroot 1370 0.0 0.0 152860 744 ? Ss 09:57 0:00 svnserve -d -r /svn/root 1480 0.0 0.0 103244 836 pts/0 S+ 10:18 0:00 grep svnrootvipuser200 conf# kill -9 1370rootvipuser200 conf# service svnserve restartStopping svnserve: FAILEDStarting svnserve: OK 3、 本地导入服务端rootvipuser200 # mkdir localsvn#创建本地目录rootvipuser200 # cd localsvn/rootvipuser200 localsvn# touch 1.html 2.html#创建文件rootvipuser200 localsvn# svn import /root/localsvn/ file:/svn/www.vipuser.club/ -m v1.0#第一次导入使用import,任何一个导入都必须添加注释Adding /root/localsvn/1.htmlAdding /root/localsvn/2.htmlCommitted revision 1.客户端导入rootvipuser202 # mkdir editwebsiterootvipuser202 # cd editwebsite/rootvipuser202 editwebsite# touch 3.html 4.htmlrootvipuser202 editwebsite# svn import /root/editwebsite/ svn:/00/www.vipuser.club/ -m v2.0#第一次导入需要importAuthentication realm: My First RepositoryPassword for root:#直接回车可以切换用户Authentication realm: My First RepositoryPassword for zlf03: #认证文件中只有zlf03有写的权限-ATTENTION! Your password for authentication realm: My First Repositorycan only be stored to disk unencrypted! You are advised to configureyour system so that Subversion can store passwords encrypted, ifpossible. See the documentation for details.You can avoid future appearances of this warning by setting the valueof the store-plaintext-passwords option to either yes or no in/root/.subversion/servers.-Store password unencrypted (yes/no)? no#是否存储密码为了测试填写noAdding /root/editwebsite/3.htmlAdding /root/editwebsite/4.htmlCommitted revision 2.4、 服务端取出rootvipuser200 conf# svn checkout svn:/00/www.vipuser.club/ downsource #checkout取出当前downsource目录Authentication realm: My First RepositoryPassword for root: Authentication realm: My First RepositoryUsername: zlf01 #zlf01有读的权限Password for zlf01: -ATTENTION! Your password for authentication realm: My First Repositorycan only be stored to disk unencrypted! You are advised to configureyour system so that Subversion can store passwords encrypted, ifpossible. See the documentation for details.You can avoid future appearances of this warning by setting the valueof the store-plaintext-passwords option to either yes or no in/root/.subversion/servers.-Store password unencrypted (yes/no)? noA downsource/1.htmlA downsource/2.htmlA downsource/3.htmlA downsource/4.htmlChecked out revision 2.#只有提交的时候版本号才回叠加查看rootvipuser200 conf# lsauthz downsource passwd svnserve.confrootvipuser200 conf# cd downsource/rootvipuser200 downsource# ls1. html 2.html 3.html 4.html客户端取出rootvipuser202 # svn checkout svn:/00/www.vipuser.club/ downsourceAuthentication realm: My First RepositoryPassword for zlf03: -ATTENTION! Your password for authentication realm: My First Repositorycan only be stored to disk unencrypted! You are advised to configureyour system so that Subversion can store passwords encrypted, ifpossible. See the documentation for details.You can avoid future appearances of this warning by setting the valueof the store-plaintext-passwords option to either yes or no in/root/.subversion/servers.-Store password unencrypted (yes/no)? noA downsource/1.htmlA downsource/2.htmlA downsource/3.htmlA downsource/4.htmlChecked out revision 2.查看rootvipuser202 # cd downsource/rootvipuser202 downsource# ls1.html 2.html 3.html 4.html添加并推送rootvipuser202 downsource# touch 5.htmlrootvipuser202 downsource# svn add 5.html #添加并未推送A 5.htmlrootvipuser202 downsource# svn commit -m v3.0#推送Authentication realm: My First RepositoryPassword for zlf03: -ATTENTION! Your password for authentication realm: My First Repositorycan only be stored to disk unencrypted! You are advised to configureyour system so that Subversion can store passwords encrypted, ifpossible. See the documentation for details.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年襄樊辅警协警招聘考试真题含答案详解(综合卷)
- 2025年鄂州辅警招聘考试题库及答案详解(有一套)
- 2025年淄博辅警协警招聘考试真题附答案详解(考试直接用)
- 2025年贺州辅警协警招聘考试真题附答案详解
- 2025年陕西辅警招聘考试题库及答案详解(网校专用)
- 2025年苗栗县辅警招聘考试题库附答案详解(精练)
- 2025年肇庆辅警招聘考试真题及答案详解(必刷)
- 2025年湖州辅警协警招聘考试真题含答案详解(培优a卷)
- 2025年驻马店辅警协警招聘考试真题附答案详解(达标题)
- 2025年贵港辅警招聘考试真题附答案详解(模拟题)
- 2025年秋新北师大版数学3年级上册全册同步教案
- 2025至2030国内中老年用品行业市场发展分析及竞争策略与投资发展报告
- 质量损失追究管理办法
- 第18课 全民族抗战中的正面战场和敌后战场 课件 统编版八年级历史上册
- 仪器合作开发合同协议书
- 2025年外事办公室韩语翻译笔试
- 有趣的中药探秘
- 大商务管理培训课件
- 餐饮行业员工岗位职责与规范
- 新能源汽车核心零部件制造技术发展趋势及产业布局研究报告
- 2025-2026粤教粤科版(2024)科学三年级上册教学设计(附目录)
评论
0/150
提交评论