设为首页 收藏本站
查看: 923|回复: 0

[经验分享] Compiling apache

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2018-11-28 09:51:34 | 显示全部楼层 |阅读模式

  • Apache HTTP server 2.2.x
  • 1.Accurate time keeping
  •   NTP
  • ###########
  • 2.Perl 5 [OPTIONAL]
  •     For some of the support scripts like apxs or dbmmanage (which are written in Perl) the Perl 5 interpreter is required

  • ###########
  • 3.apr/apr-util >= 1.2
  • Note
  • The --with-included-apr option was added in version 2.2.3

  • # Force the use of the bundled apr/apr-util
  • ./configure --with-included-apr
  • To build Apache HTTPd against a manually installed apr/apr-util:

  • # Build and install apr 1.2
  • cd srclib/apr
  • ./configure --prefix=/usr/local/apr-httpd/
  • make
  • make install

  • # Build and install apr-util 1.2
  • cd ../apr-util
  • ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
  • make
  • make install

  • # Configure httpd
  • cd ../../
  • ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/

  • ###########
  • 4.Verify GPG md5 sha1
  • #wget http://www.apache.org/dist/httpd/KEYS
  • #wget http://mirror.bjtu.edu.cn/apache//httpd/httpd-2.2.19.tar.gz
  • #wget http://www.apache.org/dist/httpd/httpd-2.2.19.tar.gz.asc
  • #gpg --import KEYS
  • #gpg --verify httpd-2.2.19.tar.gz.asc

  • ###########
  • 5. ./configure
  • (1).the default options(To configure the source tree using all ), simply type ./configure
  • (2).Apache HTTP Server installation location --prefix
  • (3).The Apache HTTP Server comes with a Base set of modules included by default
  • (4).enable other module using the --enable-module option
  •     http://httpd.apache.org/docs/2.2/mod/
  • (5).shared objects (DSOs) module --enable-module=shared
  •     ######
  • DSO modules may be compiled at the time the server is built, or they may be compiled and added at a later time using the Apache Extension Tool (apxs).
  •     ######
  • A module named mod_so which must be statically compiled into the Apache core
  •     ######
  • After a module is compiled into a DSO named mod_foo.so you can use mod_so's LoadModule command in your httpd.conf file to load this module at server startup or restart.
  •     ######–
  • --enable-so的意思是说
  • 让apache 核心装载DSO,但是不实际编译任何动态模块
  •     ######
  • --enable-ModuleName的意思是说 编译并包含模块ModuleName
  •     ######
  • --enable-ModuleName=shared 的意思是说将这个模块编译成动态的
  •     ######
  • 上面中 –enable-mods-shared=most的意思是说 动态的编译进来大多数的模块
  • 而 –enable-mods-shared=all是指动态的编译所有的模块
  • 如果把-shared去掉,就是静态的编译了

  • http://blog.csdn.net/phphot/article/details/2715016

  • (6).disable Base modules   --disable-module option

  • http://httpd.apache.org/docs/2.2/programs/configure.html

  • (7).--with-mpm=worker
  • http://liujiesmart.iteye.com/blog/636151

  • (8).usefull ./configure options
  • #######  Modules, disabled by default check (http://httpd.apache.org/docs/2.2/programs/configure.html)
  •   Options                Default
  • --prefix=PREFIX             /usr/local/apache2
  • ####### --enable-mods-shared=MODULE-LIST
  • #####--enable-mods-shared=all does not actually build all modules
  • ex:--enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache"

  
  参考资料:

  http://iuscommunity.org/Repos
  http://os.51cto.com/art/201103/248258.htm
  http://blogold.chinaunix.net/u2/73129/showart_1674161.html
  http://os.51cto.com/art/201103/248420.htm
  http://os.51cto.com/art/201103/250276.htm
  http://os.51cto.com/art/201103/247916.htm
  http://whxhz.iteye.com/blog/1084586
  http://bbs.chinaunix.net/viewthread.php?tid=1268156
  http://tuxlite.com/
  http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-5.6-lamp




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-640594-1-1.html 上篇帖子: apache direction 下篇帖子: Apache 错误
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表