﻿{"id":2923,"date":"2020-05-15T15:34:10","date_gmt":"2020-05-15T22:34:10","guid":{"rendered":"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=2923"},"modified":"2020-05-15T15:56:10","modified_gmt":"2020-05-15T22:56:10","slug":"2923","status":"publish","type":"post","link":"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=2923","title":{"rendered":"Apache\u306e\u4f7f\u7528\u30e1\u30e2\u30ea\u3092\u6e1b\u3089\u3059"},"content":{"rendered":"<p>\u5916\u51fa\u81ea\u7c9b\u751f\u6d3b\u30822\u304b\u6708\u7d4c\u904e\u3002\u3002\u3002<br \/>\n<a href=\"https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-thumbnail wp-image-2920\" src=\"https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779-150x88.jpg\" alt=\"\" width=\"150\" height=\"88\" srcset=\"https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779-150x88.jpg 150w, https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779-300x176.jpg 300w, https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779-768x450.jpg 768w, https:\/\/www.anvilsoftcraft.com\/weblog\/wp-content\/uploads\/2020\/05\/DSC_1779.jpg 800w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><br \/>\n\u305d\u308d\u305d\u308d\u304a\u5e97\u3082\u958b\u304d\u59cb\u3081\u3066\u304d\u3066\u3044\u308b\u306e\u3060\u3063\u305f\u3002\u3002\u3002<br \/>\n\u3067\u3082\u30e9\u30b8\u30b3\u30f3\u306f\u98db\u884c\u5834\u304c6\u6708\u672b\u307e\u3067\u4f7f\u7528\u505c\u6b62\u306a\u306e\u3067\u30d5\u30e9\u30a4\u30c8\u3067\u304d\u305a\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3053\u306e\u30d6\u30ed\u30b0\u3082\u653e\u7f6e\u72b6\u614b\u3060\u3063\u305f\u3051\u3069\u5148\u65e5\u3042\u307e\u308a\u306b\u8868\u793a\u304c\u9045\u3044\u306e\u3067\u539f\u56e0\u3092\u8abf\u67fb\u266a<br \/>\n\u307e\u3042\u60f3\u50cf\u306f\u3064\u3044\u305f\u3051\u3069\u3055\u304f\u3089VPS\u306e\u30e1\u30e2\u30ea\u304c1GB\u3057\u304b\u306a\u3044\u306e\u304c\u539f\u56e0\u3002\u3067\u3001\u3069\u3046\u305b\u30a2\u30af\u30bb\u30b9\u6570\u3082\u5c11\u306a\u3044\u306e\u3067Web\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u3044\u3058\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u6700\u5927\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u6e1b\u3089\u3057\u3066\u30e1\u30e2\u30ea\u3092\u958b\u3051\u3066\u3042\u3052\u3088\u3046\u3068\u3044\u3046\u9b42\u80c6\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u9045\u3044\u5834\u5408\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3002free\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u5f97\u3002<\/p>\n<pre>[root]# free\r\ntotal used free shared buff\/cache available\r\nMem: 1016156 883540 65260 2000 67356 11220\r\nSwap: 4194300 4178664 15636\r\n<\/pre>\n<p>\u7a7a\u304d\u30e1\u30e2\u30ea\u306f\u300cfree\u300d\u306e\u3068\u3053\u308d\u3067\u300165260k\uff08\u5927\u4f5364M\u304f\u3089\u3044\uff09\u3057\u304b\u3042\u3044\u3066\u306a\u3044(\u30fb_\u30fb;)<br \/>\n\u7d14\u7c8b\u306b\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u9818\u57df\u300cavailable\u300d\u306f\u7d0411M\u3002\u3002\u3002( ;\u2200;)<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067Apache\u306e\u30d7\u30ed\u30bb\u30b9\u6570\u3092\u7d5e\u308b\u3053\u3068\u306b\u3002\u3069\u3046\u305b\u30a2\u30af\u30bb\u30b9\u5c11\u306a\u3044\u306e\u3067\u3002\u3002\u3002( ;\u2200;)<br \/>\nApache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.4.29\u3001\u3068\u308a\u3042\u3048\u305ampm.conf\u3067event\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u306e\u3092\u78ba\u8a8d<\/p>\n<pre>LoadModule mpm_event_module modules\/mod_mpm_event.so\r\n<\/pre>\n<p>\u3067\u3001\u305d\u306empm.conf\u5185\u306b\u4e0b\u8a18\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3002<\/p>\n<pre>\r\n<IfModule mpm_event_module>\r\nStartServers 2\r\nMinSpareThreads 5\r\nMaxSpareThreads 10\r\nThreadLimit 32\r\nThreadsPerChild 5\r\nMaxRequestWorkers 30\r\nMaxConnectionsPerChild 0\r\n<\/IfModule>\r\n<\/pre>\n<p>\u610f\u5473\u306f\u305d\u308c\u305e\u308c<br \/>\nStartServers \u3000\u3000\u8d77\u52d5\u6642\u306e\u5b50\u30d7\u30ed\u30bb\u30b9\u6570<br \/>\nMinSpareThreads\u3000\u3000\u30a2\u30a4\u30c9\u30eb\u6642\u6700\u5c0f\u30b9\u30ec\u30c3\u30c9\u6570<br \/>\nMaxSpareThreads\u3000\u3000\u30a2\u30a4\u30c9\u30eb\u6642\u6700\u5927\u30b9\u30ec\u30c3\u30c9\u6570<br \/>\nThreadLimit\u3000\u3000\u3000\u3000\u3000\u30b9\u30ec\u30c3\u30c9\u4e0a\u9650<br \/>\nThreadsPerChild\u3000\u3000\u3000\u5b50\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u751f\u6210\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u6570<br \/>\nMaxRequestWorkers\u3000\u3000\u5b50\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306e\u6700\u5927\u30ea\u30af\u30a8\u30b9\u30c8\u6570<br \/>\nMaxConnectionsPerChild\u3000\u5b50\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306e\u6700\u5927\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u6570<\/p>\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u30b5\u30fc\u30d0\u3092\u518d\u8d77\u52d5<\/p>\n<pre>systemctl restart httpd\r\n<\/pre>\n<p>\u3082\u3046\u4e00\u5ea6free\u30b3\u30de\u30f3\u30c9\u3067\u7a7a\u304d\u30e1\u30e2\u30ea\u3092\u78ba\u8a8d\u3059\u308b\u3068<\/p>\n<pre>[root]# free\r\ntotal used free shared buff\/cache available\r\nMem: 1016156 164588 721936 1444 129632 701024\r\nSwap: 4194300 538348 3655952\r\n<\/pre>\n<p>\u304a\u304a700M\u4ee5\u4e0a\u7a7a\u3044\u305f\uff01\uff01!(^^)!<br \/>\n\u52d5\u4f5c\u3082\u304d\u3073\u304d\u3073\u266a<\/p>\n<p>\u8a2d\u5b9a\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089\u3002<br \/>\n<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/event.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/httpd.apache.org\/docs\/2.4\/mod\/event.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5916\u51fa\u81ea\u7c9b\u751f\u6d3b\u30822\u304b\u6708\u7d4c\u904e\u3002\u3002\u3002 \u305d\u308d\u305d\u308d\u304a\u5e97\u3082\u958b\u304d\u59cb\u3081\u3066\u304d\u3066\u3044\u308b\u306e\u3060\u3063\u305f\u3002\u3002\u3002 \u3067\u3082\u30e9\u30b8\u30b3\u30f3\u306f\u98db\u884c\u5834\u304c6\u6708\u672b\u307e\u3067\u4f7f\u7528\u505c\u6b62\u306a\u306e\u3067\u30d5\u30e9\u30a4\u30c8\u3067\u304d\u305a\u3002 \u3068\u3044\u3046\u308f\u3051\u3067\u3053\u306e\u30d6\u30ed\u30b0\u3082\u653e\u7f6e\u72b6\u614b\u3060\u3063\u305f\u3051\u3069\u5148\u65e5\u3042\u307e\u308a\u306b\u8868\u793a\u304c\u9045\u3044\u306e\u3067\u539f\u56e0\u3092\u8abf &hellip; <a href=\"https:\/\/www.anvilsoftcraft.com\/weblog\/?p=2923\">Continue reading <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":[5,6],"tags":[],"class_list":["post-2923","post","type-post","status-publish","format-standard","hentry","category-software-development","category-6"],"_links":{"self":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/2923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2923"}],"version-history":[{"count":0,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/2923\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anvilsoftcraft.com\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}