action08 发表于 2014-03-12 14:17

关于apache运行方式的问题

本帖最后由 action08 于 2014-03-12 14:37 编辑

apache运行有两种方式,Perfork和worker,明显后者更能抗压力一些
但是在ubuntu1204中也有两种包,php+apache的只有perfork,apachectl -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
prefork.c
http_core.c
mod_so.c
难道worker就不能跟php mod一起么??
是这个情况么??

action08 发表于 2014-03-12 14:26

本帖最后由 action08 于 2014-03-12 16:30 编辑

应该没有这个限制吧,,难道ubu server做了坑???大家还是需要花钱买服务才提供???

Apache MPM worker

This Multi-Processing Module (MPM) implements a hybrid multi-process multi-threaded server. By using threads to serve requests, it is able to serve a large number of requests with fewer system resources than a process-based server. However, it retains much of the stability of a process-based server by keeping multiple processes available, each with many threads.

q1208c 发表于 2014-03-12 15:03

在 RH 系的 OS中, apache的 php mod 有两种模式的. ubuntu的, 没用过, 不是太清楚.

action08 发表于 2014-03-12 15:55

回复 3# q1208c


    rh下是如何搞的???能把你机器上的信息发出来么???

我暂时只在ubuntu下哦

q1208c 发表于 2014-03-12 16:11

回复 4# action08 <IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>

action08 发表于 2014-03-12 16:24

恩,ubuntu有很多都不一样,shell@ubuntu:/usr/src$ ls
linux-headers-3.2.0-60linux-headers-3.2.0-60-genericvirtualbox-4.1.12
shell@ubuntu:/usr/src$
shell@ubuntu:/usr/src$
shell@ubuntu:/usr/src$
现在我已经准备吧编译代码放到路径/usr/local/src
页: [1]
查看完整版本: 关于apache运行方式的问题