标签:base 用户 自定义 权限 restart ase rsa auto apache服务器
本人搭建SVN服务器,通过https协议发布到互联网中的。yum install -y httpdyum install -y subversionyum install -y mod_sslyum install -y mod_dav_svn mod_authz_svnmkdir /etc/httpd/ssl/openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt         LoadModule dav_svn_module     modules/mod_dav_svn.so
         LoadModule authz_svn_module   modules/mod_authz_svn.so
         <Location /repos/svn1>
             DAV svn
             SVNPath <repos文件夹>/<版本库名>
             SVNListParentPath On
             SVNAutoversioning On
             SVNReposName "<版本库名>"
             AuthType Basic
             AuthName "Welcome to <自定义服务器名> repos <版本库名>"
             AuthUserFile<repos文件夹>/<版本库名>/conf/passwdfile
             AuthzSVNAccessFile <repos文件夹>/<版本库名>1/conf/authz
             Require valid-user
         </Location>         #!/bin/bash
         #chkconfig: - 99 01
         ##
         ##description: this is a svnserve <版本库名> custom script !
         case $1 in
                 start)
                         /usr/bin/svnserve -d -r <repos文件夹>/<版本库名>
                         ;;
                 stop)
                         kill `pidof  /usr/bin/svnserve`
                         ;;
                 restart)
                         kill `pidof  /usr/bin/svnserve`
                         /usr/bin/svnserve -d -r <repos文件夹>/<版本库名>
                         ;;
                 *)
                         echo Usage:`basename $0` start|stop|restart
         esacchkconfig --add svn1chkconfig svn1 onchkconfig httpd on标签:base 用户 自定义 权限 restart ase rsa auto apache服务器
原文地址:https://blog.51cto.com/liubingjie771/2364726