{"id":526,"date":"2020-06-12T20:49:39","date_gmt":"2020-06-12T12:49:39","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=526"},"modified":"2025-04-01T16:51:00","modified_gmt":"2025-04-01T07:51:00","slug":"szkrma7t6jgykfs","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2020\/06\/12\/szkrma7t6jgykfs\/","title":{"rendered":"nginx.service: Failed to parse PID from file \/var\/run\/nginx.pid: Invalid argument bugs"},"content":{"rendered":"<p>\u539f\u6587\uff1a<a href=\"https:\/\/medium.com\/@parsher\/nginx-service-failed-to-parse-pid-from-file-var-run-nginx-pid-invalid-argument-bugs-fda95eeeda73\">https:\/\/medium.com\/@parsher\/nginx-service-failed-to-parse-pid-from-file-var-run-nginx-pid-invalid-argument-bugs-fda95eeeda73<\/a><\/p>\n<p># Fix for Nginx PID problem in Ubuntu 16.04 in an EC2 instance<br \/>\nsudo systemctl stop nginx<br \/>\nsudo mkdir \/etc\/systemd\/system\/nginx.service.d<br \/>\n# build the file in root where no sudo is needed<br \/>\nprintf \u201c[Service]\\nExecStartPost=\/bin\/sleep 0.1\\n\u201d &gt; override.conf<br \/>\nsudo cp override.conf \/etc\/systemd\/system\/nginx.service.d\/override.conf<br \/>\nsudo systemctl daemon-reload<br \/>\nsudo systemctl start nginx<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\uff1ahttps:\/\/medium.com\/@parsher\/nginx-service-failed-to-parse-pid-from-file-var-run-nginx-pid-invalid-argument-bugs-fda95eeeda73 # Fix for Nginx PID problem in Ubuntu 16.04 in an EC2 instance sudo systemctl stop nginx sudo mkdir \/etc\/systemd\/system\/nginx.service.d # build the file in root where no sudo is needed printf \u201c[Service]\\nExecStartPost=\/bin\/sleep 0.1\\n\u201d &gt; override.conf sudo cp override.conf \/etc\/systemd\/system\/nginx.service.d\/override.conf sudo systemctl daemon-reload sudo systemctl start nginx<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-rghcu4xwtxm7gjr"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"predecessor-version":[{"id":2220,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/526\/revisions\/2220"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}