Linux Build SVN
Administrator usage Instructions
1. Install and start the SVN server
Install svn:
start svn:svnserve-d-R dir ( Warehouse Absolute path )
Note:dir is the path behind the svn Server root directory,
2. Visit the project:
A: Anonymous access read: readable. Write: Readable and writable. None: No permissions, default.
access permissions are set in the configuration file in the warehouse directory. anon-access = Write
B: Authorized access read: readable. Write: Readable and writable. None: No permissions, default. The following three files need to be set for authorized access.
access permissions are set in the configuration file in the warehouse directory. #auth-access = Write
permission File settings:authz-db = Authz Specify permissions for the Access user
password file settings:password-db = passwd Specifies that the file holding the authorized user password is passwd.
Configuration format for the following two files:
Authz: Group:[Groups]
Dev=zs, ls
Permissions:
[/]
@dev =RW # indicates that the dev Group is readable and writable for all directories
*= # indicates that no other person can access
passwd:user=passwd
3. Note that eclipse defaults to using git only ,not svn, using svn to add svn plugin.
offline: put the Eclipse_svn_site plugin package into the Eclipse directory and extract it proactively,eclipse The package is not automatically unzipped.
Online:help->eclipse marketplace Search:subversion or subeclipse and install.
4, publish the project address:svn://ip/ specific warehouse address directory.
5. How to modify Authz without grouping method
[shop:/]
ZS = RW
ls = RW
indicates that ZS and ls can access all directories under the shop warehouse.
6, create the warehouse. svnadmin Create repository root directory.
7, the SVN through the WEB interface to view management.
Download The httpd service,centos7 's httpd Service root directory is:/var/www/html
Create a post-commit file that reads as follows
[email protected] hooks]# cat Post-commit
#!/bin/sh
Web=/var/www/html/conference/d8101
Export Lang=en_us. UTF-8
SVN update $WEB--username xxx--password xxx
issue 1:Show Log has no information such as author and version number
Workaround:anon-access = None
Realm =/home/xxx/sitproject
Issue 2: Unable to modify log and author
Workaround:
MV Pre-revprop-change.tmpl Pre-revprop-change
chmod 755 Pre-revprop-change
Modify author is forbidden in the script.
See that you need to modify the script content.
Linux Installation svn