{"id":29646,"date":"2025-04-20T11:31:05","date_gmt":"2025-04-20T03:31:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/29646.html"},"modified":"2025-04-20T11:31:05","modified_gmt":"2025-04-20T03:31:05","slug":"horain%e4%ba%91-%e5%a4%9a%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a3%81%e7%9b%98%e7%9b%91%e6%8e%a7shell%e8%84%9a%e6%9c%ac%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/29646.html","title":{"rendered":"HoRain\u4e91--\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b"},"content":{"rendered":"<p style=\"text-align:center\">\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420033103-68046a772d5a7.jpg\" width=\"70\" \/><\/p>\n<p style=\"text-align:center\">&#x1f3ac; HoRain \u4e91\u5c0f\u52a9\u624b&#xff1a;<span>\u4e2a\u4eba\u4e3b\u9875<\/span><\/p>\n<p style=\"text-align:center\">\u26fa\ufe0f\u751f\u6d3b\u7684\u7406\u60f3&#xff0c;\u5c31\u662f\u4e3a\u4e86\u7406\u60f3\u7684\u751f\u6d3b!<\/p>\n<hr \/>\n<h4 id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90\">\u26f3\ufe0f \u63a8\u8350<\/h4>\n<p>\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9&#xff0c;\u6027\u4ef7\u6bd4\u8d85\u9ad8&#xff0c;\u5927\u5185\u5b58\u8d85\u5212\u7b97&#xff01;\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002<span>\u70b9\u51fb\u8df3\u8f6c\u5230\u7f51\u7ad9\u3002<\/span><\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E2%9B%B3%EF%B8%8F%20%E6%8E%A8%E8%8D%90-toc\" style=\"margin-left:80px\">\u26f3\ufe0f \u63a8\u8350<\/p>\n<p id=\"1.%20%E5%AE%9E%E7%8E%B0%E6%80%9D%E8%B7%AF-toc\" style=\"margin-left:40px\">1. \u5b9e\u73b0\u601d\u8def<\/p>\n<p id=\"2.%20%E5%89%8D%E7%BD%AE%E5%87%86%E5%A4%87-toc\" style=\"margin-left:40px\">2. \u524d\u7f6e\u51c6\u5907<\/p>\n<p id=\"3.%20%E5%AE%8C%E6%95%B4%E8%84%9A%E6%9C%AC-toc\" style=\"margin-left:40px\">3. \u5b8c\u6574\u811a\u672c<\/p>\n<p id=\"4.%20%E5%85%B3%E9%94%AE%E5%8A%9F%E8%83%BD%E8%AF%B4%E6%98%8E-toc\" style=\"margin-left:40px\">4. \u5173\u952e\u529f\u80fd\u8bf4\u660e<\/p>\n<p id=\"5.%20%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95-toc\" style=\"margin-left:40px\">5. \u4f7f\u7528\u65b9\u6cd5<\/p>\n<p id=\"6.%20%E8%BF%9B%E9%98%B6%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE-toc\" style=\"margin-left:40px\">6. \u8fdb\u9636\u4f18\u5316\u5efa\u8bae<\/p>\n<p id=\"7.%20%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:40px\">7. \u5b9a\u65f6\u4efb\u52a1\u914d\u7f6e<\/p>\n<hr id=\"hr-toc\" \/>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"540\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420033103-68046a77ac57a.png\" width=\"960\" \/><\/p>\n<p>\u00a0 <\/p>\n<hr \/>\n<p>\u00a0 <\/p>\n<h3 id=\"1.%20%E5%AE%9E%E7%8E%B0%E6%80%9D%E8%B7%AF\">1. \u5b9e\u73b0\u601d\u8def<\/h3>\n<\/p>\n<li>SSH\u514d\u5bc6\u767b\u5f55&#xff1a;\u914d\u7f6e\u6240\u6709\u88ab\u76d1\u63a7\u670d\u52a1\u5668\u4e0e\u6267\u884c\u811a\u672c\u7684\u4e3b\u673a\u4e4b\u95f4SSH\u5bc6\u94a5\u767b\u5f55<\/li>\n<li>\u670d\u52a1\u5668\u5217\u8868&#xff1a;\u7ef4\u62a4\u9700\u8981\u76d1\u63a7\u7684\u670d\u52a1\u5668\u5217\u8868<\/li>\n<li>\u78c1\u76d8\u68c0\u67e5&#xff1a;\u901a\u8fc7df\u547d\u4ee4\u83b7\u53d6\u78c1\u76d8\u5229\u7528\u7387<\/li>\n<li>\u9608\u503c\u5224\u65ad&#xff1a;\u8bbe\u7f6e\u62a5\u8b66\u9608\u503c&#xff08;\u598280%&#xff09;<\/li>\n<li>\u7ed3\u679c\u5904\u7406&#xff1a;\u8bb0\u5f55\u65e5\u5fd7\u5e76\u53d1\u9001\u62a5\u8b66\u901a\u77e5<\/li>\n<h3 id=\"2.%20%E5%89%8D%E7%BD%AE%E5%87%86%E5%A4%87\">2. \u524d\u7f6e\u51c6\u5907<\/h3>\n<p># \u751f\u6210SSH\u5bc6\u94a5\u5bf9&#xff08;\u5728\u76d1\u63a7\u4e3b\u673a\u6267\u884c&#xff09;<br \/>\nssh-keygen -t rsa<br \/>\n# \u5c06\u516c\u94a5\u90e8\u7f72\u5230\u6240\u6709\u88ab\u76d1\u63a7\u670d\u52a1\u5668&#xff08;\u66ff\u6362your_username&#064;server_ip&#xff09;<br \/>\nssh-copy-id your_username&#064;server_ip<\/p>\n<h3 id=\"3.%20%E5%AE%8C%E6%95%B4%E8%84%9A%E6%9C%AC\">3. \u5b8c\u6574\u811a\u672c<\/h3>\n<p>#!\/bin\/bash<\/p>\n<p># \u914d\u7f6e\u90e8\u5206<br \/>\nTHRESHOLD&#061;80                          # \u78c1\u76d8\u4f7f\u7528\u7387\u62a5\u8b66\u9608\u503c<br \/>\nSERVER_LIST&#061;(&#034;server1&#034; &#034;server2&#034; &#034;192.168.1.100&#034;) # \u670d\u52a1\u5668\u5217\u8868<br \/>\nLOG_FILE&#061;&#034;\/var\/log\/disk_monitor.log&#034;  # \u65e5\u5fd7\u6587\u4ef6\u8def\u5f84<br \/>\nEMAIL&#061;&#034;admin&#064;example.com&#034;             # \u62a5\u8b66\u901a\u77e5\u90ae\u7bb1<\/p>\n<p># \u68c0\u67e5\u78c1\u76d8\u51fd\u6570<br \/>\ncheck_disk() {<br \/>\n    local server&#061;$1<br \/>\n    # SSH\u8fde\u63a5\u8d85\u65f6\u8bbe\u7f6e\u4e3a5\u79d2<br \/>\n    ssh -o ConnectTimeout&#061;5 $server &lt;&lt;&#039;EOF&#039; 2&gt;\/dev\/null<br \/>\n    # \u83b7\u53d6\u78c1\u76d8\u4f7f\u7528\u7387&#xff08;\u6392\u9664\u7279\u6b8a\u6587\u4ef6\u7cfb\u7edf&#xff09;<br \/>\n    df -P | awk &#039;NR&gt;1 &amp;&amp; $0!~\/tmpfs|devtmpfs\/ {print $5 &#034; &#034; $6}&#039;<br \/>\nEOF<br \/>\n}<\/p>\n<p># \u4e3b\u5faa\u73af<br \/>\nfor server in &#034;${SERVER_LIST[&#064;]}&#034;; do<br \/>\n    echo &#034;[$(date &#043;&#039;%Y-%m-%d %H:%M:%S&#039;)] Checking $server&#8230;&#034; &gt;&gt; $LOG_FILE<\/p>\n<p>    if ! ping -c 1 -W 1 $server &amp;&gt; \/dev\/null; then<br \/>\n        echo &#034;  $server: Network unreachable!&#034; &gt;&gt; $LOG_FILE<br \/>\n        continue<br \/>\n    fi<\/p>\n<p>    result&#061;$(check_disk $server)<\/p>\n<p>    if [ -z &#034;$result&#034; ]; then<br \/>\n        echo &#034;  $server: SSH connection failed!&#034; &gt;&gt; $LOG_FILE<br \/>\n        continue<br \/>\n    fi<\/p>\n<p>    # \u5904\u7406\u68c0\u67e5\u7ed3\u679c<br \/>\n    while read -r line; do<br \/>\n        usage&#061;${line%%%*}          # \u63d0\u53d6\u4f7f\u7528\u7387\u6570\u503c<br \/>\n        mount_point&#061;${line#* }     # \u63d0\u53d6\u6302\u8f7d\u70b9<\/p>\n<p>        if [ $usage -ge $THRESHOLD ]; then<br \/>\n            alert_msg&#061;&#034;  [WARNING] $server: $mount_point usage ${usage}%&#034;<br \/>\n            echo &#034;$alert_msg&#034; &gt;&gt; $LOG_FILE<br \/>\n            # \u53d1\u9001\u90ae\u4ef6\u62a5\u8b66&#xff08;\u9700\u8981\u914d\u7f6emailx&#xff09;<br \/>\n            echo &#034;$alert_msg&#034; | mail -s &#034;Disk Alert: $server&#034; $EMAIL<br \/>\n        fi<br \/>\n    done &lt;&lt;&lt; &#034;$result&#034;<br \/>\ndone<\/p>\n<h3 id=\"4.%20%E5%85%B3%E9%94%AE%E5%8A%9F%E8%83%BD%E8%AF%B4%E6%98%8E\">4. \u5173\u952e\u529f\u80fd\u8bf4\u660e<\/h3>\n<li>\u7f51\u7edc\u68c0\u6d4b&#xff1a;\u5148\u901a\u8fc7ping\u68c0\u6d4b\u670d\u52a1\u5668\u53ef\u8fbe\u6027<\/li>\n<li>SSH\u8d85\u65f6\u63a7\u5236&#xff1a;\u8bbe\u7f6e5\u79d2\u8fde\u63a5\u8d85\u65f6\u9632\u6b62\u811a\u672c\u963b\u585e<\/li>\n<li>\u6587\u4ef6\u7cfb\u7edf\u8fc7\u6ee4&#xff1a;\u6392\u9664tmpfs\u3001devtmpfs\u7b49\u7279\u6b8a\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>\u9519\u8bef\u5904\u7406&#xff1a;\n<ul>\n<li>\u7f51\u7edc\u4e0d\u53ef\u8fbe\u68c0\u6d4b<\/li>\n<li>SSH\u8fde\u63a5\u5931\u8d25\u5904\u7406<\/li>\n<li>\u7a7a\u7ed3\u679c\u68c0\u6d4b<\/li>\n<\/ul>\n<\/li>\n<li>\u90ae\u4ef6\u62a5\u8b66&#xff1a;\u9700\u8981\u7cfb\u7edf\u914d\u7f6e\u597dmailx\u6216sendmail<\/li>\n<h3 id=\"5.%20%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\">5. \u4f7f\u7528\u65b9\u6cd5<\/h3>\n<li>\u4fdd\u5b58\u4e3adisk_monitor.sh<\/li>\n<li>\u6dfb\u52a0\u6267\u884c\u6743\u9650&#xff1a; chmod &#043;x disk_monitor.sh\n <\/li>\n<li>\u6d4b\u8bd5\u8fd0\u884c&#xff1a; .\/disk_monitor.sh\n <\/li>\n<li>\u67e5\u770b\u65e5\u5fd7&#xff1a; tail -f \/var\/log\/disk_monitor.log\n <\/li>\n<h3 id=\"6.%20%E8%BF%9B%E9%98%B6%E4%BC%98%E5%8C%96%E5%BB%BA%E8%AE%AE\">6. \u8fdb\u9636\u4f18\u5316\u5efa\u8bae<\/h3>\n<li>\u5e76\u884c\u68c0\u67e5&#xff1a;\u4f7f\u7528&amp;\u548cwait\u5b9e\u73b0\u5e76\u53d1\u68c0\u67e5 for server in &#034;${SERVER_LIST[&#064;]}&#034;; do<br \/>\n    ( check_disk $server &gt;&gt; \/tmp\/$$_$server.tmp ) &amp;<br \/>\ndone<br \/>\nwait\n <\/li>\n<li>HTML\u90ae\u4ef6&#xff1a;\u751f\u6210\u5e26\u8868\u683c\u7684HTML\u683c\u5f0f\u62a5\u8b66\u90ae\u4ef6<\/li>\n<li>\u4f01\u4e1a\u5fae\u4fe1\/\u9489\u9489\u901a\u77e5&#xff1a;\u66ff\u6362\u90ae\u4ef6\u901a\u77e5\u4e3aWebhook\u901a\u77e5<\/li>\n<li>\u5386\u53f2\u8d8b\u52bf\u8bb0\u5f55&#xff1a;\u5c06\u7ed3\u679c\u5b58\u50a8\u5230\u6570\u636e\u5e93&#xff0c;\u751f\u6210\u8d8b\u52bf\u62a5\u8868<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6\u5206\u79bb&#xff1a;\u5c06\u670d\u52a1\u5668\u5217\u8868\u3001\u9608\u503c\u7b49\u914d\u7f6e\u79fb\u81f3\u5355\u72ec\u6587\u4ef6<\/li>\n<h3 id=\"7.%20%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1%E9%85%8D%E7%BD%AE\">7. \u5b9a\u65f6\u4efb\u52a1\u914d\u7f6e<\/h3>\n<p># \u6bcf\u5929\u68c0\u67e53\u6b21&#xff08;\u7f16\u8f91crontab&#xff09;<br \/>\ncrontab -e<br \/>\n# \u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9&#xff1a;<br \/>\n0 *\/8 * * * \/path\/to\/disk_monitor.sh<\/p>\n<hr \/>\n<p>\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<li>\u786e\u4fdd\u6240\u6709\u88ab\u76d1\u63a7\u670d\u52a1\u5668\u7684\u65f6\u95f4\u540c\u6b65&#xff08;\u4f7f\u7528ntp&#xff09;<\/li>\n<li>\u5b9a\u671f\u6e05\u7406\u65e5\u5fd7\u6587\u4ef6&#xff08;\u53ef\u642d\u914dlogrotate&#xff09;<\/li>\n<li>\u654f\u611f\u4fe1\u606f&#xff08;\u5982\u5bc6\u7801&#xff09;\u5efa\u8bae\u4f7f\u7528\u52a0\u5bc6\u5b58\u50a8<\/li>\n<li>\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u4f7f\u7528\u4e13\u4e1a\u76d1\u63a7\u7cfb\u7edf&#xff08;\u5982Prometheus&#043;Alertmanager&#xff09;<\/li>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420033104-68046a7822fb4.gif\" \/><\/p>\n<p>\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650&#xff0c;\u5982\u6709\u7eb0\u6f0f&#xff0c;\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63&#xff01;&#x1f604;&#x1f604;&#x1f604;<\/p>\n<p>&#x1f498;&#x1f498;&#x1f498;\u5982\u679c\u89c9\u5f97\u8fd9\u7bc7\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd&#xff0c;\u4e5f\u8bf7\u7ed9\u4e2a\u70b9\u8d5e\u3001\u6536\u85cf\u4e0b\u5427&#xff0c;\u975e\u5e38\u611f\u8c22!&#x1f44d; &#x1f44d; &#x1f44d;<\/p>\n<p>&#x1f525;&#x1f525;&#x1f525;Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427&#xff01;&#x1f319;&#x1f319;&#x1f319;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb772\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01_\u8783\u87f9\u4ea4\u6613\u5e73\u53f0\u76d1\u63a7\u811a\u672c<\/p>\n","protected":false},"author":2,"featured_media":29643,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[89,92],"topic":[],"class_list":["post-29646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-git","tag-github"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/29646.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb772\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01_\u8783\u87f9\u4ea4\u6613\u5e73\u53f0\u76d1\u63a7\u811a\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/29646.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T03:31:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420033103-68046a772d5a7.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29646.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/29646.html\",\"name\":\"HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T03:31:05+00:00\",\"dateModified\":\"2025-04-20T03:31:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/29646.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/29646.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/29646.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HoRain\u4e91--\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/29646.html","og_locale":"zh_CN","og_type":"article","og_title":"HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb772\u6b21\uff0c\u70b9\u8d5e34\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\ud83d\udd25\ud83d\udd25\ud83d\udd25Stay Hungry Stay Foolish \u9053\u963b\u4e14\u957f,\u884c\u5219\u5c06\u81f3,\u8ba9\u6211\u4eec\u4e00\u8d77\u52a0\u6cb9\u5427\uff01\u524d\u4e9b\u5929\u53d1\u73b0\u4e86\u4e00\u4e2a\u8d85\u68d2\u7684\u670d\u52a1\u5668\u8d2d\u4e70\u7f51\u7ad9\uff0c\u6027\u4ef7\u6bd4\u8d85\u9ad8\uff0c\u5927\u5185\u5b58\u8d85\u5212\u7b97\uff01\u5fcd\u4e0d\u4f4f\u5206\u4eab\u4e00\u4e0b\u7ed9\u5927\u5bb6\u3002\u2764\ufe0f\u2764\ufe0f\u2764\ufe0f\u672c\u4eba\u6c34\u5e73\u6709\u9650\uff0c\u5982\u6709\u7eb0\u6f0f\uff0c\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8bc4\u8bba\u6279\u8bc4\u6307\u6b63\uff01_\u8783\u87f9\u4ea4\u6613\u5e73\u53f0\u76d1\u63a7\u811a\u672c","og_url":"https:\/\/www.wsisp.com\/helps\/29646.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T03:31:05+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420033103-68046a772d5a7.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/29646.html","url":"https:\/\/www.wsisp.com\/helps\/29646.html","name":"HoRain\u4e91-\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T03:31:05+00:00","dateModified":"2025-04-20T03:31:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/29646.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/29646.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/29646.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HoRain\u4e91--\u591a\u670d\u52a1\u5668\u78c1\u76d8\u76d1\u63a7Shell\u811a\u672c\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=29646"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/29646\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/29643"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=29646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=29646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=29646"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=29646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}