{"id":2412,"date":"2023-11-18T00:39:14","date_gmt":"2023-11-17T15:39:14","guid":{"rendered":"https:\/\/blog.4star.link\/?p=2412"},"modified":"2023-11-18T00:39:14","modified_gmt":"2023-11-17T15:39:14","slug":"nginx%e3%82%92%e5%86%8d%e8%b5%b7%e5%8b%95%e3%81%97%e3%81%9f%e3%82%89%e3%80%8cfailed-to-start-the-nginx-http-and-reverse-proxy-server-%e3%80%8d","status":"publish","type":"post","link":"https:\/\/blog.4star.link\/?p=2412","title":{"rendered":"nginx\u3092\u518d\u8d77\u52d5\u3057\u305f\u3089\u300cFailed to start The nginx HTTP and reverse proxy server.\u300d"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\nnginx\u3092restart\u3057\u305f\u3089\u300cFailed to start The nginx HTTP and reverse proxy server.\n\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u3002\n\nnginx\u306econf\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u76f4\u3057\u305f\u308a\u3001php-fpm\u306e\u518d\u8d77\u52d5\u3084\u3001selinux\u306e\u7121\u52b9\u5316\u7b49\u8272\u3005\u8a66\u3057\u305f\u304c\u30a8\u30e9\u30fc\u306f\u6d88\u3048\u305a\u3001\n\n# systemctl status nginx.service \n\u25cf nginx.service - The nginx HTTP and reverse proxy server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: disabled)\n  Drop-In: \/usr\/lib\/systemd\/system\/nginx.service.d\n           \u2514\u2500php-fpm.conf\n   Active: failed (Result: exit-code) since Fri 2023-11-17 23:34:13 JST; 18s ago\n  Process: 1319317 ExecReload=\/bin\/kill -s HUP $MAINPID (code=exited, status=0\/SUCCESS)\n  Process: 1501969 ExecStart=\/usr\/sbin\/nginx (code=exited, status=1\/FAILURE)\n  Process: 1501968 ExecStartPre=\/usr\/sbin\/nginx -t (code=exited, status=0\/SUCCESS)\n  Process: 1501966 ExecStartPre=\/usr\/bin\/rm -f \/run\/nginx.pid (code=exited, status=0\/SUCCESS)\n Main PID: 2275107 (code=exited, status=0\/SUCCESS)\n\n\u301c\u301c\u301c\n11\u6708 17 23:34:13 118-27-106-164 systemd&#91;1]: nginx.service: Failed with result 'exit-code'.\n11\u6708 17 23:34:13 118-27-106-164 systemd&#91;1]: Failed to start The nginx HTTP and reverse proxy server.\n\n\u3060\u3051\u3069\u306a\u305c\u304b\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089web\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3089\u554f\u984c\u306a\u304f\u52d5\u3044\u3066\u3044\u308b\u3002\nphp\u3082\u554f\u984c\u306a\u3044\u3002\n\n\u306a\u3093\u304b\u5909\u3060\u306a\u3068\u601d\u3044\u6700\u7d42\u624b\u6bb5\u3067reboot\u3057\u305f\u3089\u3001\u3001\u3001\u3001\u6539\u5584\u3057\u307e\u3057\u305f\u3002\ud83d\udca6\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[436,222,33,239],"class_list":["post-2412","post","type-post","status-publish","format-standard","hentry","category-1","tag-centos8","tag-nginx","tag-php-2","tag-php-fpm"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/2412"}],"collection":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2412"}],"version-history":[{"count":1,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/2412\/revisions"}],"predecessor-version":[{"id":2413,"href":"https:\/\/blog.4star.link\/index.php?rest_route=\/wp\/v2\/posts\/2412\/revisions\/2413"}],"wp:attachment":[{"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.4star.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}