การติดตั้ง subversion server บน window


A Manual How to install subversion (svn) server under Window OS.

 

A) Download Subversion
You'll need the latest version of..

B ) Install Subversion

  1. Install The Binary file (svn-1.4.6-setup.exe)

C) Create a Repository

  1. Open a command prompt and type
        svnadmin create "c:\Documents and Settings\Subversion Repository">
  2. Navigate to the folder we just created. Within that folder, uncomment the following lines in the /conf/svnserve.conf file:
    [general]  
    anon-access = read
    auth-access = write
    password-db = passwd

    Next, uncomment these lines in the /conf/passwd file:

    [users]  
    harry = harryssecret
    sally = sallyssecret

D) Verify that everything is working

  1. Start the subversion server by issuing this command in the command window:

        svnserve --daemon --root "C:\My Subversion  Repository"

  2. Create a project by opening a second command window and entering this command:

        svn mkdir svn://localhost/myproject

    It's a standard Subversion convention to have three folders at the root of a project:
    /trunk
    /branches
    /tags

  3. You'll now be prompted for credentials. In my case I was prompted for the administrator credentials as well:

        Authentication realm:  0f1a8b11-d50b-344d-9dc7-0d9ba12e22df
    Password for 'Administrator': *********
    Authentication realm: 0f1a8b11-d50b-344d-9dc7-0d9ba12e22df
    Username: sally
    Password for 'sally': ************

    Committed revision 1.


    Congratulations! You just checked a change into Subversion!

E) Start the server as a service

  1. Stop the existing command window that's running svnserve by pressing CTRL+C.
  2. Install the service by issuing the following commands:

        sc create  svn.local binpath= "\"C:\Program Files\Subversion\bin\svnserve.exe\"  --service --root C:\My Subversion Repository" displayname= "Subversion  Repository" depend= Tcpip

  3. Test the new service by listing all the files in the repository:

    svn ls svn://localhost/

    You should see the single project we created earlier, myproject/

Edit From:: http://blogs.vertigosoftware.com/teamsyste...er_Windows.aspx

หมายเลขบันทึก: 187734เขียนเมื่อ 12 มิถุนายน 2008 18:12 น. ()แก้ไขเมื่อ 21 มิถุนายน 2012 10:30 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท