11:43:50
How to configure SVN (provided that SVN has been installed)
1. Create a directory:
Mkdir-p ~ /Svn/2.1.J.1.1
2. Go to the newly created directory:
Cd svn/2.1.J.1.1
Run the following command:
Svnadmin create. // uses this directory as the SVN repository. After this command is executed, some directories and files will be generated under the 2.1.J.1.1 directory.
3. Go to the conf directory and configure the three files:
[/ * = david = 123456 aaa = 654321 password-db = authz-db = realm = 2.1.J.1.1
4. Return to the svn directory and execute:
svnserve -d -r .
Sometimes an error occurs when executing this sentence, as shown below:
010@david:~/tools/svn$ svnserve -d - svnserve: E000098: Can't bind server socket: Address already in use
This error indicates that svnserve-d-r. has been executed. Do not execute it repeatedly. If you must execute it again, first kill the svnserve process and execute the following command:
Ps-aux | grep svn
Kill-9 pid
5. Go to the 2.1.J.1.1 directory, import the code to be managed, and execute:
svn
import
Source code path-m
"New base line"
--username=david --password=
123456
svn:
// Host name or IP address/2.1.J.1.1 -- no-ignore
6. Download the Code:
Svn cosvn:
// Host name or IP address/2.1.J.1.1
-- Username, david -- password 123456
========================================================== ======================================
The above is a very simple SNV setting, which is not designed for permission control and group control. In fact, you can implement more complex and fine-grained control by changing the three files in the conf directory. For more details, refer:
Http://www.cnblogs.com/ximu/articles/2119136.html