wangluo010 发表于 2018-11-17 13:19:59

Centos 编译安装Apache subversion-1.9.7 + httpd 2.4.32

#!/bin/bash  
# centos下可以用如下命令管理svn: service svn start(restart/stop)
  
SVN_HOME=/data/repos
  
if [ ! -f "/usr/local/subversion-1.9.7/svn/bin/svnserve" ]
  
then
  
    echo "svnserver startup: cannot start"
  
    exit
  
fi
  
case "$1" in
  
    start)
  
      echo "Starting svnserve..."
  
      /usr/local/subversion-1.9.7/svn/bin/svnserve -d --listen-port 3690 -r $SVN_HOME
  
      echo "Finished!"
  
      ;;
  
    stop)
  
      echo "Stoping svnserve..."
  
      killall svnserve
  
      echo "Finished!"
  
      ;;
  
    restart)
  
      $0 stop
  
      $0 start
  
      ;;
  
    *)
  
      echo "Usage: svn { start | stop | restart } "
  
      exit 1
  
esac


页: [1]
查看完整版本: Centos 编译安装Apache subversion-1.9.7 + httpd 2.4.32