The VisualSvn server is free, while VisualSvn is charged. VisualSvn is the client of Svn, which is integrated with Visual Studio, but it is not free. Replace VisualSvn with AnkhSvn(VS2008 plug-in). Using VisualSvn server is the server side of Svn, including Subversion, Apache and user and rights management. The advantages have been mentioned above.
2. Installation process of 2.VisualSvn server
After downloading, run the visual SVN-server-2.1.4.msi program, and then click Next. The following screenshot sequence is the installation steps:
Step 1 Install the homepage interface, as shown in the figure.
Step 2: Select components as servers and management terminals. See figure for functions.
Step 3 Customize the installation configuration, as shown in the figure.
note:
You can choose an appropriate directory to store the address of the code base. This code base is the root directory. Once created, it cannot be deleted. If deleted, the VisualSVN server will not work.
In fact, after creating this Repositories folder, you can ignore it, and you don't have to enter the folder to modify the files inside (my folder is on drive D like the legend), as shown below.
If secure connection is not selected, there are three default ports, 80/8 1/8080. If the last check box is selected, it means that the secure connection https protocol is used, and only port 433/8433 is available.
The default value is optional. (In the server port, I selected port 80, and did not check Use secure connection. I don't think it is necessary to use a secure connection. As for authorization authentication,
By default, the users and user groups included with VisualSVN Server are selected.
Step 4 Click the Install button to install, as shown in the figure.
Step 5 The installation is successful and the service is started, as shown in the figure.
The VisualSvn server service will be added after installation:
If you want to uninstall the VisualSvn server, you need to do the following:
(1) Start-Run, enter services.msc in the input box? of course
(2) Enter the Service Manager and stop the VisualSvn server service; otherwise, it will be said that the process is still running and cannot be uninstalled in the middle of uninstallation.
3. Configuration and use of 3.VisualSvn server
After installing the VisualSVN server, run the VisualSVN Server Manager. The following is the startup interface, as shown in the figure:
The difference with VSS:
The repository root node in the VisualSvn server is equivalent to the $ symbol root node in VSS:
4. add code base StartKit?
Add a code base named StartKit and make relevant settings:
Step 1 Create the code base StartKit, as shown in the figure.
The second step is the basic configuration of the code base. Create a new code base and enter the name of the code base in the following text box, as shown in the following figure:
pay attention to
The URL address of the repository is used to connect to the server from the client or VS2008. The machine name can be changed to LAN IP or public domain name, public IP or computer name, and the secure connection method used here is https.
If the check box of the code base file structure in the above figure is selected, three subdirectories will be created under the code base StartKit: trunk, branch and label; If unchecked, only an empty basic code StartKit will be created. Not selected by default (useless, it is best not to select)
Click OK to create the code base successfully, as shown in the figure.
5. Set users and user groups for code base security.
Next, let's start the security settings, and right-click the user on the left:
Step 1 Create user.
Create a user and set the user name and password, as shown in the figure.
Enter the above information, click OK, and we will create a user. Add users startKiter 1, startKiter2 and startKiter3 respectively according to the above steps.
Note: There are as many users as there are developers, and each developer has one user, just like VSS.
Every developer should take care of his user name and password! ! !
Step 2 Add these users to the project we just created.
Right-click the properties of the code base StartKit to pop up the properties dialog box, as shown in the figure.
Click "Add ..." button, select the user we just added in the figure below, and click OK:
Note: You may have noticed the groups in the figure below. Yes, you can also create groups first, add users to each group, and then authorize these groups. The operation is relatively simple, so I will skip it here.
Step 3: Create a group and select users of this group, as shown in the figure.
At this point, the use of the VisualSvn server is over.