One, create a project
- Create a public directory Project on the SVN server as the project directory
- Create a demo folder in the Project directory as a version repository
- To create a version warehouse, the basic syntax under Dos:
svnadmin create Demo 文件夹路径
4. If the configuration is successful, the following directory structure will be displayed
Second, perform server-side supervision
SVN→svn://localhost or (IP address) to access the relevant data warehouse
Basic syntax:
svnserve -d (后台运行) -r (监管目录) 版本仓库路径 #注意是svnserve
description | significance |
---|---|
-d | Background process |
-r | The following path represents the path of supervision |
The effect is as shown in the figure:
At this time, you can just use the svn://localhost or IP address to directly just think of the Demo warehouse
Three, access control
by default. The SVN server does not allow anonymous users to upload files but the server, so the relevant configuration files of the project must be changed.
Change the 19th line of code