{"id":3308,"date":"2018-11-03T12:57:21","date_gmt":"2018-11-03T04:57:21","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3308"},"modified":"2018-11-03T12:57:21","modified_gmt":"2018-11-03T04:57:21","slug":"script-already-launched-add-f-option-to-force-re-execution","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3308","title":{"rendered":"Script already launched, add -f option to force re-execution"},"content":{"rendered":"<p>\n\t\u89e3\u51b3 pm2 \u62a5&nbsp;Script already launched, add -f option to force re-execution \u95ee\u9898\u7684\u65b9\u6cd5\u6211\u4eca\u5929\u603b\u7ed3\u4e00\u4e0b\u3002\n<\/p>\n<p>\n\t\u5176\u5b9e\u4e5f\u7b97\u4e0d\u4e0a\u603b\u7ed3\uff0c\u56e0\u4e3a\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u8fd9\u4e2a\u63d0\u5347\u5c31\u77e5\u9053\u662f\u4ec0\u4e48\u95ee\u9898\u4e86\uff0c\u8fd9\u4e2a\u95ee\u9898\u5176\u5b9e\u4e5f\u6ca1\u4ec0\u4e48\u597d\u4e9b\u7684\u3002\n<\/p>\n<p>\n\t\u4e3b\u8981\u662f\u56e0\u4e3a\u7f51\u4e0a\u5173\u4e8e pm2 \u7684\u6587\u7ae0\u662f\u5728\u592a\u5c11\uff0c\u53ef\u80fd\u90fd\u662f\u5927\u725b\u5728\u7528 pm2\uff0c\u6240\u4ee5\u6491\u7740\u5b83\u5728\u7206\u53d1\u4e4b\u524d\uff0c\u5148\u7ed9\u5927\u5bb6\u6765\u70b9\u7b80\u5355\u7684\uff01\n<\/p>\n<p>\n\t\u6839\u636e&ldquo;Script already launched, add -f option to force re-execution&rdquo;\u8fd9\u53e5\u63d0\u793a\uff0c\u5b83\u7684\u610f\u601d\u662f\u8bf4\u3002\u811a\u672c\u5df2\u7ecf\u542f\u52a8\u4e86\uff0c\u4f60\u53ef\u4ee5\u5728\u542f\u52a8\u811a\u672c\u547d\u4ee4\u540e\u9762\u52a0 -f \u53c2\u6570\uff0c\u5f3a\u5236\u811a\u672c\u91cd\u65b0\u542f\u52a8\uff01\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Script already launched, add -f option to force re-execution\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/pm2-error-f.png\" style=\"width: 993px;height: 519px\" \/>\n<\/p>\n<p>\n\t\u6bcf\u4e2a\u95ee\u9898\u5176\u5b9e\u90fd\u5f88\u7b80\u5355\uff0c\u627e\u5230\u89c4\u5f8b\u5373\u53ef\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=3308\">Script already launched, add -f option to force re-execution<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3 pm2 \u62a5&nbsp;Script already launched, add -f option to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[1415,1555,1737,396,648],"class_list":["post-3308","post","type-post","status-publish","format-standard","hentry","category-html5","category-yyzt","tag-node-js","tag-nodejs","tag-pm2","tag-react","tag-vue"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3308"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3308\/revisions"}],"predecessor-version":[{"id":3309,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3308\/revisions\/3309"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}