linux下apache工作模式查看及修改

httpd -V  或者 apachectl -V

linux下apache工作模式查看及修改

刚开始查看的时候是event模式,vim  /etc/httpd/http.conf 将event模式注释,打开worker模式

linux下apache工作模式查看及修改

linux下apache工作模式查看及修改

注意:在apache编译安装的时候需要加上 --enable-mpms-shared=all 才有用,不然需要重新编译安装!