隨筆-18  評論-8  文章-0  trackbacks-0

          創建

          1. mkdir /etc/svn/repos1
          2. svnadmin create /etc/svn/repos1
          3. svn import file:///etc/svn/repos1? --message "init" // 導入當前目錄下所以文件
            svn import /local/mydir/ file:///etc/svn/repos1? --message "init" // 導入指定目錄下所以文件

          查看

          • svn list --verbose file:///etc/svn/repos1/
          • svnlook info /etc/svn/repos1/
          • svnlook tree /etc/svn/repos1/ --show-ids

          Apache權限控制

          ${apache}/conf/httpd.conf 的配置:
          LoadModule?dav_svn_module?????modules/mod_dav_svn.so
          LoadModule?authz_svn_module???modules
          /mod_authz_svn.so
          <Location?/svn/>
          DAV?svn
          SVNParentPath?
          /etc/svn/repos1
          SVNListParentPath?on

          AuthType?Basic
          AuthName?
          "MY SVN?Repository"
          AuthUserFile?
          /etc/svn/repos1/passwd.conf
          AuthzSVNAccessFile?
          /etc/svn/repos1/authz.conf
          Require?vaild-user
          </Location>

          創建用戶和密碼:${apache}/bin/htpasswd?/etc/svn/repos1/authz.comf user1

          authz.conf的配置:
          [groups]
          group1?
          =?user1
          group2?
          =?user1,user2

          [
          /]
          *?=?r

          [project1
          :/path1]
          @group1?=?rw

          [project1
          :/path2]
          @group2?=?rw

          取出:svn co file:///etc/svn/report1

          另外需要修改兩個地方,不然無法提交修改的文件:

          1. chown -R sysuser:sysuser /etc/svn/report1
            chmod -R 700 /etc/svn/report1
          2. 在${apache}/conf/httpd.conf中找到:
            User daemon
            Group daemon
            改為
            User sysuser
            Group sysuser
            以root用戶啟動apache后,自動切換到sysuser身份運行
          posted on 2006-12-21 13:38 阿姆斯壯 閱讀(660) 評論(0)  編輯  收藏 所屬分類: Linux

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 樟树市| 吐鲁番市| 大荔县| 阜新市| 兰西县| 娄底市| 长春市| 安化县| 遵义市| 手机| 澎湖县| 阜宁县| 双辽市| 永泰县| 东山县| 栖霞市| 泗水县| 海宁市| 资中县| 湖北省| 色达县| 禹州市| 泗水县| 铁岭市| 江津市| 文成县| 宁南县| 额尔古纳市| 科技| 阳新县| 裕民县| 宜兴市| 邯郸县| 普格县| 大厂| 农安县| 友谊县| 莱西市| 兰考县| 彭州市| 岑溪市|