{"id":528272,"date":"2021-08-23T04:50:02","date_gmt":"2021-08-22T20:50:02","guid":{"rendered":"http:\/\/4563.org\/?p=528272"},"modified":"2021-08-23T04:50:02","modified_gmt":"2021-08-22T20:50:02","slug":"mjj%e4%bb%ac%e7%9a%84%e5%b0%8f%e9%b8%a1%e7%a6%8f%e9%9f%b3-%e4%b8%80%e6%ac%be%e5%a4%9a%e9%b8%a1%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f-uptimekuma","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=528272","title":{"rendered":"mjj\u4eec\u7684\u5c0f\u9e21\u798f\u97f3&#8211;\u4e00\u6b3e\u591a\u9e21\u76d1\u63a7\u7cfb\u7edf&#8211;uptimekuma"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u7eaf\u4e4b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>mjj\u4eec\u7684\u5c0f\u9e21\u798f\u97f3&#8211;\u4e00\u6b3e\u591a\u9e21\u76d1\u63a7\u7cfb\u7edf&#8211;uptimekuma<\/h3>\n<p>  \t\t\u4f5c\u8005github https:\/\/github.com\/oldj\/SwitchHosts<br \/>  \u4e00\u6b3e\u81ea\u6258\u7ba1\u7684\u7f51\u9875\u76d1\u63a7\u7a0b\u5e8f&#8212;Uptime Kuma<br \/>  \u6700\u8fd1\u4e00\u76f4\u5728\u5bfb\u627e\u4e00\u6b3e\u548cuptimerobot\u76f8\u4f3c\u7684\u591a\u670d\u52a1\u5668\u76d1\u63a7\u7a0b\u5e8f\uff0c\u5fc5\u987b\u53ef\u4ee5\u540c\u65f6\u76d1\u63a7\u591a\u4e2a\u7f51\u7ad9\uff0c\u76d1\u542c\u7aef\u53e3\uff0c\u81ea\u5b9a\u4e49\u7684\u65b9\u5f0f\u63d0\u9192\u6211\u7ad9\u70b9\u72b6\u6001\u3002Uptime kuma\u5c31\u5f88\u597d\uff0c\u5b83\u548cuptimerobot\u4e00\u81f4\u7684\u754c\u9762\uff0c\u6700\u591a\u652f\u630160\u591a\u79cd\u7684\u63d0\u9192\u65b9\u5f0f\u60ca\u8273\u5230\u6211\u4e86\u3002\u4e0b\u9762\u6211\u4eec\u6765\u8bf4\u8bf4\u5982\u4f55\u5b89\u88c5\u5b83\u5427\uff01<br \/>  \u9996\u5148\u653e\u4e00\u5f20\u56fe<\/p>\n<p>   https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/d2334edf8e9a4.png<\/p>\n<p>  \u754c\u9762\u548cuptimerobot\u5f88\u76f8\u4f3c\u5427\uff01<br \/>  \u8fd9\u91cc\u6211\u4f7f\u7528\u4e86\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u6765\u90e8\u7f72\u5b83<br \/>  1.\u9996\u5148\u6211\u4eec\u521b\u5efa\u955c\u50cf<br \/>   https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/3ec22c2a31827.png<br \/>  \u6211\u5efa\u8bae\u76f4\u63a5\u9009\u817e\u8baf\u4e91\u7684docker\u955c\u50cf\uff0c\u5b83\u9ed8\u8ba4\u6362\u4e86\u817e\u8baf\u4e91\u7684\u6e90\u975e\u5e38\u5feb\uff01<br \/>  2.\u5982\u679c\u4f60\u60f3\u81ea\u5df1\u5b89\u88c5docekr\u7684\u8bdd<br \/>  curl -fsSL https:\/\/get.docker.com | bash -s docker <br \/>  \u8f93\u5165\u6b64\u6761\u547d\u4ee4\u5b89\u88c5docker<br \/>  \u6700\u540eshell\u8f93\u5165docker \u67e5\u770b\u5b89\u88c5\u60c5\u51b5<\/p>\n<p>  \u82e5\u662f\u62a5\u9519\u5c31\u662f\u6ca1\u5b89\u88c5\u597d<br \/>  \u63a5\u4e0b\u6765\u6211\u4eec\u76f4\u63a5\u7528docker\u5b89\u88c5uptime kuma<br \/>  docker volume create uptime-kuma#pull \u955c\u50cf<br \/>  docker run -d &#8211;restart=always -p 3001:3001 -v uptime-kuma:\/app\/data &#8211;name uptime-kuma louislam\/uptime-kuma:1<br \/>  #\u6570\u636e\u6c38\u4e45\u5316\u50a8\u5b583001\u7aef\u53e3\u53ef\u4ee5\u6309\u5b9e\u9645\u9700\u8981\u81ea\u884c\u66f4\u6539<br \/>  \u5b89\u88c5\u597d\u540e\u8bb0\u5f97\u653e\u5f00\u5b89\u5168\u7ec4\u76843001\u7aef\u53e3\u54e6\uff01<br \/>  \u63a5\u4e0b\u6765\u6839\u636e\u4f60\u7684\u9700\u8981\u8fdb\u884c\u53cd\u4ee3<br \/>  \u8bb0\u5f97\u53cd\u4ee3\u7684\u65f6\u5019\u4e00\u5b9a\u8981\u53cd\u4ee3ws\uff0c\u4e0d\u7136\u4f1a\u770b\u4e0d\u5230\u754c\u9762<br \/>  \u4e0b\u9762\u8d34\u4e00\u4e2anginx\u914d\u7f6e\u4f9b\u5927\u5bb6\u53c2\u8003<br \/>  1.&nbsp; &nbsp; &nbsp; &nbsp; location \/<br \/>  2.&nbsp; &nbsp; &nbsp; &nbsp; {<br \/>  3.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:3001;<br \/>  4.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<br \/>  5.&nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  6.&nbsp; &nbsp; &nbsp; &nbsp; location \/ws<br \/>  7.&nbsp; &nbsp; &nbsp; &nbsp; {<br \/>  8.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:3001;<br \/>  9.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_http_version 1.1;<br \/>  10.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Upgrade $http_upgrade;<br \/>  11.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Connection &quot;Upgrade&quot;;<br \/>  12.&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $host;<br \/>  13.&nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  \u8bb0\u5f973001\u6539\u4e3a\u4f60docekr\u5b9e\u9645\u8fd0\u884c\u7684\u7aef\u53e3<br \/>  \u7136\u540e\u6d4f\u89c8\u5668\u8bbf\u95ee\u4f60\u7684\u53cd\u4ee3\u7f51\u5740<br \/>  \u8bbe\u7f6e\u5bc6\u7801&#8212;&#8211;\u6dfb\u52a0\u7f51\u7ad9<\/p>\n<p>   https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/f81ba5209be91.png<\/p>\n<p>  \u70b9\u51fb\u5de6\u4e0a\u89d2\u7684add new monitor\u5373\u53ef<\/p>\n<p>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/dd79e1e4045e4.png<br \/>  \u63a5\u4e0b\u6765\u662f\u6211\u6700\u60f3\u4ecb\u7ecd\u7684\u4e00\u4e2a\u90e8\u5206&#8212;&#8212;&#8212;-\u8fd9\u73a9\u610f\u7684\u76d1\u63a7\u63d0\u9192\u529f\u80fd\u662f\u771f\u7684\u5168\u554a\uff01<\/p>\n<p>  \u6211\u5c31\u62ff\u73b0\u5728\u5927\u5bb6\u4f7f\u7528\u6700\u591a\u7684tg\u4e3e\u4f8b<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/1060cca71f527.png<br \/>  \u9996\u5148\u79c1\u804abotfather-\u8f93\u5165\/newbot&#8212;-\u6839\u636e\u63d0\u793a\u64cd\u4f5c\u6700\u540e\u4f1a\u83b7\u53d6\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u4e00\u4e32\u6587\u5b57<\/p>\n<p>  \u4fdd\u5b58\u597d\u4f60\u7684api key\uff0c\u56de\u5230\u521a\u624d\u642d\u597d\u7684\u76d1\u63a7<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/5d0bee5c31ce0.jpg<\/p>\n<p>  \u5c06\u4f60\u7684api token\u586b\u5230\u7b2c\u4e8c\u4e2a\u683c\u5b50\u91cc<br \/>  \u7136\u540e\u5c06tg\u5efa\u4e00\u4e2a\u9891\u9053&#8212;\u5c06\u673a\u5668\u4eba\u62c9\u8fdb\u9891\u9053\u91cc<br \/>  \u5728\u9891\u9053\u91cc\u968f\u4fbf\u8bf4\u4e00\u53e5\u8bdd<br \/>  https:\/\/api.telegram.org\/bot&lt;YOUR BOT TOKEN HERE&gt;\/getUpdates<br \/>  \u8bbf\u95ee\u8fd9\u4e2a\u7f51\u5740\u5f97\u5230chatID<br \/>  \u586b\u5165chatID<br \/>  \u63a5\u4e0b\u6765\u6d4b\u8bd5\u4e00\u4e0btesting<br \/>  https:\/\/imgoss.cherrymoe.com\/2021\/08\/22\/28a03d63e1e05.jpg<\/p>\n<p>  \u50cf\u8fd9\u6837\uff0c\u5c31\u6210\u529f\u4e86\uff01<\/p>\n<p>  \u597d\u597d\u4eab\u53d7\u4fbf\u6377\u7684\u76d1\u63a7\u5427\uff01  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>river<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 river \u4e8e 2021-8-22 23:02 \u7f16\u8f91 <\/p>\n<p> \u4e8c\u523a\u8788\u641e\u7684\u4e1c\u897f\uff0c\u4e00\u5f8b\u4e0d\u7528\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>reizhi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:lol \u597d\uff0c\u884c\uff0c\u53ef\u4ee5<br \/>  \u6211\u9009\u62e9 zabbix\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u51b2\u6d6a\u9ea6\u6d6a\u82b1\u90ce<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u51b2\u6d6a\u9ea6\u6d6a\u82b1\u90ce \u4e8e 2021-8-22 22:40 \u7f16\u8f91 <\/p>\n<p> zabbix yyds\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>weiguoxiu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u706b\u94b3\u5218\u660e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u5fc5\u9876\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>6fyC8r<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5927\u4f6c\u5206\u4eab\uff0c<\/p>\n<p>  \u524d\u6392\u5360\u5ea7<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>senoc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tMake\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u773c\u513f\u5a9a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u53d1\u9519\u94fe\u63a5\u4e86\u5427\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u53eb\u6211ams\u5c31\u597d\u4e86<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u4e00\u4e0bhttps:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7eaf\u4e4b \u5927\u4f6c\u6709\u8bdd\u8bf4 : mjj\u4eec\u7684\u5c0f&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\/528272"}],"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=528272"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/528272\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=528272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=528272"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=528272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}