SVN is a version controller, and since I used it, I can't leave him. In team work, it is used to prevent conflicts and version control. Personal work, using him can also bring a lot of convenience.
First make it clear that SVN is divided into server and client. The SVN server is equivalent to the Apache server, the client is equivalent to the browser, the client does not care what software you are/which system (TORTOISESVN under Windows or Mac versions).
Let me show you how to build an SVN server on the Azure platform
Server-side
1. Create an azure virtual machine. See details: http://www.kangry.net/blog/?type=article&article_id=273. Note System Please select openlogic 6.5, which is equivalent to Centos 6.5, other versions are not tested and may cause unknown problems.
2. Open an endpoint (port) on the Azure portal. To open an endpoint, see: http://www.kangry.net/blog/?type=article&article_id=273. The main added configuration is as follows:
Where 3690 is the default port for the SVN server. If you need to change to a different port, you can change it to a corresponding port.
3, log in with Putty. Specifically See blog: http://www.kangry.net/blog/?type=article&article_id=273
4, switch to the administrator account, easy to operate after
sudo su
5. Install SVN
Yum Install Subversion
You can check the version information of the installed SVN (not required)
Svnserve--version
6. Create a code base
(1) Create a service folder, which is the folder specified by the SVN service later, and is equivalent to the root directory of the Apache service
(2) Create a code base and notice that repo is actually a subdirectory under the root directory. The/opt/svn/repo folder now contains conf, DB, format, hooks, locks, readme.txt, and so on. Description An SVN repository has been established.
Svnadmin Create/opt/svn/repo
7. Configure User Password
vim/opt/svn/repo/conf/passwd
Add a line to your user name and password, such as
Kangry = 123456
Note that you need to write shelf, there must be no white space characters in front
8. Permission Control
Vim/opt/svn/repo/conf/authz
Add the following content
[/]kangry = RW
Indicates that all files have read and write permissions under the root directory (that is, the/opt/svn/directory)
Or:
[Repo:/]kangry = RW
Indicates read and write access to all files under the repo repository
9, Service svnserve.conf configuration
Vim/opt/svn/repo/conf/svnserve.conf
Add the following content
[General] #匿名访问的权限, can be Read,write,none, default is readanon-access = none# gives authorized users Write permission auth-access = write# Password database path password-db = passwd# access Control File AUTHZ-DB = authz# authentication namespace, Subversion is displayed in the authentication prompt, and as the credential cache keyword Realm =/opt/svn/repo
10. Start SVN
Svnserve-d-r/opt/svn/
11. Start-Up SVN service
(1) Modify the supervisord.conf file
Vi/etc/supervisord.conf
Add later, note that the last line will leave a blank line
[Program:svnserver]command=svnserve-d-r/opt/svn/autostart=trueautorestart=trueuser=rootlog_stderr=truelogfile= /var/log/svnserver.log
(2) Modify boot file
Vi/etc/rc.local
Add (if you already have one, you can not add it)
Service Supervisord Start
Introduction to Clients
(1) under Windows, download TortoiseSVN (http://tortoisesvn.net/), install.
Create a new folder, such as D:/azuresvn
Right-"SVN check out, as shown:
Enter the connection. As shown in. Repo is the folder that was built for this purpose.
Then enter the user name and password configured in step 7th.
Click OK.
Reference documents:
http://lxw66.blog.51cto.com/5547576/1343900
Http://www.cnblogs.com/zhoulf/archive/2013/02/02/2889949.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Introduction to Azure Build SVN server and client