⒈ installation SVN server
1. Install Subversion
Subversion is a version control system, with respect to the RCS, CVS, using the branch management system, its design goal is to replace CVS.
yum install -y subversion
⒉ create a SVN repository
1. Create a project repository
mkdir -p /data/svn/myproject
svnadmin create /data/svn/myproject
⒊ SVN configuration information
Configuration directory / data / svn / myproject / conf
There are three files in the configuration directory, respectively,
- authz is access control (configuration) file
- passwd file is the account password
- SVN is a comprehensive service svnserve.conf profile
1. Edit authz, reference to the following contents
[Groups] # user group admin = admin, root, test user corresponding to the user group # [/] # library directory permissions @admin RW = # Group Rights * = R & lt # non-user-group permissions
2. Configure account password file passwd, refer to the following contents:
[users] # harry = harryssecret # sally = sallyssecret admin = 123456 root = 123456 test = 123456
3. Configure SVN comprehensive service profile svnserve.conf, refer to the following contents:
[General] # Force-username-Case = none # anonymous access permissions can read, write, none, default to the Read anon-Access = none # enable authorized users to have write access auth-access = write path # password database password passwd = -db # access control file authz-db = authz # authentication namespace, sVN will prompt certification in the display, and as a key credential caching realm = / the Data / svn / myproject [SASL]
⒋ start SVN service
1. Start SVN
svnserve -d -r /data/svn
2.checkout SVN project
mkdir -p /data/workspace/myproject
svn co svn://127.0.0.1/myproject /data/workspace/myproject --username root --password 123456 --force --no-auth-cache
3. Submit the file to the SVN server
Ⅰ submission of documents from the local to the SVN server, where the root
password /data/svn/myproject/conf/passwd
file stored passwords
cd /data/workspace/myproject
echo test >> test.txt
svn add test.txt
svn commit test.txt -m 'test'
After successful submission ⅱ can delete files from a local project with the following command
cd /data/workspace/myproject
rm -rf test.txt
After ⅲ deleted can be recovered by SVN server
cd /data/workspace/myproject
svn update