{"id":2086,"date":"2021-12-01T11:20:50","date_gmt":"2021-12-01T02:20:50","guid":{"rendered":"https:\/\/www.eximradar.jp\/?p=2086"},"modified":"2022-02-06T17:41:15","modified_gmt":"2022-02-06T08:41:15","slug":"%e3%82%bb%e3%83%9e%e3%83%95%e3%82%a9%e4%b8%8d%e8%b6%b3%e3%81%a7apache%e3%81%8c%e4%b8%8a%e3%81%8c%e3%82%89%e3%81%aa%e3%81%84%e3%82%84%e3%81%a4","status":"publish","type":"post","link":"https:\/\/www.eximradar.jp\/?p=2086","title":{"rendered":"\u30bb\u30de\u30d5\u30a9\u4e0d\u8db3\u3067Apache\u304c\u4e0a\u304c\u3089\u306a\u3044\u3084\u3064"},"content":{"rendered":"<p>web\u30da\u30fc\u30b8\u306b\u7e4b\u304c\u3089\u306a\u3044\u3088\u3068\u3044\u3046\u5831\u544a\u3092\u53d7\u3051\u305f\u306e\u3067\u78ba\u8a8d\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">systemctl status  httpd -l\r\n\u25cf httpd.service - The Apache HTTP Server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; vendor preset: disabled)\r\n   Active: failed (Result: exit-code) since \u6c34 2021-12-01 10:18:39 JST; 9s ago\r\n     Docs: man:httpd(8)\r\n           man:apachectl(8)\r\n  Process: 17880 ExecStop=\/bin\/kill -WINCH ${MAINPID} (code=exited, status=1\/FAILURE)\r\n  Process: 16809 ExecReload=\/usr\/sbin\/httpd $OPTIONS -k graceful (code=exited, status=0\/SUCCESS)\r\n  Process: 17878 ExecStart=\/usr\/sbin\/httpd $OPTIONS -DFOREGROUND (code=exited, status=1\/FAILURE)\r\n Main PID: 17878 (code=exited, status=1\/FAILURE)\r\n\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: Starting The Apache HTTP Server...\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: httpd.service: main process exited, code=exited, status=1\/FAILURE\r\n12\u6708 01 10:18:39 exr-web01 kill[17880]: kill: cannot find process \"\"\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: httpd.service: control process exited, code=exited status=1\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: Failed to start The Apache HTTP Server.\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: Unit httpd.service entered failed state.\r\n12\u6708 01 10:18:39 exr-web01 systemd[1]: httpd.service failed.<\/pre>\n<p>\u898b\u3066\u306e\u901a\u308aapache\u306f\u843d\u3061\u3066\u3044\u308b\u3002<br \/>\nmonit\u3067\u76e3\u8996\u3057\u3066\u308b\u306f\u305a\u306a\u306e\u306b\u306a\u3093\u3067\u4e0a\u304c\u3089\u306a\u304b\u3063\u305f\u3093\u3060\u308d\u3046\u3068\u601d\u3044\u3064\u3064\u8d77\u52d5\u3055\u305b\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">systemctl start httpd\r\nJob for httpd.service failed because the control process exited with error code.\r\nSee \"systemctl status httpd.service\" and \"journalctl -xe\" for details.<\/pre>\n<p>\u4e0a\u304c\u3089\u306a\u3044\u3058\u3083\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<p>apache\u306e\u30a8\u30e9\u30fc\u30ed\u30b0(\/var\/log\/httpd\/error_log)\u3092\u62dd\u898b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">[Wed Dec 01 10:18:39.354392 2021] [core:notice] [pid 17878] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0\r\n[Wed Dec 01 10:18:39.357417 2021] [suexec:notice] [pid 17878] AH01232: suEXEC mechanism enabled (wrapper: \/usr\/sbin\/suexec)\r\n[Wed Dec 01 10:18:39.358492 2021] [core:emerg] [pid 17878] (28)No space left on device: AH00023: Couldn't create the ssl-cache mutex<\/pre>\n<p>\u306f\u306f\u3041\u3001\u3055\u3066\u306f\u30bb\u30de\u30d5\u30a9\u304c\u3044\u3063\u3071\u3044\u3060\u306a\u3002<\/p>\n<p>\u30bb\u30de\u30d5\u30a9\u3092\u30c1\u30a7\u30c3\u30af\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\"># ipcs\r\n\r\n------ \u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fc --------\r\n\u30ad\u30fc     msqid      \u6240\u6709\u8005  \u6a29\u9650     \u4f7f\u7528\u30d0\u30a4\u30c8\u6570 \u30e1\u30c3\u30bb\u30fc\u30b8\r\n\r\n------ \u5171\u6709\u30e1\u30e2\u30ea\u30bb\u30b0\u30e1\u30f3\u30c8 --------\r\n\u30ad\u30fc     shmid      \u6240\u6709\u8005  \u6a29\u9650     \u30d0\u30a4\u30c8  nattch     \u72b6\u614b\r\n0x77134191 786432     root       600        1000       0\r\n0x3f13df16 917505     root       600        1000       0\r\n0x8d131025 1572866    root       600        1000       0\r\n0x48137590 1703939    root       600        1000       0\r\n0x7e13ebb2 1048580    root       600        1000       0\r\n0xea13ee1b 1179653    root       600        1000       0\r\n0xc713016c 1310726    root       600        1000       0\r\n0xb613fa61 1441799    root       600        1000       0\r\n0x48130fc2 2490376    root       600        1000       0\r\n0x7013bb1b 2621449    root       600        1000       0\r\n0xce13735b 1835018    root       600        1000       0\r\n0x93137dca 1966091    root       600        1000       0\r\n0x911382e1 2097164    root       600        1000       0\r\n0x11139d26 2228237    root       600        1000       0\r\n0x6c139a73 2359310    root       600        1000       0\r\n0x8d1381a3 2949135    root       600        1000       0\r\n0x481311f4 3145744    root       600        1000       0\r\n0x0d13d057 2752529    root       600        1000       0\r\n0xc21311f7 3178514    root       600        1200712    0\r\n\r\n------ \u30bb\u30de\u30d5\u30a9\u914d\u5217 --------\r\n\u30ad\u30fc     semid      \u6240\u6709\u8005  \u6a29\u9650     nsems\r\n0x00000000 3735552    apache     600        1\r\n0x00000000 3768321    apache     600        1\r\n&lt;\u9577\u304f\u306a\u308a\u3059\u304e\u308b\u306e\u3067\u4e2d\u7565&gt;\r\n0x00000000 12583029   apache     600        1\r\n0x00000000 12615798   apache     600        1\r\n0x00000000 13303927   apache     600        1\r\n0x00000000 13336696   apache     600        1\r\n0x00000000 13041785   apache     600        1\r\n0x00000000 13369466   apache     600        1\r\n0x00000000 13402235   apache     600        1\r\n0x00000000 13435004   apache     600        1\r\n0x00000000 13467773   apache     600        1<\/pre>\n<p>\u3053\u308c\u306f\u3044\u3051\u307e\u305b\u3093\u306a\u3002<\/p>\n<p>\u30bb\u30de\u30d5\u30a9\u306fipcrm -s &lt;semid&gt;\u3067\u6d88\u305b\u308b\u304c<br \/>\n\u4f55\u500b\u3082\u624b\u52d5\u3067\u6d88\u3059\u306e\u306f\u5927\u5909\u306a\u306e\u3067\u3001ipcs\u306e\u7d50\u679c\u3092grep\u3057\u3066awk\u3067\u5207\u308a\u53d6\u3063\u3066ipcrm\u306b\u6e21\u3059\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">ipcs -s | grep apache | awk ' { print $2 } ' | xargs ipcrm sem<\/pre>\n<p>\u3053\u308c\u3067\u304d\u308c\u3044\u3055\u3063\u3071\u308a\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\"># systemctl start httpd\r\n# systemctl status httpd\r\n\u25cf httpd.service - The Apache HTTP Server\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; vendor preset: disabled)\r\n   Active: active (running) since \u6c34 2021-12-01 10:24:32 JST; 3s ago\r\n     Docs: man:httpd(8)\r\n           man:apachectl(8)\r\n  Process: 17880 ExecStop=\/bin\/kill -WINCH ${MAINPID} (code=exited, status=1\/FAILURE)\r\n  Process: 16809 ExecReload=\/usr\/sbin\/httpd $OPTIONS -k graceful (code=exited, status=0\/SUCCESS)\r\n Main PID: 17928 (httpd)\r\n   Status: \"Processing requests...\"\r\n   CGroup: \/system.slice\/httpd.service\r\n           tq17928 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17929 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17930 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17931 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17932 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17933 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17934 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17935 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17936 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17937 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17938 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17939 \/usr\/sbin\/httpd -DFOREGROUND\r\n           tq17940 \/usr\/sbin\/httpd -DFOREGROUND\r\n           mq17941 \/usr\/sbin\/httpd -DFOREGROUND\r\n\r\n12\u6708 01 10:24:32 exr-web01 systemd[1]: Starting The Apache HTTP Server...\r\n12\u6708 01 10:24:32 exr-web01 systemd[1]: Started The Apache HTTP Server.<\/pre>\n<p>apache\u3082\u4e0a\u304c\u3063\u305f\u306e\u3067OK\u3002<\/p>\n<p>\u5fd8\u308c\u306a\u3044\u3046\u3061\u306bmonit\u306ehttpd\u7528\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3082\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">#cat \/etc\/monit.d\/httpd\r\ncheck process httpd with pidfile \"\/var\/run\/httpd\/httpd.pid\"\r\nstart program = \"ipcs -s | grep apache | awk ' { print $2 } ' | xargs ipcrm sem &amp;&amp; \/usr\/bin\/systemctl start httpd\"\r\nstop  program = \"\/usr\/bin\/systemctl stop httpd\"\r\nif failed port 80 with timeout 10 seconds then restart\r\nif failed port 443 with timeout 10 seconds then restart\r\n\r\n#monit -t\r\nControl file syntax OK\r\n\r\n#systemctl restart monit\r\n#systemctl status monit<\/pre>\n<p><del>\u3053\u3093\u306a\u611f\u3058\u304b\u306a\u3002<br \/>\n<\/del>\u2192\u3044\u307e\u3044\u3061\u3046\u307e\u304f\u52d5\u4f5c\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3057\u3066monit\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u305d\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u53e9\u304b\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u3089\u3046\u307e\u304f\u3044\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>web\u30da\u30fc\u30b8\u306b\u7e4b\u304c\u3089\u306a\u3044\u3088\u3068\u3044\u3046\u5831\u544a\u3092\u53d7\u3051\u305f\u306e\u3067\u78ba\u8a8d\u3002 systemctl status httpd -l \u25cf httpd.service &#8211; The Apache HTTP Server Loaded: loaded  &hellip; <a href=\"https:\/\/www.eximradar.jp\/?p=2086\">\u7d9a\u304d\u3092\u8aad\u3080 <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":[],"categories":[10],"tags":[145,146],"_links":{"self":[{"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/posts\/2086"}],"collection":[{"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2086"}],"version-history":[{"count":11,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/posts\/2086\/revisions"}],"predecessor-version":[{"id":2103,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=\/wp\/v2\/posts\/2086\/revisions\/2103"}],"wp:attachment":[{"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eximradar.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}