Notes: 1. SVN checkout http: // localhost/SVN/Hello. World2. When SVN commit is used, the environment variable $ svn_editor = VI of the default editor needs to be set manually. It seems that there is a problem with Kate. 3. If the logon username and password of Linux are the same as one of SVN username and password, you will not need to enter the username and password for checkout. For example, Linux has a user named wooin, SVN also has a user named wooin, And the passwords are the same. When wooin is used to log on to Linux and run checkout, the source code file can be extracted directly, do not enter authentication information. 4. Several permissions are involved in SVN usage: file system permissions, Linux system permissions, SVN user permissions, and Apache process permissions. File System permissions, Linux system permissions: the same meaning is that the folder and file access permissions are usually used in Linux. When creating a repository, folder, and configuration file in SVN, use the svnroot user and set the repository permission to 700. Other users are not allowed to view the permissions directly through the file system and can only be managed by the svnroot user. Apache process permissions: because all the operations transmitted with the repository are performed through the Apache process, even if you have set a lot of permissions for SVN users, however, the Apache process does not have the permission to access the repository or related files. The permission of the Apache process is set at/usr/local/apache2/CONF/httpd. in the conf file, find the two lines in the file:
User daemon # Change daemon to svnroot to run the Apache process as svnroot. Group daemon |
SVN User Permissions: the permissions set in the authz. conf file are used by SVN to manage repository access permissions. 5. The SVN server can be configured in two ways: HTTP and svnserve. The HTTP method is introduced here. 6. Set some work to be done during SVN startup at the end of/etc/profile
# Start Apache server for SVN /Usr/sbin/apachectl start Export svn_editor = vi |
7. when installing SVN, APR libraries should specify the -- with-Apr = and -- With-Apr-util = parameters to the root directory (serverroot) of Apache installation, instead of using the APR that comes with the default SVN installation package. Otherwise, if the apache version you install is different, the APR library may not match, and the following error occurs: Can't set position pointer in file '/SVN/test/DB/revs/1': invalid argument error. Updated -- for example, if you installed Apache 2.2.0, you must specify The -- With-apxs and -- With-Apr parameters are stored in your apache2.2.0 installation directory: ./Configure -- prefix =$ {subversioninstallfolder }/ -- With-apxs =$ {apacheinstallfolder}/bin/apxs/ -- With-Apr =$ {apacheinstallfolder }/ -- With-Apr-util =$ {apacheinstallfolder }/ -- With-SSL/ -- With-zlib/ -- Enable-maintainer-Mode |