{"id":105028,"date":"2026-09-13T16:33:09","date_gmt":"2026-09-13T08:33:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/105028.html"},"modified":"2026-09-13T16:33:09","modified_gmt":"2026-09-13T08:33:09","slug":"workbuddy-%e5%bf%ab%e9%80%9f%e5%bc%80%e5%a7%8b%ef%bc%9a%e4%bb%8e%e5%ae%89%e8%a3%85%e5%88%b0%e7%ac%ac%e4%b8%80%e4%b8%aa%e8%87%aa%e5%8a%a8%e5%8c%96%e4%bb%bb%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/105028.html","title":{"rendered":"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1"},"content":{"rendered":"<h3>1. \u5f15\u8a00<\/h3>\n<p>WorkBuddy \u662f\u4e00\u6b3e\u9762\u5411\u5f00\u53d1\u8005\u548c\u8fd0\u7ef4\u4eba\u5458\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u7f16\u6392\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u7b80\u6d01\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;\u5e2e\u52a9\u4f60\u628a\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u6d41\u7a0b\u56fa\u5316\u4e3a\u53ef\u590d\u7528\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u672c\u6587\u5c06\u4ece\u96f6\u5f00\u59cb&#xff0c;\u5e26\u4f60\u5b8c\u6210 WorkBuddy \u7684\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1&#xff0c;\u5e76\u9010\u6b65\u6df1\u5165\u5230\u53c2\u6570\u4f20\u9012\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b9a\u65f6\u8c03\u5ea6\u7b49\u8fdb\u9636\u7528\u6cd5\u3002<\/p>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u4f60\u7684\u673a\u5668\u6ee1\u8db3\u4ee5\u4e0b\u73af\u5883\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Linux \/ macOS \/ Windows&#xff08;WSL \u63a8\u8350&#xff09;<\/li>\n<li>\u8fd0\u884c\u65f6&#xff1a;Python 3.9 \u53ca\u4ee5\u4e0a&#xff0c;\u6216 Node.js 16 \u53ca\u4ee5\u4e0a<\/li>\n<li>\u7f51\u7edc&#xff1a;\u53ef\u8bbf\u95ee\u5b98\u65b9\u8f6f\u4ef6\u6e90&#xff0c;\u7528\u4e8e\u4e0b\u8f7d\u4f9d\u8d56\u5305<\/li>\n<\/ul>\n<h3>2. \u5b89\u88c5 WorkBuddy<\/h3>\n<p>WorkBuddy \u63d0\u4f9b\u4e86\u591a\u79cd\u5b89\u88c5\u65b9\u5f0f&#xff0c;\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u6280\u672f\u6808\u9009\u62e9\u6700\u5408\u9002\u7684\u4e00\u79cd\u3002<\/p>\n<h4>2.1 \u4f7f\u7528 pip \u5b89\u88c5&#xff08;Python \u73af\u5883&#xff09;<\/h4>\n<p>\u5982\u679c\u4f60\u4f7f\u7528 Python&#xff0c;\u63a8\u8350\u901a\u8fc7 pip \u76f4\u63a5\u5b89\u88c5&#xff1a;<\/p>\n<p>pip install workbuddy<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u9a8c\u8bc1\u7248\u672c\u53f7&#xff1a;<\/p>\n<p>workbuddy &#8211;version<\/p>\n<p>\u5982\u679c\u8f93\u51fa\u7c7b\u4f3c workbuddy 0.9.2 \u7684\u7248\u672c\u4fe1\u606f&#xff0c;\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<h4>2.2 \u4f7f\u7528 npm \u5b89\u88c5&#xff08;Node.js \u73af\u5883&#xff09;<\/h4>\n<p>\u5bf9\u4e8e Node.js \u7528\u6237&#xff0c;\u53ef\u4ee5\u4f7f\u7528 npm \u5168\u5c40\u5b89\u88c5&#xff1a;<\/p>\n<p>npm install -g workbuddy<\/p>\n<p>\u540c\u6837\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c&#xff1a;<\/p>\n<p>workbuddy &#8211;version<\/p>\n<h4>2.3 \u4f7f\u7528 Docker \u8fd0\u884c<\/h4>\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u9694\u79bb\u73af\u5883&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5b98\u65b9 Docker \u955c\u50cf&#xff1a;<\/p>\n<p>docker pull workbuddy\/workbuddy:latest<br \/>\ndocker run &#8211;rm -v $(pwd):\/workspace workbuddy\/workbuddy:latest &#8211;version<\/p>\n<p>\u8fd9\u91cc\u628a\u5f53\u524d\u76ee\u5f55\u6302\u8f7d\u5230\u5bb9\u5668\u7684 \/workspace&#xff0c;\u65b9\u4fbf\u5bb9\u5668\u5185\u8bbf\u95ee\u4f60\u7684\u4efb\u52a1\u6587\u4ef6\u3002<\/p>\n<h3>3. \u521d\u59cb\u5316\u9879\u76ee<\/h3>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a WorkBuddy \u9879\u76ee\u76ee\u5f55&#xff0c;\u5e76\u751f\u6210\u57fa\u7840\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h4>3.1 \u521b\u5efa\u9879\u76ee\u76ee\u5f55<\/h4>\n<p>mkdir my-workbuddy-demo<br \/>\ncd my-workbuddy-demo<\/p>\n<h4>3.2 \u521d\u59cb\u5316\u9879\u76ee<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c\u521d\u59cb\u5316\u547d\u4ee4&#xff1a;<\/p>\n<p>workbuddy init<\/p>\n<p>\u6267\u884c\u540e&#xff0c;WorkBuddy \u4f1a\u81ea\u52a8\u751f\u6210\u4ee5\u4e0b\u6587\u4ef6\u7ed3\u6784&#xff1a;<\/p>\n<p>my-workbuddy-demo\/<br \/>\n\u251c\u2500\u2500 workbuddy.yaml          # \u4e3b\u914d\u7f6e\u6587\u4ef6<br \/>\n\u251c\u2500\u2500 tasks\/                  # \u4efb\u52a1\u76ee\u5f55<br \/>\n\u2502   \u2514\u2500\u2500 hello.yaml          # \u793a\u4f8b\u4efb\u52a1<br \/>\n\u2514\u2500\u2500 logs\/                   # \u8fd0\u884c\u65e5\u5fd7\u76ee\u5f55<\/p>\n<p>\u5176\u4e2d workbuddy.yaml \u662f\u5168\u5c40\u914d\u7f6e\u6587\u4ef6&#xff0c;tasks\/ \u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u5177\u4f53\u7684\u4efb\u52a1\u5b9a\u4e49\u6587\u4ef6\u3002<\/p>\n<h4>3.3 \u67e5\u770b\u9ed8\u8ba4\u914d\u7f6e<\/h4>\n<p>\u6253\u5f00 workbuddy.yaml&#xff0c;\u5185\u5bb9\u5927\u81f4\u5982\u4e0b&#xff1a;<\/p>\n<p>project:<br \/>\n  name: my-workbuddy-demo<br \/>\n  version: 0.1.0<br \/>\nrunner:<br \/>\ndefault: local<br \/>\ntimeout: 300<br \/>\nlogging:<br \/>\nlevel: info<br \/>\noutput: logs\/<\/p>\n<p>\u8fd9\u91cc\u5b9a\u4e49\u4e86\u9879\u76ee\u540d\u79f0\u3001\u9ed8\u8ba4\u6267\u884c\u5668\u3001\u8d85\u65f6\u65f6\u95f4\u4ee5\u53ca\u65e5\u5fd7\u7ea7\u522b\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574\u8fd9\u4e9b\u53c2\u6570\u3002<\/p>\n<h3>4. \u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1<\/h3>\n<p>\u521d\u59cb\u5316\u5b8c\u6210\u540e&#xff0c;\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u81ea\u52a8\u751f\u6210\u7684\u793a\u4f8b\u4efb\u52a1 tasks\/hello.yaml&#xff1a;<\/p>\n<p>name: hello<br \/>\ndescription: \u6253\u5370\u6b22\u8fce\u4fe1\u606f<br \/>\nsteps:<br \/>\n  &#8211; echo:<br \/>\n      message: &#034;Hello, WorkBuddy!&#034;<\/p>\n<p>\u8fd9\u4e2a\u4efb\u52a1\u975e\u5e38\u7b80\u5355&#xff1a;\u5b83\u53ea\u6709\u4e00\u4e2a\u6b65\u9aa4&#xff0c;\u8c03\u7528\u5185\u7f6e\u7684 echo \u52a8\u4f5c&#xff0c;\u8f93\u51fa\u4e00\u884c\u6b22\u8fce\u4fe1\u606f\u3002<\/p>\n<h4>4.1 \u8fd0\u884c\u4efb\u52a1<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u4efb\u52a1&#xff1a;<\/p>\n<p>workbuddy run hello<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b&#xff1a;<\/p>\n<p>[2026-09-12 18:00:01] INFO  Starting task: hello<br \/>\n[2026-09-12 18:00:01] INFO  Step 1\/1: echo<br \/>\nHello, WorkBuddy!<br \/>\n[2026-09-12 18:00:01] INFO  Task completed successfully<\/p>\n<p>\u606d\u559c&#xff0c;\u4f60\u5df2\u7ecf\u6210\u529f\u8fd0\u884c\u4e86\u7b2c\u4e00\u4e2a WorkBuddy \u4efb\u52a1\u3002<\/p>\n<h4>4.2 \u4efb\u52a1\u6587\u4ef6\u7ed3\u6784\u8bf4\u660e<\/h4>\n<p>\u4e00\u4e2a\u6807\u51c6\u7684 WorkBuddy \u4efb\u52a1\u6587\u4ef6\u5305\u542b\u4e09\u4e2a\u6838\u5fc3\u5b57\u6bb5&#xff1a;<\/p>\n<ul>\n<li>name&#xff1a;\u4efb\u52a1\u540d\u79f0&#xff0c;\u7528\u4e8e\u547d\u4ee4\u884c\u8c03\u7528\u3002<\/li>\n<li>description&#xff1a;\u4efb\u52a1\u63cf\u8ff0&#xff0c;\u4fbf\u4e8e\u9605\u8bfb\u548c\u7ef4\u62a4\u3002<\/li>\n<li>steps&#xff1a;\u6b65\u9aa4\u5217\u8868&#xff0c;\u6309\u987a\u5e8f\u6267\u884c\u7684\u52a8\u4f5c\u96c6\u5408\u3002<\/li>\n<\/ul>\n<h3>5. \u5e38\u7528\u52a8\u4f5c\u4e0e\u53c2\u6570\u4f20\u9012<\/h3>\n<p>WorkBuddy \u5185\u7f6e\u4e86\u4e30\u5bcc\u7684\u52a8\u4f5c\u5e93&#xff0c;\u4e0b\u9762\u4ecb\u7ecd\u51e0\u4e2a\u6700\u5e38\u7528\u7684\u52a8\u4f5c&#xff0c;\u4ee5\u53ca\u5982\u4f55\u5728\u6b65\u9aa4\u4e4b\u95f4\u4f20\u9012\u53c2\u6570\u3002<\/p>\n<h4>5.1 \u6267\u884c Shell \u547d\u4ee4<\/h4>\n<p>\u4f7f\u7528 shell \u52a8\u4f5c\u53ef\u4ee5\u6267\u884c\u4efb\u610f\u7cfb\u7edf\u547d\u4ee4&#xff1a;<\/p>\n<p>name: system-info<br \/>\ndescription: \u6536\u96c6\u7cfb\u7edf\u4fe1\u606f<br \/>\nsteps:<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;uname -a&#034;<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;df -h&#034;<\/p>\n<h4>5.2 \u8bfb\u5199\u6587\u4ef6<\/h4>\n<p>\u4f7f\u7528 file.read \u548c file.write \u52a8\u4f5c\u53ef\u4ee5\u8bfb\u5199\u6587\u4ef6&#xff1a;<\/p>\n<p>name: file-demo<br \/>\ndescription: \u6587\u4ef6\u8bfb\u5199\u793a\u4f8b<br \/>\nsteps:<br \/>\n  &#8211; file.write:<br \/>\n      path: &#034;.\/output.txt&#034;<br \/>\n      content: &#034;\u8fd9\u662f\u5199\u5165\u7684\u5185\u5bb9&#034;<br \/>\n  &#8211; file.read:<br \/>\n      path: &#034;.\/output.txt&#034;<\/p>\n<h4>5.3 \u6b65\u9aa4\u95f4\u4f20\u9012\u53c2\u6570<\/h4>\n<p>WorkBuddy \u652f\u6301\u901a\u8fc7 output \u5b57\u6bb5\u6355\u83b7\u6b65\u9aa4\u7ed3\u679c&#xff0c;\u5e76\u5728\u540e\u7eed\u6b65\u9aa4\u4e2d\u5f15\u7528&#xff1a;<\/p>\n<p>name: param-demo<br \/>\ndescription: \u53c2\u6570\u4f20\u9012\u793a\u4f8b<br \/>\nsteps:<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;echo &#039;hello from shell&#039;&#034;<br \/>\n    output: shell_result<br \/>\n  &#8211; echo:<br \/>\n      message: &#034;\u4e0a\u4e00\u6b65\u7684\u8f93\u51fa\u662f&#xff1a;${shell_result}&#034;<\/p>\n<p>\u8fd9\u91cc ${shell_result} \u4f1a\u5f15\u7528\u4e0a\u4e00\u6b65\u6355\u83b7\u7684\u8f93\u51fa\u5185\u5bb9\u3002<\/p>\n<h3>6. \u6761\u4ef6\u5224\u65ad\u4e0e\u5faa\u73af<\/h3>\n<p>\u771f\u5b9e\u573a\u666f\u4e2d&#xff0c;\u4efb\u52a1\u5f80\u5f80\u9700\u8981\u6839\u636e\u6761\u4ef6\u5206\u652f\u6267\u884c&#xff0c;\u6216\u8005\u5bf9\u4e00\u7ec4\u6570\u636e\u91cd\u590d\u5904\u7406\u3002<\/p>\n<h4>6.1 \u6761\u4ef6\u5224\u65ad<\/h4>\n<p>\u4f7f\u7528 when \u5b57\u6bb5\u53ef\u4ee5\u4e3a\u6b65\u9aa4\u6dfb\u52a0\u6267\u884c\u6761\u4ef6&#xff1a;<\/p>\n<p>name: conditional-demo<br \/>\ndescription: \u6761\u4ef6\u5224\u65ad\u793a\u4f8b<br \/>\nsteps:<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;test -f \/etc\/passwd&#034;<br \/>\n    output: passwd_exists<br \/>\n  &#8211; echo:<br \/>\n      message: &#034;\u6587\u4ef6\u5b58\u5728&#034;<br \/>\n    when: &#034;${passwd_exists} &#061;&#061; true&#034;<br \/>\n  &#8211; echo:<br \/>\n      message: &#034;\u6587\u4ef6\u4e0d\u5b58\u5728&#034;<br \/>\n    when: &#034;${passwd_exists} &#061;&#061; false&#034;<\/p>\n<h4>6.2 \u5faa\u73af\u5904\u7406<\/h4>\n<p>\u4f7f\u7528 foreach \u53ef\u4ee5\u5bf9\u5217\u8868\u6570\u636e\u9010\u9879\u5904\u7406&#xff1a;<\/p>\n<p>name: loop-demo<br \/>\ndescription: \u5faa\u73af\u5904\u7406\u793a\u4f8b<br \/>\nsteps:<br \/>\n  &#8211; foreach:<br \/>\n      items: [&#034;apple&#034;, &#034;banana&#034;, &#034;cherry&#034;]<br \/>\n      as: fruit<br \/>\n      do:<br \/>\n        &#8211; echo:<br \/>\n            message: &#034;\u5f53\u524d\u6c34\u679c&#xff1a;${fruit}&#034;<\/p>\n<p>\u8fd0\u884c\u540e&#xff0c;\u4f1a\u4f9d\u6b21\u8f93\u51fa\u4e09\u79cd\u6c34\u679c\u7684\u540d\u79f0\u3002<\/p>\n<h3>7. \u5b9a\u65f6\u8c03\u5ea6\u4efb\u52a1<\/h3>\n<p>WorkBuddy \u652f\u6301\u901a\u8fc7 cron \u8868\u8fbe\u5f0f\u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1&#xff0c;\u9002\u5408\u5468\u671f\u6027\u6267\u884c\u7684\u573a\u666f\u3002<\/p>\n<h4>7.1 \u914d\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/h4>\n<p>\u5728 workbuddy.yaml \u4e2d\u589e\u52a0 schedule \u914d\u7f6e&#xff1a;<\/p>\n<p>project:<br \/>\n  name: my-workbuddy-demo<br \/>\n  version: 0.1.0<br \/>\nrunner:<br \/>\ndefault: local<br \/>\ntimeout: 300<br \/>\nlogging:<br \/>\nlevel: info<br \/>\noutput: logs\/<br \/>\nschedule:<br \/>\ntask: hello<br \/>\ncron: &#034;0 9 * * *&#034;<\/p>\n<p>\u4e0a\u9762\u7684\u914d\u7f6e\u8868\u793a\u6bcf\u5929\u4e0a\u5348 9 \u70b9\u6267\u884c\u4e00\u6b21 hello \u4efb\u52a1\u3002<\/p>\n<h4>7.2 \u542f\u52a8\u8c03\u5ea6\u5668<\/h4>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u8c03\u5ea6\u5668&#xff1a;<\/p>\n<p>workbuddy schedule<\/p>\n<p>\u8c03\u5ea6\u5668\u4f1a\u5e38\u9a7b\u540e\u53f0&#xff0c;\u6309\u7167 cron \u8868\u8fbe\u5f0f\u89e6\u53d1\u5bf9\u5e94\u7684\u4efb\u52a1\u3002<\/p>\n<h3>8. \u5b9e\u6218&#xff1a;\u65e5\u5fd7\u6e05\u7406\u4efb\u52a1<\/h3>\n<p>\u4e0b\u9762\u6211\u4eec\u7efc\u5408\u8fd0\u7528\u524d\u9762\u5b66\u5230\u7684\u77e5\u8bc6&#xff0c;\u7f16\u5199\u4e00\u4e2a\u5b9e\u7528\u7684\u65e5\u5fd7\u6e05\u7406\u4efb\u52a1\u3002\u8be5\u4efb\u52a1\u4f1a\u5220\u9664\u6307\u5b9a\u76ee\u5f55\u4e0b\u8d85\u8fc7 7 \u5929\u7684 .log \u6587\u4ef6\u3002<\/p>\n<p>name: clean-logs<br \/>\ndescription: \u6e05\u7406\u8d85\u8fc7 7 \u5929\u7684\u65e5\u5fd7\u6587\u4ef6<br \/>\nsteps:<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;find .\/logs -name &#039;*.log&#039; -mtime &#043;7&#034;<br \/>\n    output: old_files<br \/>\n  &#8211; shell:<br \/>\n      command: &#034;find .\/logs -name &#039;*.log&#039; -mtime &#043;7 -delete&#034;<br \/>\n    when: &#034;${old_files} !&#061; &#039;&#039;&#034;<br \/>\n  &#8211; echo:<br \/>\n      message: &#034;\u65e5\u5fd7\u6e05\u7406\u5b8c\u6210&#034;<\/p>\n<p>\u8fd9\u4e2a\u4efb\u52a1\u5148\u67e5\u627e\u7b26\u5408\u6761\u4ef6\u7684\u65e7\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u5982\u679c\u5b58\u5728\u5219\u6267\u884c\u5220\u9664&#xff0c;\u6700\u540e\u8f93\u51fa\u5b8c\u6210\u63d0\u793a\u3002<\/p>\n<h3>9. \u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5<\/h3>\n<p>\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d&#xff0c;\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898&#xff0c;\u8fd9\u91cc\u7ed9\u51fa\u5bf9\u5e94\u7684\u6392\u67e5\u601d\u8def\u3002<\/p>\n<table>\n<tr>\u95ee\u9898\u73b0\u8c61\u53ef\u80fd\u539f\u56e0\u89e3\u51b3\u65b9\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u547d\u4ee4\u627e\u4e0d\u5230 workbuddy<\/td>\n<td>\u672a\u6b63\u786e\u5b89\u88c5\u6216 PATH \u672a\u914d\u7f6e<\/td>\n<td>\u91cd\u65b0\u6267\u884c\u5b89\u88c5\u547d\u4ee4&#xff0c;\u68c0\u67e5 PATH \u73af\u5883\u53d8\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u4efb\u52a1\u8fd0\u884c\u8d85\u65f6<\/td>\n<td>\u6b65\u9aa4\u6267\u884c\u65f6\u95f4\u8d85\u8fc7 timeout \u914d\u7f6e<\/td>\n<td>\u5728 workbuddy.yaml \u4e2d\u8c03\u5927 timeout \u503c<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u5f15\u7528\u4e3a\u7a7a<\/td>\n<td>\u4e0a\u4e00\u6b65\u672a\u6b63\u786e\u6355\u83b7 output<\/td>\n<td>\u68c0\u67e5 output \u5b57\u6bb5\u540d\u79f0\u662f\u5426\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6\u4efb\u52a1\u672a\u89e6\u53d1<\/td>\n<td>cron \u8868\u8fbe\u5f0f\u9519\u8bef\u6216\u8c03\u5ea6\u5668\u672a\u542f\u52a8<\/td>\n<td>\u6821\u9a8c cron \u8bed\u6cd5&#xff0c;\u786e\u8ba4 schedule \u547d\u4ee4\u5728\u8fd0\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>10. \u603b\u7ed3<\/h3>\n<p>\u672c\u6587\u4ece\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1\u5f00\u59cb&#xff0c;\u9010\u6b65\u4ecb\u7ecd\u4e86 WorkBuddy \u7684\u5e38\u7528\u52a8\u4f5c\u3001\u53c2\u6570\u4f20\u9012\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5faa\u73af\u5904\u7406\u3001\u5b9a\u65f6\u8c03\u5ea6\u7b49\u6838\u5fc3\u80fd\u529b&#xff0c;\u5e76\u901a\u8fc7\u4e00\u4e2a\u65e5\u5fd7\u6e05\u7406\u7684\u5b9e\u6218\u6848\u4f8b\u4e32\u8054\u4e86\u5168\u90e8\u77e5\u8bc6\u70b9\u3002<\/p>\n<p>WorkBuddy \u7684\u4ef7\u503c\u5728\u4e8e\u628a\u96f6\u6563\u7684\u8fd0\u7ef4\u548c\u5f00\u53d1\u64cd\u4f5c\u6c89\u6dc0\u4e3a\u53ef\u590d\u7528\u3001\u53ef\u8c03\u5ea6\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u5efa\u8bae\u4f60\u4ece\u81ea\u5df1\u65e5\u5e38\u6700\u91cd\u590d\u7684\u64cd\u4f5c\u5165\u624b&#xff0c;\u9010\u6b65\u79ef\u7d2f\u81ea\u5df1\u7684\u4efb\u52a1\u5e93\u3002\u66f4\u591a\u9ad8\u7ea7\u7528\u6cd5&#xff0c;\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\u4e2d\u7684\u52a8\u4f5c\u53c2\u8003\u548c\u6700\u4f73\u5b9e\u8df5\u7ae0\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5f15\u8a00WorkBuddy \u662f\u4e00\u6b3e\u9762\u5411\u5f00\u53d1\u8005\u548c\u8fd0\u7ef4\u4eba\u5458\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u7f16\u6392\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u7b80\u6d01\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;\u5e2e\u52a9\u4f60\u628a\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u6d41\u7a0b\u56fa\u5316\u4e3a\u53ef\u590d\u7528\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u672c\u6587\u5c06\u4ece\u96f6\u5f00\u59cb&#xff0c;\u5e26\u4f60\u5b8c\u6210 WorkBuddy \u7684\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1&#xff0c;\u5e76\u9010\u6b65\u6df1\u5165\u5230\u53c2\u6570\u4f20\u9012\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b9a\u65f6\u8c03\u5ea6\u7b49\u8fdb\u9636\u7528\u6cd5\u3002\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u4f60\u7684\u673a\u5668\u6ee1\u8db3\u4ee5\u4e0b\u73af\u5883\u8981\u6c42&#xff1a;\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Linux \/ macOS \/ Wi<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[395,44],"topic":[],"class_list":["post-105028","post","type-post","status-publish","format-standard","hentry","category-server","tag-395","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \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\/105028.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u5f15\u8a00WorkBuddy \u662f\u4e00\u6b3e\u9762\u5411\u5f00\u53d1\u8005\u548c\u8fd0\u7ef4\u4eba\u5458\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u7f16\u6392\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u7b80\u6d01\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;\u5e2e\u52a9\u4f60\u628a\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u6d41\u7a0b\u56fa\u5316\u4e3a\u53ef\u590d\u7528\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u672c\u6587\u5c06\u4ece\u96f6\u5f00\u59cb&#xff0c;\u5e26\u4f60\u5b8c\u6210 WorkBuddy \u7684\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1&#xff0c;\u5e76\u9010\u6b65\u6df1\u5165\u5230\u53c2\u6570\u4f20\u9012\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b9a\u65f6\u8c03\u5ea6\u7b49\u8fdb\u9636\u7528\u6cd5\u3002\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u4f60\u7684\u673a\u5668\u6ee1\u8db3\u4ee5\u4e0b\u73af\u5883\u8981\u6c42&#xff1a;\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Linux \/ macOS \/ Wi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/105028.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-13T08:33:09+00:00\" \/>\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\/105028.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/105028.html\",\"name\":\"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-13T08:33:09+00:00\",\"dateModified\":\"2026-09-13T08:33:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/105028.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/105028.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105028.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1\"}]},{\"@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":"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \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\/105028.html","og_locale":"zh_CN","og_type":"article","og_title":"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u5f15\u8a00WorkBuddy \u662f\u4e00\u6b3e\u9762\u5411\u5f00\u53d1\u8005\u548c\u8fd0\u7ef4\u4eba\u5458\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u7f16\u6392\u5de5\u5177&#xff0c;\u5b83\u901a\u8fc7\u7b80\u6d01\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u547d\u4ee4\u884c\u63a5\u53e3&#xff0c;\u5e2e\u52a9\u4f60\u628a\u91cd\u590d\u6027\u7684\u5de5\u4f5c\u6d41\u7a0b\u56fa\u5316\u4e3a\u53ef\u590d\u7528\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u672c\u6587\u5c06\u4ece\u96f6\u5f00\u59cb&#xff0c;\u5e26\u4f60\u5b8c\u6210 WorkBuddy \u7684\u5b89\u88c5\u3001\u521d\u59cb\u5316\u3001\u7f16\u5199\u7b2c\u4e00\u4e2a\u4efb\u52a1&#xff0c;\u5e76\u9010\u6b65\u6df1\u5165\u5230\u53c2\u6570\u4f20\u9012\u3001\u6761\u4ef6\u5224\u65ad\u3001\u5b9a\u65f6\u8c03\u5ea6\u7b49\u8fdb\u9636\u7528\u6cd5\u3002\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u4f60\u7684\u673a\u5668\u6ee1\u8db3\u4ee5\u4e0b\u73af\u5883\u8981\u6c42&#xff1a;\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Linux \/ macOS \/ Wi","og_url":"https:\/\/www.wsisp.com\/helps\/105028.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-13T08:33:09+00:00","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\/105028.html","url":"https:\/\/www.wsisp.com\/helps\/105028.html","name":"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-13T08:33:09+00:00","dateModified":"2026-09-13T08:33:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/105028.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/105028.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/105028.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"WorkBuddy \u5feb\u901f\u5f00\u59cb\uff1a\u4ece\u5b89\u88c5\u5230\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4efb\u52a1"}]},{"@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\/105028","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=105028"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105028\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=105028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=105028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=105028"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=105028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}