zoukankan      html  css  js  c++  java
  • 接上一篇配置多仓库相关命令

    配置多仓库如果出现占不到上传文件;可以仔细阅读下面命令;另外还需可以自网上找资料配置一个sh文件;带到开机自动开启svn服务

    netstat -antlp | grep svn
    svnadmin create /var/www/html/lnm
    svnadmin create /var/www/html/zx
    cp /var/www/html/lnm/conf/authz /var/www/html/
    cp /var/www/html/lnm/conf/passwd /var/www/html/
    cd /var/www/html/
    /usr/bin/svn
    /usr/bin/svn checkout svn://ip地址/lnm /var/www/html/lnm
    /usr/bin/svnserve -d -r /var/www/html
    /usr/bin/svn checkout svn://ip地址/lnm /var/www/html/lnm
    A /var/www/html/lnm/11.txt
    A /var/www/html/lnm/12.txt
    A /var/www/html/lnm/lnm_index1.php
    A /var/www/html/lnm/songyanan001.txt
    A /var/www/html/lnm/syn123456.txt

    cp -f post-commit.tmpl post-commit

    [root@iZ23lfjzmowZ hooks]# vim post-commit
    [root@iZ23lfjzmowZ hooks]# vim post-commit
    [root@iZ23lfjzmowZ hooks]# vim post-commit
    [root@iZ23lfjzmowZ hooks]# chmod +x post-commit

    第二个库
    /usr/bin/svn checkout svn://ip地址/zx /var/www/html/zx
    svn: Can't connect to host 'ip地址': Connection refused
    [root@iZ23lfjzmowZ hooks]# /usr/bin/svnserve -d -r /var/www/html
    [root@iZ23lfjzmowZ hooks]# ps -ef | grep svnserve

    [root@iZ23lfjzmowZ hooks]# /usr/bin/svn checkout svn://ip地址/zx /var/www/html/zx

    [root@iZ23lfjzmowZ zx]# pwd
    /var/www/html/zx
    [root@iZ23lfjzmowZ zx]# cd ../
    [root@iZ23lfjzmowZ html]# ls
    authz lnm passwd zx
    [root@iZ23lfjzmowZ html]# cd lnm
    [root@iZ23lfjzmowZ lnm]# cd ../
    [root@iZ23lfjzmowZ html]# ls
    authz lnm passwd zx
    [root@iZ23lfjzmowZ html]# cd zx
    [root@iZ23lfjzmowZ zx]# ls
    [root@iZ23lfjzmowZ zx]# pwd
    /var/www/html/zx

  • 相关阅读:
    有关需求规格说明
    软件导论第五周作业-------简单小结
    初用sqlite3.exe
    软件开发与模型
    Difference **面向过程(或者叫结构化)分析方法**面向对象分析方法
    当下互联网创业公司采用增量模型的原因
    第七周作业
    第六周作业
    第五周作业
    第四周作业
  • 原文地址:https://www.cnblogs.com/songyanan/p/9232519.html
Copyright © 2011-2022 走看看