{"id":557225,"date":"2022-07-06T02:02:53","date_gmt":"2022-07-05T18:02:53","guid":{"rendered":"http:\/\/4563.org\/?p=557225"},"modified":"2022-07-06T02:02:53","modified_gmt":"2022-07-05T18:02:53","slug":"%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bf%e7%9a%840%e7%82%b9cpu%e9%ab%98%e5%8d%a0%e7%94%a8bug%e8%a7%a3%e7%96%91","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=557225","title":{"rendered":"\u5b9d\u5854\u9762\u677f\u76840\u70b9CPU\u9ad8\u5360\u7528bug\u89e3\u7591"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>imes<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 11:37:13\t<\/p>\n<h3>\u5b9d\u5854\u9762\u677f\u76840\u70b9CPU\u9ad8\u5360\u7528bug\u89e3\u7591<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 imes \u4e8e 2022-6-10 16:18 \u7f16\u8f91 <\/p>\n<p> bug\u627e\u5230\u4e86\uff0c\u70b9\u51fb\u8fd9\u91cchttps:\/\/hostloc.com\/thread-1030797-1-1.html<\/p>\n<p>  \u5b9d\u5854\u9762\u677f\u5728\u6700\u8fd1\u4e24\u5e74\uff0c\u6709\u4e2a\u5f88\u5947\u602a\u7684bug\uff0c\u5177\u4f53\u8868\u73b0\u4e3a\u4e00\u65e6\u8fc7\u4e860\u70b9\uff0cCPU\u4f7f\u7528\u7387\u5c31\u4f1a\u7a81\u7136\u4e0a\u53bb\uff0c\u5e76\u4e14\u4e00\u76f4\u4e0b\u4e0d\u6765\u3002\u53ef\u4ee5\u8003\u8bc1\u7684\u6700\u65e9\u8bb0\u5f55\u662f2021\u5e741\u6708\u4efdpc6a(https:\/\/pc6a.com\/3144.html)\u5199\u4e0b\u7684\u3002<br \/>  \u5177\u4f53\u60c5\u51b5\u5982\u4e0b\u56fe\uff0c\u5728\u521d\u59cb\u5b89\u88c5\u5b8c\u6210\u540e\uff0cCPU\u7684\u8d1f\u8f7d\u5f88\u4f4e\uff0c\u8868\u73b0\u4e00\u5207\u6b63\u5e38\u3002\u4e00\u65e6\u8fc7\u4e860\u70b9\uff0cCPU\u4f7f\u7528\u7387\u77ac\u95f4\u4e0a\u53bb\u4e86\u3002<br \/>  https:\/\/tu.sunpma.com\/imgs\/2022\/06\/6feda4ceac1b94ef.jpg<\/p>\n<p>  \u901a\u8fc7htop\u67e5\u770b\uff0c\u5360\u7528CPU\u6700\u9ad8\u7684\u662fsite_task.py\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u672c\u8eab\u662f\u7cfb\u7edf\u7684\u65e5\u5fd7\u4e0a\u62a5\u529f\u80fd\u6a21\u5757\u3002\u4f46\u662f\u6bcf10\u79d2\u949f\u5c31\u4f1a\u51fa\u73b0\u4e00\u6b21\uff0c\u6bcf\u6b21\u51fa\u73b0\u5c31\u6781\u5927\u7684\u63d0\u9ad8\u4e86CPU\u4f7f\u7528\u7387\uff0c\u663e\u5f97\u6781\u5176\u8be1\u5f02\u3002\u8981\u4e0d\u662f\u56e0\u4e3a\u80fd\u770b\u5230\u6e90\u7801\uff0c\u4e00\u5b9a\u4f1a\u5224\u5b9a\u5b83\u662f\u6728\u9a6c\uff0c\u5b9e\u9645\u4e0a\u8fd9\u4e2a\u7a0b\u5e8f\u5e76\u4e0d\u590d\u6742\uff0c\u56e0\u6b64\u5927\u6982\u7387\u662f\u4e2a\u903b\u8f91\u9519\u8bef\u6216\u8005\u7a0b\u5e8f\u5458\u6c34\u5e73\u4f4e\u4e0b\u5bfc\u81f4\u7684bug\u3002\u6211\u4f7f\u7528\u7684\u662fDebian 11\u7cfb\u7edf\u8fdb\u884c\u6d4b\u8bd5\u7684\uff0c\u5728\u817e\u8baf\u4e91\u4e0a\u6709\u4e00\u7bc7\u8bb0\u5f55(https:\/\/cloud.tencent.com\/developer\/article\/1958272)\uff0c\u662f\u5728CentOS 7\u4e0a\u6d4b\u8bd5\u51fa\u76f8\u540c\u73b0\u8c61\u7684\u3002\u8fd9\u8bf4\u660e\u4e86\u548c\u7cfb\u7edf\u672c\u8eab\u76f8\u5173\u6027\u4e0d\u5927\u3002<br \/>  https:\/\/tu.sunpma.com\/imgs\/2022\/06\/ce179982bb662a03.jpg<\/p>\n<p>  \u5b9d\u5854\u9762\u677f\u7684\u6e90\u7801\u662f\u5f00\u653e\u7684\uff0c\u4e8e\u662f\u5728GitHub(https:\/\/github.com\/aaPanel\/BaoTa)\u4e0a\u4e0b\u8f7d\u4e86\u4e0b\u6765\uff0c\u641c\u7d22\u548csite_task\u76f8\u5173\u7684\u5185\u5bb9\u3002\u6700\u7ec8\u53d1\u73b0\u4e86site_task.py\u662f\u901a\u8fc7bt-task.c\u8fd9\u4e2a\u6587\u4ef6\u8c03\u7528\/www\/server\/panel\/pyenv\/bin\/python3 \/www\/server\/panel\/script\/site_task.py\u800c\u8fd0\u884c\u8d77\u6765\u7684\u3002\u6ce8\u91ca\u91cc\u9762\u5199\u7684\u662f\u201c\u7f51\u7ad9\u5230\u671f\u65f6\u95f4\u5904\u7406\u201d\uff0c\u6709\u4e00\u4e2awhile true\u7684\u6b7b\u5faa\u73af\uff0c\u6bcf\u4e2a\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u3002<br \/>  https:\/\/tu.sunpma.com\/imgs\/2022\/06\/8a48ae22f364beab.jpg<\/p>\n<p>  \u4ed4\u7ec6\u67e5\u770b\u4ee3\u7801\u5185\u5bb9\uff0c\u53d1\u73b0\u8fd9\u4e2a\u5faa\u73af\u4e2d\u6d89\u53ca\u5230\u4e86\u65e5\u671f\u66f4\u6539\u3002\u7a0b\u5e8f\u9996\u5148\u8bfb\u53d6\u6587\u4ef6\u4e2d\u7684\u65e5\u671f\uff0c\u5224\u65ad\u548c\u76ee\u524d\u65e5\u671f\u662f\u5426\u76f8\u540c\uff0c\u5982\u679c\u76f8\u540c\u5c31\u4f1a\u7761\u7720\u4e00\u4e2a\u5c0f\u65f6\u3002\u6b64\u5916\u8fd8\u6709\u4e2a\u5c06\u6587\u4ef6\u65e5\u671f\u66f4\u6539\u7684\u529f\u80fd\uff0c\u7531\u4e8e\u5b9d\u5854\u7684\u4ee3\u7801\u7a00\u70c2\uff0c\u5f88\u96be\u634b\u987a\u5b83\u7684\u7a0b\u5e8f\uff0c\u6211\u5c31\u4e0d\u53bb\u7ec6\u67e5\u4e86\u3002\u6b64\u5916\uff0c\u201c\u91cd\u65b0\u6807\u8bb0\u6267\u884c\u65e5\u671f\u5e76\u6267\u884c\u5230\u671f\u7f51\u7ad9\u811a\u672c\u201d\u8fd9\u91cc\u597d\u50cf\u662f\u7f3a\u4e86\u4e00\u4e2a\u5224\u65ad\uff0c\u5b83\u8fd9\u79cd\u5199\u6cd5\u5bfc\u81f4\u9891\u7e41\u8bfb\u5199\u786c\u76d8\uff0c\u964d\u4f4e\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<p>  \u8a00\u5f52\u6b63\u4f20\uff0c0\u70b9CPU\u9ad8\u5360\u7528bug\u5927\u6982\u7387\u5c31\u662f\u8fd9\u4e2a\u6a21\u5757\u5bfc\u81f4\u7684\u4e86\uff0c\u6d89\u53ca\u5230\u65e5\u671f\u66f4\u6539\u548csite_task.py\u7a0b\u5e8f\u3002\u51fa\u4e8e\u67d0\u79cd\u539f\u56e0\uff08\u6bd4\u5982\u7a0b\u5e8f\u5458\u6c34\u5e73\u7a00\u70c2\uff09\u5bfc\u81f4\u4e86\u903b\u8f91\u9519\u8bef\uff0c\u6700\u7ec8\u9020\u6210\u4e00\u65e6\u65e5\u671f\u66f4\u6539\u4e86\uff0c\u9762\u677f\u5c31\u4e0d\u77e5\u9053\u8981\u505a\u4ec0\u4e48\uff0c\u7136\u540e\u75af\u72c2\u8fdb\u884c10\u79d2\u4e00\u6b21\u5faa\u73af\u3002\u8fd9\u79cd\u597d\u51e0\u5e74\u7684bug\u5c45\u7136\u90fd\u6ca1\u6709\u53d1\u73b0\uff0c\u53ea\u80fd\u8bf4\u5b9d\u5854\u7684\u6c34\u5e73\u662f\u6781\u5176\u5dee\u7684\u3002<\/p>\n<p>  \u4e34\u65f6\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u59290\u70b9\u91cd\u542f\u4e00\u6b21\u9762\u677f\u3002\u7ec8\u7aef\u8f93\u5165crontab -e\uff0c\u7136\u540e\u5199\u51652 0 * * * \/etc\/init.d\/bt restart\uff0c\u5373\u6bcf\u59290\u70b92\u5206\u7684\u65f6\u5019\u91cd\u542f\u4e00\u6b21\u9762\u677f\uff0c\u8ba9\u65e5\u671f\u5f52\u96f6\uff0c\u4ece\u800c\u907f\u5f00\u8fd9\u4e2abug\u3002\u6211\u6709\u70b9\u6000\u7591\u8fd9\u4e2abug\u53ef\u80fd\u548cLet&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u7533\u8bf7\u6709\u5173\uff0c\u597d\u50cf\u662f\u5728\u6211\u5168\u90e8\u4f7f\u7528\u7b2c\u4e09\u65b9SSL\u8bc1\u4e66\u4e4b\u540e\u624d\u53d1\u73b0\u8fd9\u4e2abug\u7684\u3002\u5177\u4f53\u7684\u8868\u73b0\u53ef\u80fd\u662f\u5982\u679c\u9762\u677f\u6ca1\u6709Let&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u7533\u8bf7\u4efb\u52a1\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u8fd9\u4e2abug\uff0c\u5177\u4f53\u662f\u4e0d\u662f\u6211\u8fd8\u5728\u5c1d\u8bd5\u4e2d\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>MMMM<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 11:39:52\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e4b\u524d\u8bba\u575b\u53d1\u8fc7\uff0c\u4e00\u5806\u4eba\u8fd8\u8bf4\u662f\u6211\u673a\u5668\u914d\u7f6e\u4f4e\u54c8\u54c8\u54c8\u54c8\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u71d5\u5341\u4e09\u4e36<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 11:38:31\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u7406\u6709\u636e\u652f\u6301 :lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imes<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 12:31:45\t<\/p>\n<h3><\/h3>\n<p>  \t\tMMMM \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 11:39<br \/>  \u4e4b\u524d\u8bba\u575b\u53d1\u8fc7\uff0c\u4e00\u5806\u4eba\u8fd8\u8bf4\u662f\u6211\u673a\u5668\u914d\u7f6e\u4f4e\u54c8\u54c8\u54c8\u54c8\u3002<\/p>\n<p> \u4f60\u4e4b\u524d\u662f\u4e0d\u662f\u4e5f\u6ca1\u6709\u7528Let&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>flyqie<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 13:39:27\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u521a\u624d\u770b\u4e86\u4e0b, \u7591\u4f3c\u627e\u5230\u95ee\u9898\u6240\u5728\u4e86(\u57fa\u4e8e\u5b9d\u5854\u9762\u677f7.7.0).<\/p>\n<p>  \u80fd\u5426\u8bf7\u697c\u4e3b\u544a\u77e5\u4ee5\u4e0b\u4fe1\u606f\u65b9\u4fbf\u9a8c\u8bc1?<\/p>\n<p>  1. \u5b9d\u5854\u7248\u672c<br \/>  2. \u6587\u4ef6 \/www\/server\/panel\/BT-Task \u7684\u6709\u65e0\u4ee5\u53ca\u6587\u4ef6\u5185\u5bb9?<br \/>  3. \u6587\u4ef6 \/www\/server\/panel\/task.py \u7684\u6709\u65e0?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>adminii<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 13:43:37\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u514d\u8d39\u5e2e\u627ebug\uff0c\u5b9d\u5854\u611f\u6fc0\u6d95\u96f6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6d6a\u542c\u6d9b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 14:05:50\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e34\u65f6\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u59290\u70b9\u91cd\u542f\u4e00\u6b21\u9762\u677f\u3002\u7ec8\u7aef\u8f93\u5165crontab -e\uff0c\u7136\u540e\u5199\u51652 0 * * * \/etc\/init.d\/bt restart\uff0c\u5373\u6bcf\u59290\u70b92\u5206\u7684\u65f6\u5019\u91cd\u542f\u4e00\u6b21\u9762\u677f\uff0c\u8ba9\u65e5\u671f\u5f52\u96f6\uff0c\u4ece\u800c\u907f\u5f00\u8fd9\u4e2abug\u3002\u6211\u6709\u70b9\u6000\u7591\u8fd9\u4e2abug\u53ef\u80fd\u548cLet&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u7533\u8bf7\u6709\u5173\uff0c\u597d\u50cf\u662f\u5728\u6211\u5168\u90e8\u4f7f\u7528\u7b2c\u4e09\u65b9SSL\u8bc1\u4e66\u4e4b\u540e\u624d\u53d1\u73b0\u8fd9\u4e2abug\u7684\u3002\u5177\u4f53\u7684\u8868\u73b0\u53ef\u80fd\u662f\u5982\u679c\u9762\u677f\u6ca1\u6709Let&#8217;s Encrypt\u7684SSL\u8bc1\u4e66\u7533\u8bf7\u4efb\u52a1\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u8fd9\u4e2abug\uff0c\u5177\u4f53\u662f\u4e0d\u662f\u6211\u8fd8\u5728\u5c1d\u8bd5\u4e2d\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>boq<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 14:10:28\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4ee3\u7801\u6709\u70b9\u70c2 \u8fd8\u5929\u5929\u66f4\u65b0\u5730\u8d77\u52b2\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imes<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 14:36:06\t<\/p>\n<h3><\/h3>\n<p>  \t\tflyqie \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 13:39<br \/>  \u521a\u624d\u770b\u4e86\u4e0b, \u7591\u4f3c\u627e\u5230\u95ee\u9898\u6240\u5728\u4e86(\u57fa\u4e8e\u5b9d\u5854\u9762\u677f7.7.0).<\/p>\n<p>  \u80fd\u5426\u8bf7\u697c\u4e3b\u544a\u77e5\u4ee5\u4e0b\u4fe1\u606f\u65b9\u4fbf\u9a8c\u8bc1?<\/p>\n<p>  1. \u7248\u672c aapanel6.8.25<br \/>  2. BT-Task \u5b58\u5728\uff0c\u5185\u5bb9\u5982\u4e0b<br \/>  3. task-py \u5b58\u5728<\/p>\n<p>  ls -lh \/www\/server\/panel\/BT-Task<br \/>  -rwx&#8212;&#8212; 1 root root 548 Jun8 11:00 \/www\/server\/panel\/BT-Task<br \/>  ls -lh \/www\/server\/panel\/task.py<br \/>  -rw&#8212;&#8212;- 1 root root 23K Apr 28 16:02 \/www\/server\/panel\/task.py<\/p>\n<p>  #!\/www\/server\/panel\/pyenv\/bin\/python<br \/>  #coding: utf-8<br \/>  # +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  # | \u5b9d\u5854Linux\u9762\u677f<br \/>  # +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  # | Copyright (c) 2015-2099 \u5b9d\u5854\u8f6f\u4ef6(http:\/\/bt.cn) All rights reserved.<br \/>  # +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>  # | Author: hwliang &lt;hwl@bt.cn&gt;<br \/>  # +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>  import os,sys<br \/>  os.chdir(&#8216;\/www\/server\/panel&#8217;)<br \/>  import task<br \/>  task.main()  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u739b\u96c5<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022-6-10 14:48:47\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b9d\u5854\u6211\u4e5f\u611f\u89c9\u6280\u672f\u4e0d\u662f\u90a3\u4e48\u5f3a\uff0c\u4f46\u662f\u8fd9\u8d27\u7684\u8d5b\u9053\u786e\u5b9e\u9009\u7684\u597d\uff0c\u8fd9\u70b9\u4e0d\u5f97\u4e0d\u670d\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>imes \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2022&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/557225"}],"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=557225"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/557225\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=557225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=557225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=557225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}