{"id":68,"date":"2014-07-04T11:58:00","date_gmt":"2014-07-04T02:58:00","guid":{"rendered":"http:\/\/yug-oc.jp\/serv_blog\/?p=68"},"modified":"2017-03-08T15:32:37","modified_gmt":"2017-03-08T06:32:37","slug":"mpm%e3%82%92prefork%e3%81%8b%e3%82%89worker%e3%81%b8%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%81%a6%e9%81%8b%e7%94%a8%e3%81%97%e5%a7%8b%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/yug-oc.net\/serv_blog\/archives\/68","title":{"rendered":"MPM\u3092prefork\u304b\u3089worker\u3078\u5207\u308a\u66ff\u3048\u3066\u904b\u7528\u3057\u59cb\u3081\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u3061\u3087\u3063\u3068\u904a\u3093\u3067\u307f\u308b\u611f\u3058\u3067\u3001\u30de\u30eb\u30c1\u30d7\u30ed\u30bb\u30c3\u30b7\u30f3\u30b0\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\uff2d\uff30\uff2d\uff09\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f7f\u7528\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306fFedora20 x64<br \/>\nApache2.4\u3067\u3059\u3002<\/p>\n<p>\u5148\u305a\u3001\u5f53\u30b5\u30fc\u30d0\u30fc\u306e\uff2d\uff30\uff2d\u5207\u308a\u66ff\u3048\u306f\u3001<br \/>\n\/etc\/httpd\/cond.modules.d\/00-mpm.conf \u306b\u8a18\u8ff0\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u304b\u3089Prefork\u3068Worker\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so<br \/>\n\u3068\u8a18\u8ff0\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u3053\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<br \/>\n#LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so<\/p>\n<p>\u6b21\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b<br \/>\n#LoadModule mpm_worker_module modules\/mod_mpm_worker.so \u3053\u308c\u306e\uff03\u3092\u524a\u9664\u3002<br \/>\nLoadModule mpm_worker_module modules\/mod_mpm_worker.so<\/p>\n<p>\u3053\u306e\u72b6\u614b\u306b\u3057\u3066\u4fdd\u5b58\u3057\u3001<br \/>\nsystemctl restart httpd<br \/>\n\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u4e21\u65b9\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u308b\u72b6\u614b\u3060\u3068\u30a8\u30e9\u30fc\u3067\u8d77\u52d5\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5fc5\u305a\u4f7f\u308f\u306a\u3044\u65b9\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u4e0b\u3055\u3044\u306d\u3002<\/p>\n<p>httpd -V<br \/>\n\u30b3\u30de\u30f3\u30c9\u3067\u52d5\u4f5c\u72b6\u614b\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u306e\u3067\u4e00\u5ea6\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>[root@WingsOfBlueFlame ]# httpd -V<br \/>\nServer version: Apache\/2.4.* (Fedora)<br \/>\nServer built:<br \/>\nServer loaded:<br \/>\nCompiled using:<br \/>\nArchitecture:\u00a0\u00a0 64-bit<br \/>\nServer MPM:\u00a0\u00a0\u00a0\u00a0 worker<\/p>\n<p>worker\u3067\u7acb\u3061\u4e0a\u304c\u3063\u3066\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u307e\u307e\u4f7f\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u521d\u671f\u8a2d\u5b9a\u306e\u72b6\u614b\u3067\u3001\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\uff26\uff15\u30c6\u30ed\u3084\u5927\u91cf\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u969b\u306b\u30e1\u30e2\u30ea\u30fc\u3092\u98df\u3044\u3064\u3076\u3055\u308c\u3001\uff33\uff37\uff21\uff30\u5730\u7344\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u8981\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<p>\u30e1\u30e2\u30ea\uff18\uff27\uff22\u7a4d\u3093\u3067\u308b\u306e\u3067\u3059\u304c\u3001\u8ca0\u8377\u30c6\u30b9\u30c8\u306e\u70ba\u306b\u6700\u5927\uff12\uff15\uff10\u30e6\u30fc\u30b6\u30fc\u30a2\u30af\u30bb\u30b9\u8ca0\u8377\u30c6\u30b9\u30c8\u3092\u884c\u3063\u305f\u969b\u306b\u5927\u5909\u306a\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\uff08SWAP\u5730\u7344\uff09<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u5b9f\u65bd\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\/etc\/httpd\/cond.d\/mpm.conf \u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u65bd\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&lt;Ifmodule worker.c&gt;<br \/>\nServerLimit\u00a06<br \/>\nStartServers\u00a04<br \/>\nMaxClients\u00a0150<br \/>\nMinSpareThreads 25<br \/>\nMaxSpareThreads\u00a075<br \/>\nThreadsPerChild 25<br \/>\nMaxRequestsPerChild 512<br \/>\n&lt;\/Ifmodule&gt;<\/p>\n<p>ServerLimit\u306e\u7b97\u51fa\u6cd5\u306f\u3001MaxClients \u00f7 ThreadsPerChild<br \/>\n\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3067\u306a\u3044\u3068\u3042\u3063\u3068\u3044\u3046\u9593\u306bSWAP\u5730\u7344\u3067\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u6709\u52b9\u306b\u3059\u308b\u306b\u306fApache\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\nsystemctl restart httpd<\/p>\n<p>\u3068\u3053\u308d\u304c\u3069\u3063\u3053\u3044\u3001\u4eca\u5ea6\u306f\uff30\uff28\uff30\u4ee5\u5916\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u3001\uff23\uff27\uff29\u304c503\u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\/etc\/httpd\/cond.modules.d\/01-cgi.conf \u306e\u4e2d\u8eab\u3092\u8997\u3044\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\nLoadModule cgid_module modules\/mod_cgid.so<\/p>\n<p>LoadModule cgid_module modules\/mod_cgid.so<\/p>\n<p>LoadModule cgi_module modules\/mod_cgi.so<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\nprefork\u306e\u6642\u306fmod_cgi.so\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u3058\u3083\u3042worker\u306e\u65b9\u3092\u540c\u3058\u3088\u3046\u306b\u66f8\u304d\u304b\u3048\u308a\u3083\u3044\u3044\u3093\u3058\u3083\u306d\uff1f\u3068\u3044\u3046\u6d45\u306f\u304b\u306a\u8003\u3048\u3067\u5909\u66f4\u3002<br \/>\nLoadModule cgi_module modules\/mod_cgi.so<br \/>\n#\u00a0\u00a0 LoadModule cgid_module modules\/mod_cgid.so<\/p>\n<p>\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\uff1f<\/p>\n<p>\u306a\u3093\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\uff01<br \/>\n\uff23\uff27\uff29\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff01<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3053\u308c\u306b\u3066\uff08\u4eca\u306e\u3068\u3053\u308d\uff09\u4e0d\u5177\u5408\u3082\u306a\u304f\u52d5\u304d\u51fa\u3057\u305f\u306e\u3067\u4e00\u4ef6\u843d\u7740\u3068\u3044\u304d\u307e\u3059\u3002\u8a2d\u5b9a\u8272\u3005\u5f04\u3063\u3066\u3066CGI\u304c\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3055\u306a\u3044\u6570\u5024\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u8aa4\u3063\u3066\u305d\u3061\u3089\u306e\u6570\u5024\u3092\u6d88\u3057\u3066\u3057\u307e\u3044\u7533\u3057\u305f\uff08\u3041<\/p>\n<p><span class=\"post_sig\">WordPress for Android \u304b\u3089\u6295\u7a3f<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3061\u3087\u3063\u3068\u904a\u3093\u3067\u307f\u308b\u611f\u3058\u3067\u3001\u30de\u30eb\u30c1\u30d7\u30ed\u30bb\u30c3\u30b7\u30f3\u30b0\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\uff2d\uff30\uff2d\uff09\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u4f7f\u7528\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306fFedora20 x64 Apache2.4\u3067\u3059\u3002 \u5148\u305a\u3001\u5f53\u30b5\u30fc\u30d0\u30fc\u306e\uff2d\uff30\uff2d\u5207\u308a\u66ff\u3048\u306f\u3001 \/etc\/httpd\/c &hellip; <a href=\"https:\/\/yug-oc.net\/serv_blog\/archives\/68\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">MPM\u3092prefork\u304b\u3089worker\u3078\u5207\u308a\u66ff\u3048\u3066\u904b\u7528\u3057\u59cb\u3081\u3066\u307f\u308b\u3002<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,13],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-apache2-4","category-linux"],"_links":{"self":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":6,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}