幸せのちから

          平凡的世界
          看似平常實崎嶇
          成如容易卻艱辛

          subversion安裝

          1. 從CollabNet下載subversion的Windows版
          http://downloads.open.collab.net/collabnet-subversion.html
          2. 使用svnserve模式安裝,指定倉庫位置: d:\svn_repository
          3. run->cmd打開命令行窗口
          4. 創建一個subversion的倉庫
          cd
          svnadmin create
          E.g.
          cd d:\svn_repository
          svnadmin create repository
          5. 修改密碼
          編輯svnserve.conf文件
          E.g. d:\svn_repository\repository\conf\svnserve.conf,
          找到下面的信息
          ### The password-db option controls the location of the password
          ### database file. Unless you specify a path starting with a /,
          ### the file's location is relative to the conf directory.
          ### Uncomment the line below to use the default password file.
          #password-db = passwd
          去掉password-db前的#號
          password-db = passwd
          6. 增加用戶名和密碼
          編輯svnserve.conf同一目錄下的'passwd'文件,在下面信息的后面追加用戶名和密碼:
          ### This file is an example password file for svnserve.
          ### Its format is similar to that of svnserve.conf. As shown in the
          ### example below it contains one section labelled [users].
          ### The name and password for each user follow, one account per line.

          [users]
          #harry = harryssecret
          #sally = sallyssecret
          例如:
          lucky = ××××
          7. 打開Windows防火墻的屏蔽.
          參考文件
          http://www.microsoft.com/windowsxp/using/security/internet/sp2_wfexceptions.mspx
          在例外中添加subversion使用的svnserve.exe,或者增加例外的端口:3690.
          8. 運行svnserve
          可以使用windows的服務或者使用命令行
          net start svnserve
          9. 對匿名用戶指定讀權限,修改conf/svnserve.conf文件
          anon-access = write
          10. Checkout倉庫
          svn co svn://localhost/
          E.g. svn co svn://localhost/repository
          11. 權限設置
          編輯svnserve.conf同一目錄下的'authz'文件,在下面信息的后面追加用戶名和密碼:
          [groups]
          dev = lucky,jiang,yu

          [repository:/]
          lucky= rw
          * = r

          [repository:/ECOMockup]
          @dev= rw
          * = r
          上面的設置表示 在根目錄 只有lucky有讀寫的權力,其他人都是只讀。 在根目錄下的/ECOMockup工程dev小組有讀寫的權力 其他的就是只讀。

          svn import -m "first import of AARKeywords" C:\Usr\THA\AARKeywods http://localhost/svn/AARKeywords

          posted on 2008-11-12 14:16 Lucky 閱讀(500) 評論(0)  編輯  收藏 所屬分類: java

          <2008年11月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          導航

          隨筆分類(125)

          文章分類(5)

          日本語

          搜索

          積分與排名

          最新隨筆

          最新評論

          主站蜘蛛池模板: 绥中县| 泸州市| 沈阳市| 伊宁县| 荔浦县| 万荣县| 德江县| 麻阳| 凤山县| 洛隆县| 花莲县| 巍山| 张北县| 定西市| 民勤县| 正安县| 开江县| 保靖县| 德化县| 盐城市| 无极县| 正安县| 静安区| 新竹县| 渭南市| 鹤岗市| 鄯善县| 乐陵市| 白河县| 抚远县| 东兴市| 汉中市| 内丘县| 桑植县| 天气| 乡宁县| 太仓市| 文成县| 盐城市| 普兰店市| 宁安市|