1 / 14

Cài đặt và cấu hình SVN

Cài đặt và cấu hình SVN. Nguyễn Văn Khiết. Nội dung. Cài đặt Tạo Repository Cài đặt truy cập vào Repository. Cài đặt. SVN Server Tortoise SVN. Cài đặt. SVN Server Cài SVN cho windows version 1.4.6 (chỉ cần giải nén) Thiết lập biến môi trường Path : thêm đường dẫn đến nơi chứa SVN

meli
Télécharger la présentation

Cài đặt và cấu hình SVN

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cài đặt và cấu hình SVN Nguyễn Văn Khiết

  2. Nội dung • Cài đặt • Tạo Repository • Cài đặt truy cập vào Repository

  3. Cài đặt • SVN Server • Tortoise SVN

  4. Cài đặt • SVN Server • Cài SVN cho windows version 1.4.6 (chỉ cần giải nén) • Thiết lập biến môi trường • Path : thêm đường dẫn đến nơi chứa SVN • SVN_EDITOR : C:\Windows\notepad

  5. Tạo Repository • Tạo bằng command line • Tạo một thư mục trống trên server, thư mục này sẽ được dùng làm thư mục chứa tất cả Repository • Trong thư mục vừa tạo, tạo một thư mục để lưu trữ một Respository. • Dùng lệnh svnadmin create để tạo

  6. Tạo Repository • Tạo bằng command line svnadmin create --fs-type bdb MyNewRepository hoặc svnadmin create --fs-type fsfs MyNewRepository hoặc svnadmin create MyNewRepository

  7. Tạo Repository • Tạo bằng command line • Tạo các thư mục con cho Repository bằng lệnh svn mkdir • Ví dụ svn mkdir svn://localhost/myproject

  8. Cài đặt truy cập vào Repository • conf/passwd • conf/authz • conf/svnserve.conf

  9. Cài đặt truy cập vào Repository • Trong thư mục Repository, mở file conf/passwd • Tạo các user được quyền thao tác trên repository. • Ví dụ: [users] harry = harryssecret sally = sallyssecret

  10. Cài đặt truy cập vào Repository • Trong thư mục Repository, mở file conf/authz • Tạo các group bao gồm nhiều user. • Gán quyền truy cập cho các user hoặc group trên từng folder của Repository.

  11. Cài đặt truy cập vào Repository • Trong thư mục Repository, mở file conf/authz • Ví dụ [groups] harry_and_sally = harry,sally [/foo/bar] harry = rw * = [repository:/baz/fuz] @harry_and_sally = rw * = r

  12. Cài đặt truy cập vào Repository • Trong thư mục Repository, mở file conf/svnserve.conf • Chỉnh các cho phép truy cập (read, write, none) • anon-access = none • auth-access = write • Chỉnh file password • password-db = passwd • Chỉnh file auth • authz-db = authz

  13. SubVersion lắng nghe yêu cầu • Cho SubVersion lắng nghe các yêu cầu kết nối đến: • svnserve --daemon --root "C:\Subversion"

  14. Cài đặt • Tortoise SVN • Cài đặt Tortoise SVN • Tortoise SVN không có giao diện riêng, được sử dụng tích hợp với Windows Explorer. • Sau khi cài đặt xong • Tạo một working folder • Mở Windows Explorer, tới Working folder, rồi right-click, chọn Tortoise SVN  CheckOut.

More Related