我使用这个命令:yum install apache2-mpm-worker
没有成功。在谷歌上搜索也没有找到
谢谢。
答案1
取消注释 /etc/sysconfig/httpd 中的 httpd.worker 行:
# The default processing model (MPM) is the process-based
# 'prefork' model. A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
#HTTPD=/usr/sbin/httpd.worker
干杯
答案2
我已经完成了上述操作,并重新启动了 apache。我执行了 httpd -l,它只显示 prefork.c 而不是 worker.c 。我检查了 sbin 目录,确实知道 httpd.worker 文件存在。还有其他想法吗?