Current location - Quotes Website - Team slogan - Transplantation of svn to linux in windows environment
Transplantation of svn to linux in windows environment
Migrating svn from windows to linux

Realize svn access and http access.

Enter the conference directory

Authz: responsible for the account authority management of the test3 library, and controlling whether the account has read and write authority.

Passwd: responsible for the account and password management of the test3 library, and pay attention to the plain text of the password.

SVN server. conf:SVN server configuration file

Example:

Start:

Port: 3690 Be careful to open the firewall.

Please visit:

SVN:// 192. 168. 1.206:3690/test3

Use mod_dav_svn module to realize Apache service accessing svn warehouse, and mod_dav_svn is the interface between Apache and svn.

SVNParentPath /svn/svndir

If more than one version library suggests using SVNParentPath instead of SVNPath, reference the location of the /svn/svndir version library.

AuthUserFile /svn/svndir/passwd

Refers to the user name and password created later using apache's htpasswd.

AuthzSVNAccessFile/SVN/SVN dir/authz

Reference permission file

Create a user and set a password

At this time, you can pass.

http:// 192. 168. 1.206/SVN/test3

Enter the user name and password in the browser to access.

You can directly package and migrate the data in the Repositories directory under windows to the Repositories directory under linux, but the user name and password cannot be migrated and need to be rebuilt.

1 Note that there is a problem with the permissions. If the owner of /svn/svndir is not apache, access will always be denied.

2 svn assistance and http protocol

Svn protocol is used for clients to access version library in svn:// mode, while mod_authz_svn module allows clients to access version library through Apache. They use different services: svnserve and httpd. Because users and groups have different permissions and different management methods, it is not recommended to start two access methods at the same time.

From the point of view of ease of use and convenient management, Apache accessing the version library in the form of mod_authz_svn module will make more people choose. (mod_authz_svn mode, which uses 80 ports to access and provides encrypted transmission such as https, and the password storage method used for user information verification is not plain text).