{"id":223145,"date":"2020-12-12T23:33:53","date_gmt":"2020-12-12T15:33:53","guid":{"rendered":"http:\/\/4563.org\/?p=223145"},"modified":"2020-12-12T23:33:53","modified_gmt":"2020-12-12T15:33:53","slug":"%e6%8e%a2%e9%92%88serverstatus%e7%9b%91%e6%8e%a7windows%e6%95%99%e7%a8%8b%e8%bd%ac%e8%bd%bd","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=223145","title":{"rendered":"\u63a2\u9488ServerStatus\u76d1\u63a7windows\u6559\u7a0b(\u8f6c\u8f7d)"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u83ca\u82b1\u4fe1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u63a2\u9488ServerStatus\u76d1\u63a7windows\u6559\u7a0b(\u8f6c\u8f7d)<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u83ca\u82b1\u4fe1 \u4e8e 2020-12-12 19:32 \u7f16\u8f91 <\/p>\n<p> \u7ecf\u5e38\u6709\u4eba\u95ee\u6211\u7684\u63a2\u9488\u600e\u4e48\u76d1\u63a7windows<\/p>\n<p>  \u8f6c\u8f7dmoerats.com\u548clexsion.com\u7684\u6559\u7a0b<\/p>\n<p>  \u4ee5\u4e0b\u51fa\u81eahttps:\/\/www.moerats.com\/archives\/266\/<br \/>  \u5b89\u88c5<br \/>  \u7cfb\u7edf\u8981\u6c42\uff1aCentOS 7\u3001Debian 7+\u3001Ubuntu 14.04 +<\/p>\n<p>  \u4f7f\u7528\u547d\u4ee4\u4e0b\u8f7d\u811a\u672c\uff1a<\/p>\n<p>  wget https:\/\/raw.githubusercontent.com\/CokeMine\/ServerStatus-Hotaru\/master\/status.sh &amp;&amp; chmod +x status.sh<br \/>  \u4e0b\u8f7d\u811a\u672c\u540e\uff0c\u6839\u636e\u9700\u8981\u5b89\u88c5\u5ba2\u6237\u7aef\u6216\u8005\u670d\u52a1\u7aef\uff1a<\/p>\n<p>  # \u5ba2\u6237\u7aef\u7ba1\u7406\u83dc\u5355<br \/>  bash status.sh c<\/p>\n<p>  # \u670d\u52a1\u7aef\u7ba1\u7406\u83dc\u5355<br \/>  bash status.sh s<\/p>\n<p>  \u6839\u636e\u547d\u4ee4\u5373\u53ef\u5b89\u88c5\uff0c\u4e0d\u8be6\u5199<\/p>\n<p>  \u4ee5\u4e0b\u51fa\u81eahttps:\/\/lexsion.com\/index.php\/archives\/124\/<\/p>\n<p>  \u4f7f\u7528psutil\u8de8\u5e73\u53f0\u7248\u672c\uff08For Windows\uff09<br \/>  \u6b64\u5904\u4ee5 Windows 7 \u4e3a\u4f8b\u8bb2\u8ff0\u5982\u4f55\u5728 Windows \u4e0b\u914d\u7f6eServerStatus\u7684psutil\u8de8\u5e73\u53f0\u7248\u672c\u5ba2\u6237\u7aef\u3002<\/p>\n<p>  \u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u70b9\u51fbDownloads-&gt;Windows\u4ece\u51fa\u73b0\u7684\u4e0b\u8f7d\u9875\u83b7\u53d6Python2.7.X\u3002\u8bf7\u81ea\u884c\u9009\u62e9\u4e0b\u8f7d32\u4f4d\u621664\u4f4d\u7248\u672c\u3002\u6709\u7f51\u5e16\u8868\u793aPython3\u53ef\u80fd\u4e0d\u884c\uff0c\u672c\u4eba\u672a\u4f5c\u6d4b\u8bd5\u3002<br \/>  \u53cc\u51fb\u4e0b\u8f7d\u7684.msi\u6587\u4ef6\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5b89\u7167\u63d0\u793a\u5b89\u88c5\uff0c\u5728\u529f\u80fd\u81ea\u5b9a\u4e49\u9875\u9762\u7684 Add pytnon.exe to Path \u5904\u9009\u62e9 Will installed on local hard drive \uff0c\u70b9\u51fbNext\u5b89\u88c5\uff0c\u82e5\u51fa\u73b0UAC\u63d0\u9192\u8bf7\u5141\u8bb8\u3002\u5b89\u88c5\u5b8c\u6210\u540e\u70b9\u51fbFinish\u9000\u51fa\u5b89\u88c5\u7a0b\u5e8f\u3002<br \/>  \u6309 Windows\u5fbd\u6807\u952e+R\u952e \u6253\u5f00 \u201c\u8fd0\u884c\u201d \u5bf9\u8bdd\u6846\uff0c\u8f93\u5165 cmd \u6309 Enter\u952e \u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5psutil\u8de8\u5e73\u53f0\u8f6f\u4ef6\u5305\uff1a<\/p>\n<p>  pip install psutil<br \/>  \u8bbf\u95eeServerStatus\u4e2d\u6587\u7248GitHub\u9879\u76ee\u9875\uff0c<br \/>  https:\/\/github.com\/ToyoDAdoubi\/ServerStatus-Toyo<br \/>  https:\/\/github.com\/CokeMine\/ServerStatus-Hotaru<br \/>  \u4ececlients\u76ee\u5f55\u4e0b\u627e\u5230client-psutil.py\u6587\u4ef6\u9875\uff0c\u70b9\u51fbRaw\u6309\u94ae\u76f4\u63a5\u4e0b\u8f7d\u6587\u4ef6\u3002\u5c06\u4e0b\u8f7d\u7684client-psutil.py\u6587\u4ef6\u653e\u5230\u4e00\u4e2a\u5408\u9002\u7684\u76ee\u5f55\u3002\u6bd4\u5982\u6211\u5728C\u76d8\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\u5939\u3000ServerStatus\u3000\uff0c\u5c06\u5176\u5b58\u5728\u6b64\u3002\u5728\u6b64\u6587\u4ef6\u4e0a\u53f3\u51fb\uff0c\u70b9\u51fbEdit with IDLE\uff08\u4ea6\u53ef\u4f7f\u7528\u5176\u4ed6\u7f16\u8f91\u5668\u6253\u5f00\uff09\u3002\u53c2\u8003Linux\u7248\u672c\u914d\u7f6e\u5c0f\u8282\u4e2d\u7684\u8bf4\u660e\u586b\u5199\u914d\u7f6e\u4fe1\u606f\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u3002<br \/>  \u4e0elinux\u8bbe\u7f6e\u7684\u4e00\u6837<br \/>  SERVER = &quot;127.0.0.1&quot;\u670d\u52a1\u5668\u7aefIP<br \/>  USER = &quot;s01&quot;\u7528\u6237\u540d<br \/>  PORT = 35601\u7aef\u53e3<br \/>  PASSWORD = &quot;USER_DEFAULT_PASSWORD&quot;\u5bc6\u7801<br \/>  INTERVAL = 1\u4e0d\u7528\u6539<br \/>  PORBEPORT = 80\u4e0d\u7528\u6539<br \/>  CU = &quot;cu.tz.cloudcpp.com&quot;\u4e0d\u7528\u6539<br \/>  CT = &quot;ct.tz.cloudcpp.com&quot;\u4e0d\u7528\u6539<br \/>  CM = &quot;cm.tz.cloudcpp.com&quot;\u4e0d\u7528\u6539<\/p>\n<p>  \u53cc\u51fbclient-psutil.py\u6587\u4ef6\u8fd0\u884c\uff0c\u68c0\u67e5\u76d1\u63a7\u9875\u662f\u5426\u6b63\u5e38\u663e\u793a\uff0c\u7136\u540e\u5173\u95ed\u7a97\u53e3\u505c\u6b62\u3002<br \/>  \u70b9\u51fb\u5f00\u59cb-&gt;\u6240\u6709\u7a0b\u5e8f-&gt;\u542f\u52a8-&gt;\u53f3\u51fb-&gt;\u6253\u5f00\uff0c\u521b\u5efa\u4e00\u4e2aServerStatusClient.bat\u6587\u4ef6\uff0c\u586b\u5199\u8fd0\u884cclient-psutil.py\u7684\u4ee3\u7801\uff0c\u6211\u7684\u6587\u4ef6\u5728C:ServerStatus\u4e0b\uff0c\u53c2\u8003\u5982\u4e0b\uff1a<\/p>\n<p>  python C:ServerStatusclient-psutil.py<\/p>\n<p>  \u6ce8\u610f\u8be5\u64cd\u4f5c\u53ef\u80fd\u88ab\u5b89\u5168\u8f6f\u4ef6\u62e6\u622a\uff0c\u8bf7\u5728\u5b89\u5168\u8f6f\u4ef6\u4e2d\u8bbe\u7f6e\u4f8b\u5916\u3002<br \/>  \u6b64\u65b9\u6cd5\u914d\u7f6e\u7684\u5ba2\u6237\u7aef\u5728\u542f\u52a8\u65f6\u4f1a\u4e00\u76f4\u663e\u793a\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\uff0c\u5173\u95ed\u7a97\u53e3\u540e\u5ba2\u6237\u7aef\u5373\u505c\u6b62\u5de5\u4f5c\u3002\u5f3a\u8feb\u75c7\u60a3\u8005\u614e\u7528\uff01\u5982\u679c\u5e0c\u671b\u6ca1\u6709\u7a97\u53e3\u663e\u793a\uff0c\u8bf7\u81ea\u884c\u7814\u7a76\u89e3\u51b3\u3002<\/p>\n<p>  \t\t\t\t\t<strong>\u83ca\u82b1\u4fe1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u63a2\u9488\u9884\u89c8http:\/\/afff.fun\/\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wifitry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83ca\u82b1\u4fe1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twifitry \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-12-12 23:23<br \/>  mark\u4e00\u4e0b<\/p>\n<p> 666\u5927\u4f6c\u5feb\u795e\u4ed9\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u83ca\u82b1\u4fe1 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u63a2\u9488Ser&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\/223145"}],"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=223145"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/223145\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223145"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}