{"id":1614,"date":"2023-03-25T20:50:40","date_gmt":"2023-03-25T12:50:40","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1614"},"modified":"2023-04-27T21:19:16","modified_gmt":"2023-04-27T13:19:16","slug":"aws-ssm-send-command-execution-ineffective-solution","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/aws-ssm-send-command-execution-ineffective-solution\/","title":{"rendered":"aws ssm send-command \u6267\u884c\u65e0\u6548\u679c\u89e3\u51b3"},"content":{"rendered":"<h2>\u76ee\u5f55\u95ee\u9898<\/h2>\n<p>ssm\u4e0d\u4f1a\u81ea\u52a8\u521b\u5efa\u5b50\u76ee\u5f55\uff0c\u9700\u8981\u767b\u5f55\u670d\u52a1\u5668\u624b\u52a8\u521b\u5efa \u6216 \u5728<code>AWS-RunRemoteScript<\/code>\u811a\u672c\u4e2d\u624b\u52a8\u521b\u5efa<\/p>\n<h2>\u78c1\u76d8\u6743\u9650\u95ee\u9898<\/h2>\n<p><!-- more --><\/p>\n<ul>\n<li>\u90e8\u7f72\u76ee\u5f55<\/li>\n<li>\u65e5\u5fd7\u76ee\u5f55<\/li>\n<\/ul>\n<p>\u662f\u5426\u5177\u6709\u8bfb\u5199\u6743\u9650<\/p>\n<h2>\u8fdb\u7a0b\u6743\u9650\u95ee\u9898<\/h2>\n<p>\u67e5\u770b\u662f\u5426\u5df2\u5b58\u5728\u5176\u4ed6\u7528\u6237\u542f\u52a8\u7684\u8fdb\u7a0b<\/p>\n<h2>\u6267\u884c\u6307\u4ee4\u8def\u5f84\u95ee\u9898<\/h2>\n<p>\u5982Java\u547d\u4ee4\u662f\u5426\u914d\u7f6e\u6240\u6709\u7528\u6237\u53ef\u6267\u884c\uff0c\u5982\u4e0d\u662f\uff0c\u9700\u8981\u8bbe\u7f6e\u7edd\u5bf9\u8def\u5f84<\/p>\n<pre><code>nohup java -jar -Dspring.profiles.active=prod $PKG_PATH &gt; \/dev\/null 2&gt;&amp;1 &amp;<\/code><\/pre>\n<pre><code>nohup \/usr\/local\/java\/jdk1.8.0_212\/bin\/java -jar -Dspring.profiles.active=prod $PKG_PATH &gt; \/dev\/null 2&gt;&amp;1 &amp;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55\u95ee\u9898 ssm\u4e0d\u4f1a\u81ea\u52a8\u521b\u5efa\u5b50\u76ee\u5f55\uff0c\u9700\u8981\u767b\u5f55\u670d\u52a1\u5668\u624b\u52a8\u521b\u5efa \u6216 \u5728AWS-RunRemoteScript\u811a\u672c\u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[400,401],"class_list":["post-1614","post","type-post","status-publish","format-standard","hentry","category-cloud-devops","tag-aws","tag-ssm"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1614"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1614\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}