{"id":55995,"date":"2020-04-04T21:51:19","date_gmt":"2020-04-04T13:51:19","guid":{"rendered":"http:\/\/4563.org\/?p=55995"},"modified":"2020-04-04T21:51:19","modified_gmt":"2020-04-04T13:51:19","slug":"%e7%bb%88%e4%ba%8e%ef%bc%81%e5%88%b7%e5%88%b0%e4%b8%a4%e5%8f%b0%e9%9f%a9%e5%9b%bd%ef%bc%8c%e5%85%ac%e5%b8%83%e6%94%b9%e8%bf%9b%e8%bf%87%e5%90%8e%e7%9a%84%e8%84%9a%e6%9c%ac%ef%bc%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=55995","title":{"rendered":"\u7ec8\u4e8e\uff01\u5237\u5230\u4e24\u53f0\u97e9\u56fd\uff0c\u516c\u5e03\u6539\u8fdb\u8fc7\u540e\u7684\u811a\u672c\uff08"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Reynard<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u7ec8\u4e8e\uff01\u5237\u5230\u4e24\u53f0\u97e9\u56fd\uff0c\u516c\u5e03\u6539\u8fdb\u8fc7\u540e\u7684\u811a\u672c\uff08<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Reynard \u4e8e 2020-4-2 14:35 \u7f16\u8f91 <\/p>\n<p> \u4e3b\u8981\u662f\u589e\u52a0\u4e86\u63a8\u9001\uff0c\u4e0d\u591a\u8bf4\uff0c\u9700\u8981\u5b89\u88c5 oci\u3002<br \/>  \u652f\u6301\u8bf7\u6c42\u7edf\u8ba1\uff0c\u9700\u8981\u81ea\u884c\u6ce8\u518c\u4f7f\u7528 https:\/\/www.stathat.com\/<br \/>  \u6ca1\u6709\u628a\u5168\u90e8\u53c2\u6570\u53d8\u91cf\u5316\uff0c\u56fe\u4e2a\u65b9\u4fbf\u52ff\u55b7 :lol <\/p>\n<p>  export PATH=\/home\/name\/bin:$PATH<\/p>\n<p>  [[ -e &quot;\/home\/name\/lib\/oracle-cli\/lib\/python2.7\/site-packages\/oci_cli\/bin\/oci_autocomplete.sh&quot; ]] &amp;&amp; source &quot;\/home\/name\/lib\/oracle-cli\/lib\/python2.7\/site-packages\/oci_cli\/bin\/oci_autocomplete.sh&quot;<\/p>\n<p>  log_path=&#8217;\/root\/oracle.log&#8217; # log dir<br \/>  python_version=&#8217;3&#8242; #Python by default<br \/>  # stat_user=&#8217;mail@mail.com&#8217;<br \/>  # stat_project=&#8217;Oracle KR&#8217;<\/p>\n<p>  response=$(\/root\/bin\/oci compute instance launch<br \/>  &nbsp; &nbsp; &#8211;availability-domain kWIa:AP-SEOUL-1-AD-1<br \/>  &nbsp; &nbsp; &#8211;image-id ocid1.image.oc1.ap-seoul-1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<br \/>  &nbsp; &nbsp; &#8211;subnet-id ocid1.subnet.oc1.ap-seoul-1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&nbsp; &nbsp;<br \/>  &nbsp; &nbsp; &#8211;shape VM.Standard.E2.1.Micro <br \/>  &nbsp; &nbsp; &#8211;assign-public-ip true<br \/>  &nbsp; &nbsp; &#8211;metadata &#8216;{&quot;ssh_authorized_keys&quot;: &quot;ssh-rsa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\/kDme8T+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa+Y\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa== rsa 2048-091719&quot;}&#8217;<br \/>  &#8211;compartment-id ocid1.tenancy.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 2&gt;&amp;1)<\/p>\n<p>  # echo &#8216;Variable&#8217;<br \/>  # echo ${response}<\/p>\n<p>  status=$(python${python_version} -c &quot;import sys, json; print(json.loads(&#8216; &#8216;.join(sys.argv))[&#8216;status&#8217;])&quot; ${response})<br \/>  message=$(python${python_version} -c &quot;import sys, json; print(json.loads(&#8216; &#8216;.join(sys.argv))[&#8216;message&#8217;])&quot; ${response})<br \/>  request_id=$(python${python_version} -c &quot;import sys, json; print(json.loads(&#8216; &#8216;.join(sys.argv))[&#8216;opc-request-id&#8217;])&quot; ${response})<br \/>  # curl -d &quot;stat=${stat_project}&amp;ezkey=${stat_user}&amp;count=1&quot; http:\/\/api.stathat.com\/ez<\/p>\n<p>  if [ $status != 500 ]<br \/>  then<br \/>  &nbsp; &nbsp; curl -G &#8216;https:\/\/tgbot.lbyczf.com\/sendMessage\/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8217; &#8211;data-urlencode &quot;text=${message}&quot; # push to tg<br \/>  fi<br \/>  echo ${status} ${message}  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>skyland<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6ca1\u8d26\u53f7\u554a\u6ca1\u8d26\u53f7\uff0c\u53ea\u6709\u4e00\u4e2a\u65e5\u672c\u4e1c\u4eac\u7684\u8d26\u53f7\uff0c\u7528\u6765DNS\u89e3\u9501NF\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yueyyy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\uff0c\u6536\u85cf\u4e0b\u5148\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>iyzx<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8001\u54e5\u5389\u5bb3\u4e86:lol:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>uni2046<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6536\u85cf\u4e0b\u5148\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>carsonhui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u4e86\u4e4b\u524d\u8bbe\u597d\u7684API\uff0c\u4eca\u5929\u5237\u5230\u4e24\u53f0\u3002\u3002\u5237\u4e86\u4e24\u4e2a\u661f\u671f\u3002:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7231\u56fd\u8005\u6363\u86cb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tnk\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>smithmuch<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u600e\u4e48\u7528\u5462\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u2026\u6ca7\u30cd\u6708\u30b6<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9a6c\u514b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>S\u0412<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\u3002\u4eba\u4eba\u4e3a\u6211\uff0c\u6211\u4e3a\u4eba\u4eba\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reynard \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u7ec8&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/55995"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55995"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/55995\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55995"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}