Detail Linux server configuration set up SVN server

  • 2020-05-15 03:22:18
  • OfStack

1. Install the SVN server

v4 VisualSVN cracked versions. The latest official version 0.10: / / www ofstack. com softs / 398608. html

VisualSVN Server free English version (32 + 64) : / / www ofstack. com softs / 120928. html

Install subversion directly with apt-get or yum (you can also download and install subversion by yourself)


sudo apt-get install subversion 

2. Create the version library


svnadmin create /home/myrepos  // Here the file directory is set at will  

3. Configure svnserve

After the above version library /home/myrepos is established, the conf folder will be generated under the folder, and the following three files will be found under /home/myrepos/conf


authz passwd svnserve.conf 

We'll modify it in turn

3.1, svnserve.conf modifies the following parts:


anon-access = read 
auth-access = write 
password-db = passwd 
authz-db = authz 

3.2, passwd is modified to:


[users] 
username = password  // Here, username and password Your Settings  

3.3, authz finally adds the following two lines (these two lines solve the SVN client authorization failed problem)


[/] 
* = rw  

4. Launch svnserve:


svnserve -d -r /home/myrepos/ 

5. Client use:

The client USES svn or TortoiseSVN client under windows

5.1, from the server checkout version library (in the current directory)


svn checkout svn:// The server's ip address / 

5.2 add some files by yourself, or copy the previous items (such as the following three folders) into the current directory, and ask svn to manage them for you


code project document 

5.3. Suppose I put the above three folders under the current svn folder and want svn to manage them, then what I need to do is add them to the svn version library:


svn add code project document  // Or you can just use svn add * 

5.4 and finally submit to svn server


svnadmin create /home/myrepos  // Here the file directory is set at will  
0

Always comment the current version.


Related articles: