Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 gentoo 盒子,我已经完成了默认 gentoo 安装。现在我想改变它的mpm,因为我的彗星阻止 了所有其他请求。mpm应该worker解决这个并发问题吗?我怎样才能改变gentoo上的mpm?
worker
您只需将 APACHE2_MPMS 设置为所需的 MPM:
# echo 'APACHE2_MPMS="worker"' >> /etc/portage/make.conf
我不知道它是否会解决您的并发问题。
您应该使用APACHE2_MPMS="prefork" in,/etc/portage/make.conf因为这是唯一可以确保不会出现并发问题的模块。这样做的原因是,这个模块对每个请求都使用一个线程。
APACHE2_MPMS="prefork"
/etc/portage/make.conf