{"id":7728,"date":"2016-05-13T14:24:28","date_gmt":"2016-05-13T06:24:28","guid":{"rendered":"http:\/\/jpuyy.com\/?p=7728"},"modified":"2016-05-22T22:18:30","modified_gmt":"2016-05-22T14:18:30","slug":"nginx-upgrade-failed","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=7728","title":{"rendered":"nginx upgrade \u5931\u8d25"},"content":{"rendered":"<p>CentOS \u4e0b\u4f7f\u7528 yum \u5b89\u88c5\u3002\u4e3a\u4e86\u5e73\u6ed1\u5347\u7ea7<\/p>\n<pre>yum update nginx<\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e<\/p>\n<pre>\/etc\/init.d\/nginx upgrade<\/pre>\n<p>\u63d0\u793a\u5931\u8d25\uff0cnginx_error.log \u4e2d\u51fa\u73b0<\/p>\n<pre>[alert] 10690#0: execve() failed while executing new binary process \"nginx\" (2: No such file or directory)<\/pre>\n<p>\u539f\u56e0\u662f\u4e4b\u524d\u542f\u52a8\u6ca1\u6709\u4f7f\u7528 \/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf \u542f\u52a8\uff0c\u800c\u662f\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u91cc\u7684 nginx \u542f\u52a8\u7684\u3002\u8fd9\u6837\u7684\u8bdd\u53ea\u80fd\u60f3\u529e\u6cd5\u628a\u8fd9\u53f0\u8e22\u51fa\u96c6\u7fa4\uff0c\u7136\u540e<\/p>\n<pre>\/etc\/init.d\/nginx restart<\/pre>\n<p>\u53c2\u8003\uff1ahttps:\/\/groups.google.com\/forum\/#!topic\/openresty\/HiV3c-JwTZ4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS \u4e0b\u4f7f\u7528 yum \u5b89\u88c5\u3002\u4e3a\u4e86\u5e73\u6ed1\u5347\u7ea7 yum update nginx \u5b89\u88c5\u5b8c\u6210\u4e4b\u540e \/etc\/init.d\/nginx upgrade \u63d0\u793a\u5931\u8d25\uff0cnginx_error.log \u4e2d\u51fa\u73b0 [alert] 10690#0: execve() failed while executing new binary process &#8220;nginx&#8221; (2: No such file or directory) \u539f\u56e0\u662f\u4e4b\u524d\u542f\u52a8\u6ca1\u6709\u4f7f\u7528 \/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf \u542f\u52a8\uff0c\u800c\u662f\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u91cc\u7684 nginx \u542f\u52a8\u7684\u3002\u8fd9\u6837\u7684\u8bdd\u53ea\u80fd\u60f3\u529e\u6cd5\u628a\u8fd9\u53f0\u8e22\u51fa\u96c6\u7fa4\uff0c\u7136\u540e \/etc\/init.d\/nginx restart \u53c2\u8003\uff1ahttps:\/\/groups.google.com\/forum\/#!topic\/openresty\/HiV3c-JwTZ4<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176],"tags":[],"class_list":["post-7728","post","type-post","status-publish","format-standard","hentry","category-nginx"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7728"}],"version-history":[{"count":1,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7728\/revisions"}],"predecessor-version":[{"id":7729,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7728\/revisions\/7729"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}