技术文档

svn安装与迁移

 03-24  92

以下为svn安装与迁移,迁移非常简单直接copy库文件就ok。

svn安装与迁移

#安装subversion前,须安装apr和apr-util才能正常工作,系统默认情况下,是已经有apr和apr-util这两个包的,但版本较低,仅支持subversion 1.4

  1. mkdir/root/svn
  2. cd/root/svn
  3. rpm-e–nodepsaprapr-util
  4. wgethttp://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
  5. wgethttp://archive.apache.org/dist/apr/apr-util-1.4.1.tar.gz
  6. tarxzfapr-1.4.6.tar.gz
  7. tarxzfapr-util-1.4.1.tar.gz
  8. cdapr-1.4.6
  9. ./configure–prefix=/usr/local/apr
  10. make&&makeinstall
  11. cd../apr-util-1.4.1
  12. ./configure–with-apr=/usr/local/apr
  13. make&&makeinstall
  14. cd../
  15. wgethttp://www.apache.org/dist//httpd/httpd-2.2.22.tar.gz
  16. tarxzfhttpd-2.2.22.tar.gz
  17. cdhttpd-2.2.22
  18. ./configure–prefix=/usr/local/apache–enable-so–enable-ssl
  19. –enable-rewrite–with-mpm=worker–enable-headers–enable-deflate
  20. –enable-dav–with-apr=/usr/local/apr/bin/apr-1-config
  21. –with-apr-util=/usr/local/apr/bin/apu-1-config-enable-maintainer-mode
  22. make&&makeinstall
  23. cp/usr/local/apache/bin/apachectl/etc/init.d/httpd
  24. sed-i‘2a#chkconfig:–8515’/etc/init.d/httpd
  25. sed-i‘3a#description:Apacheserver’/etc/init.d/httpd
  26. chmod755/etc/init.d/httpd
  27. chkconfig–addhttpd
  28. chkconfighttpdon
  29. cd../
  30. wgethttp://labs./apache-mirror/subversion/subversion-1.7.3.tar.gz
  31. tarxzfsubversion-1.7.3.tar.gz
  32. cdsubversion-1.7.3
©2020-2024   万云SSL证书  (www.sslssl.com.cn)  万云科技   豫ICP备2020034358号-10