{"id":571,"date":"2023-06-22T11:24:03","date_gmt":"2023-06-22T03:24:03","guid":{"rendered":"http:\/\/homework.diary.bid\/?p=571"},"modified":"2024-08-18T11:11:05","modified_gmt":"2024-08-18T03:11:05","slug":"%e6%8e%a2%e9%92%88%e6%90%ad%e5%bb%ba-%e5%ae%89%e8%a3%85%e5%93%aa%e5%90%92%e7%9b%91%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/diary.bid\/?p=571","title":{"rendered":"\u63a2\u9488\u642d\u5efa\u2014\u2014\u5b89\u88c5\u54ea\u5412\u76d1\u63a7"},"content":{"rendered":"\n<p>\u6700\u8fd1\u64b8\u4e86\u5f88\u591aAzure100\uff0c\u670d\u52a1\u5668\u592a\u591a\u6211\u4e5f\u4e0d\u786e\u5b9a\u54ea\u53f0\u4f1a\u6302\uff0c\u6240\u4ee5\u642d\u4e86\u4e2a\u54ea\u5412\u63a2\u9488\u3002<\/p>\n\n\n\n<p>1.\u89e3\u6790\u57df\u540d\u5230\u670d\u52a1\u5668ip<\/p>\n\n\n\n<p>2.\u8bbf\u95eeGithub\uff0c\u6253\u5f00\u94fe\u63a5<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/settings\/developers\" target=\"_blank\">https:\/\/github.com\/settings\/developers<\/a>\uff0c\u521b\u5efa\u5e94\u7528\uff0c\u56de\u8c03\u5730\u5740<a rel=\"noreferrer noopener\" href=\"http:\/\/cdn.example.com\/oauth2\/callback\" target=\"_blank\">http:\/\/<\/a><a rel=\"noreferrer noopener\" href=\"http:\/\/yourdomain\/oauth2\/callback\" target=\"_blank\">cdn.example.com<\/a><a rel=\"noreferrer noopener\" href=\"http:\/\/cdn.example.com\/oauth2\/callback\" target=\"_blank\">\/oauth2\/callback<\/a>\uff0c\u4e4b\u540e\u521b\u5efaClient Secret\u5e76\u4fdd\u5b58\u3002<\/p>\n\n\n\n<p>3.\u8fde\u63a5SSH\uff0c\u8f93\u5165\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint linenums\" >curl -L https:\/\/raw.githubusercontent.com\/naiba\/nezha\/master\/script\/install.sh -o nezha.sh &amp;&amp; chmod +x nezha.sh &amp;&amp; sudo .\/nezha.sh<\/code><\/pre>\n\n\n\n<p>\u6309\u7167\u63d0\u793a\u8f93\u5165\u5373\u53ef<\/p>\n\n\n\n<p>4.\u914d\u7f6e\u53cd\u5411\u4ee3\u7406\uff0c\u76ee\u6807URL\uff1ahttp:\/\/127.0.0.1\u3002\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint linenums\" >#PROXY-START\/\nlocation \/ {\n    proxy_pass http:\/\/127.0.0.1:8008;\n    proxy_set_header Host $http_host;\n    proxy_set_header      Upgrade $http_upgrade;\n}\nlocation ~ ^\/(ws|terminal\/.+)$  {\n    proxy_pass http:\/\/127.0.0.1:8008;\n    proxy_http_version 1.1;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection &quot;Upgrade&quot;;\n    proxy_set_header Host $http_host;\n}\n#PROXY-END\/<\/code><\/pre>\n\n\n\n<p>\u8bbf\u95ee\u5373\u53ef<\/p>\n\n\n\n<p>\u540e\u7eed\u7ba1\u7406\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint linenums\" >.\/nezha.sh<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u64b8\u4e86\u5f88\u591aAzure100\uff0c\u670d\u52a1\u5668\u592a\u591a\u6211\u4e5f\u4e0d\u786e\u5b9a\u54ea\u53f0\u4f1a\u6302\uff0c\u6240\u4ee5\u642d\u4e86\u4e2a\u54ea\u5412\u63a2\u9488\u3002 1.\u89e3\u6790\u57df\u540d\u5230\u670d\u52a1\u5668ip 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-571","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/posts\/571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diary.bid\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=571"}],"version-history":[{"count":1,"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/posts\/571\/revisions"}],"predecessor-version":[{"id":993,"href":"https:\/\/diary.bid\/index.php?rest_route=\/wp\/v2\/posts\/571\/revisions\/993"}],"wp:attachment":[{"href":"https:\/\/diary.bid\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diary.bid\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diary.bid\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}