Preface: A long time ago loaded once, and then rest for a while and need to use, found that they have forgotten almost, hence the article.
One installation Instructions
1.1 Environment
[Email protected] ~]# lsb_release-alsb Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch: Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor id:centosdescription: CentOS Release 6.6 (Final) release:6.6codename:final
1.2 Installing user root
1.3 Installation Mode Yum
Two-installation mod_dav_svn Subversion httpd
Description: Subversion version control server
HTTPD Web Server
Mod_dav_svn:subversion httpd Module Plug-in
The first failure to install this plugin has caused it to fail.
2.1 Check if the original system has been installed
[Email protected] ~]# RPM-QL httpdpackage httpd are not installed[[email protected] ~]# rpm-ql mod_dav_svnpackage Mod_da V_SVN isn't installed[[email protected] ~]# RPM-QL Subversion package Subversion was not installed
2.2 Yum Installation
Yum Install MOD_DAV_SVN Subversion httpd
2.3 Verification
2.3.1 Verification httpd
[Email protected] conf]# service httpd startstarting httpd: [Tue] [17:49:02] module warn is AL Ready loaded, Skipping[tue-17:49:02] [warn] module authz_svn_module is already loaded, Skippinghttpd:could no T reliably determine the server ' s fully qualified domain name, using 10.59.9.9 for servername[OK]
Http://serverip can be accessed through the browser, or if the 80 port is started (I have not modified the httpd listening port here)
2.3.2 Start SVN
2.3.2.1 Establishing Svnreps Directory
2.3.2.2 SVN build Warehouse
2.3.2.3 Start the Warehouse
[[email protected] www]# mkdir -p /var/svn/svnrepos[[email protected] www]# svnadmin create /var/svn/svnrepos[[email protected] www]# ll /var/svn/ svnrepos/total 24drwxr-xr-x 2 root root 4096 aug 11 17:55 confdrwxr-sr-x 6 root root 4096 aug 11 17:55 db-r--r--r-- 1 Root root 2 aug 11 17:55 formatdrwxr-xr-x 2 root root 4096 aug 11 17:55 hooksdrwxr-xr-x 2 root root 4096 aug 11 17:55 locks-rw-r--r-- 1 root root 229 aug 11 17:55 readme.txt[[email protected] www]# svnserve -d -r /var/svn/ svnrepos[[email protected] www]# ps -ef | grep svnroot 27425 1 0 17:56 ? 00:00:00 Svnserve -d -r /var/svn/svnreposroot 27427 26838 0 17:56 pts/0 00:00:00 grep svn
2.3.2.4 can test SVN with the client.
2.3.3 SVN configuration Modify Add users etc.
2.3.3 backing up SVN configuration files
[[email protected] conf]# CP Authz Authz.orig.bak[[email protected] conf]# CP passwd Passwd.orig.bak[[email protected] Co nf]# CP svnserve.conf Svnserve.conf.orig.bak[[email protected] conf]# pwd/var/svn/svnrepos/conf
Description
passwd: User Password
AUTH:RW Permissions Configuration
SVNSERVE.CONF:SVN configuration access is restricted, where is the root directory of the access, note the format of the file to modify the configuration right up, the equal sign cannot have spaces on either side
Three httpd integrated SVN
3.1 httpd The SVN subdirectory under the Web root and associates the directory with Subversion
[[email protected] html]# mkdir svn[[email protected] html]# pwd/var/www/html[[email protected] html]# svn checkout--user Name=admin--password=admin file:///var/svn/svnrepos//var/www/html/svn/checked out revision 0.
3.2 Modify the httpd profile httpd.conf (back up before you modify it)
Add the following content
LoadModule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so<location/ repos> DAV svn svnpath/var/svn/svnrepos </Location>
3.3 Restarting Apache
[Email protected] conf]# service httpd restart
3.4 Page Validation
Write this for the time being ~ ~ ~
Reference http://vrlinux.com/xitongguanli/20101124/80747.html
Yum installation svn+httpd