1. yum upgrade
2. yum -y install openssl perl perl* pcre wget vim zlib tree gcc gcc-c++ make libtool pcre-devellrzsz zlib-devel openssl-devel
3. Install the Apr
4. tar zvxf apr-1.5.2.tar.gz
5. cd apr-1.5.2
6. ./configure --prefix=/usr/local/apr
7. make
8. make install
9. Install the Apr-util
10. tar zvxf apr-util-1.5.4.tar.gz
11. cd apr-util-1.5.4
12. ./configure --prefix=/usr/local/apr-util--with-apr=/usr/local/apr/
13. Make
14. make install
15. Verify: # /usr/local/apr-util/bin/apu-1-config--version
16. Install the pcre
17. tar zvxf pcre-8.35.tar.gz
18. cd pcre-8.35
19. ./configure --prefix=/usr/local/pcre
20. make
21. make install
22. Install openssl
23. tar zvxf openssl-1.0.2c.tar.gz
24. cd openssl-1.0.2c
25. ./config --prefix=/usr/local/openssl
26. make
27. make install
28. Install the sqlite3
29. tar zvxf sqlite-autoconf-3080500.tar.gz
30. cd sqlite-autoconf-3080500
31. ./configure
32. make
33. make install
34. tar zvxf dap-3.9.tar.gz
35. cd dap-3.9.tar.gz
36. ./configure
37. tar zvxf libtool libtool-2.4.6.tar.gz
38. cd libtool-2.4.6
39. ./configure
40. install apache
41. tar zvxf httpd-2.4.6.tar.gz
42. cp -rf ./apr-1.5.2 ./httpd-2.4.6/srclib/apr
43. cp -rf ./apr-util-1.5.4 ./httpd-2.4.6/srclib/apr-util
44. cd httpd-2.4.6
45. /configure --prefix=/usr/local/apache--enable-ldap=shared --enable-authnz-ldap=sahred --with-included-apr--with-ldap --with-apr --with-apr-util --enable-so --enable-dav--enable-rewrite=shared --enable-ssl=shared --enable-deflate=shared--enable-authn-dbm=shared --enable-authn-anon=shared--enable-auth-basic=shared --with-mpm=prefork --enable-cache --enable-file-cache --enable-mem-cache--enable-disk-cache
46. make
47. make install
48. install subversion
49. tar zvxf subversion-1.8.10.tar.gz
50. cd subversion-1.8.10
51. ./configure --prefix=/usr/local/subversion--with-apxs=/usr/local/apache/bin/apxs--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-zlib --enable-maintainer-mode
52. make
53. make install

本文详细介绍了如何使用yum命令安装Apache、Apr、Apr-util、pcre、openssl、sqlite3等关键组件,并最终安装Apache Web服务器。
1827

被折叠的 条评论
为什么被折叠?



