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

  • 相关阅读:
    Redis实战(十)Redis常见问题及解决方案
    小团队构建大网站:中小研发团队架构实践
    Asp.net core 3.0
    图解TCP/IP
    TCP/IP协议
    Grid画边框
    WPF常用方法,事件驱动和控件遍历
    WPF中的画图
    WPF中的常用类汇总:
    WPF中的VisualTreeHelper
  • 原文地址:https://www.cnblogs.com/songyanan/p/9232519.html
Copyright © 2011-2022 走看看