{"id":637,"date":"2021-10-30T02:18:00","date_gmt":"2021-10-30T02:18:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=637"},"modified":"2021-10-30T02:18:00","modified_gmt":"2021-10-30T02:18:00","slug":"637","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/10\/30\/637\/","title":{"rendered":"\u5b9d\u5854\u9762\u677f\u89e3\u9501 Nginx \u9632\u706b\u5899\u53ca\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868[\u8f6c\u5e16]"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/2092411062.webp\" alt=\"\u5b9d\u5854.png_new.webp\" title=\"\u5b9d\u5854.png_new.webp\"><\/p>\n<ul>\n<li>\u817e\u8baf\u539f\u6587 <a href=\"https:\/\/cloud.tencent.com\/developer\/article\/1864357\">https:\/\/cloud.tencent.com\/developer\/article\/1864357<\/a><\/li>\n<\/ul>\n<h1>\u5b9d\u5854\u9762\u677f\u89e3\u9501 Nginx \u9632\u706b\u5899\u53ca\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868<\/h1>\n<h1>\u8bf4\u660e<\/h1>\n<ul>\n<li>\u6d4b\u8bd5\u73af\u5883\uff1a <strong>Ubuntu \/ Debian \/ CentOS<\/strong><\/li>\n<li>\u6d4b\u8bd5\u65f6\u95f4\uff1a <strong>2021-01-14<\/strong><\/li>\n<li>\u5b9d\u5854\u7248\u672c\uff1a <strong>7.4.5 \u2013 7.5.1<\/strong><\/li>\n<li>\u4ec5\u6d4b\u8bd5\u4e86 <strong>Nginx\u9632\u706b\u5899<\/strong> \u53ca <strong>\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868<\/strong> \u4e24\u6b3e\u63d2\u4ef6\uff0c\u5176\u5b83\u6536\u8d39\u63d2\u4ef6\u672a\u6d4b\u8bd5<\/li>\n<li>\u5176\u5b83\u7cfb\u7edf\u53ca\u7248\u672c\u672a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u8bf7\u81ea\u884c\u9a8c\u8bc1\uff0c\u8bf7\u52ff\u5728\u751f\u4ea7\u73af\u5883\u4e0b\u8fdb\u884c\u6d4b\u8bd5\uff01<\/li>\n<li><strong>\u6ce8\u610f\uff1a\u4fee\u6539\u4ee3\u7801\u540e\u9700\u8981\u91cd\u542f\u9762\u677f\u670d\u52a1\u624d\u80fd\u4f7f\u5176\u751f\u6548<\/strong><\/li>\n<\/ul>\n<h1>\u5f00\u59cb<\/h1>\n<h2>Nginx\u9632\u706b\u5899<\/h2>\n<p>\u6253\u5f00\u76ee\u5f55 \/www\/server\/panel\/class \u627e\u5230\u5e76\u7f16\u8f91 <strong>panelplugin.py<\/strong> \u6587\u4ef6 \u4f7f\u7528 Ctrl+F \u641c\u7d22\u5e76\u627e\u5230<br \/><strong>softList[\u2018list\u2019] = tmpList<\/strong> \u8fd9\u6bb5\u4ee3\u7801\uff0c\u5728\u5176\u4e0b\u65b9\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801<\/p>\n<pre><code>\n\nsoftList['pro'] = 1\n        for soft in softList['list']:\n            soft['endtime'] = 0\n<\/code><\/pre>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/3866253211.webp\" alt=\"11.webp\" title=\"11.webp\"><\/p>\n<p>\u4fee\u6539\u5b8c\u6210\u540e\u91cd\u542f\u9762\u677f\uff0c\u91cd\u542f\u5b8c\u6210\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u6536\u8d39\u7684\u63d2\u4ef6\u4e86\uff0c <strong>Nginx\u9632\u706b\u5899<\/strong> \u4e5f\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u4f7f\u7528<\/p>\n<h2>\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868<\/h2>\n<p>\u5982\u679c\u9700\u8981\u4f7f\u7528\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868\u8fd8\u9700\u53e6\u5916\u4fee\u6539\u4e00\u6b21\u4ee3\u7801\uff1a \u5b89\u88c5\u597d\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868\u63d2\u4ef6\u540e\u6253\u5f00 \/www\/server\/panel\/plugin\/total \u76ee\u5f55\u5e76\u7f16\u8f91<br \/><strong>total_main.py<\/strong> \u6587\u4ef6 \u4f7f\u7528 Ctrl+F \u641c\u7d22\u5e76\u627e\u5230 **if \u2018bt_total\u2019 in session: return<br \/>public.returnMsg(True,\u2019OK!\u2019);** \u8fd9\u6bb5\u4ee3\u7801 \u5728\u8fd9\u6bb5\u4ee3\u7801\u524d\u52a0\u4e0a#\u5c06\u5176\u6ce8\u91ca\u6389\uff0c\u5e76\u5728\u5176\u4e0b\u65b9\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code>\n\nsession['bt_total'] = True\n        return public.returnMsg(True,'OK!');\n<\/code><\/pre>\n<p>\u793a\u4f8b\uff1a<br \/><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/10\/2351098866.webp\" alt=\"22.webp\" title=\"22.webp\"><\/p>\n<p>\u7136\u540e\u518d\u6b21\u91cd\u542f\u9762\u677f\uff0c\u5373\u53ef\u4f7f\u7528 <strong>\u7f51\u7ad9\u76d1\u63a7\u62a5\u8868\u63d2\u4ef6<\/strong> \u4e86.<\/p>\n<hr \/>\n<h2>\u5b9d\u5854\u9762\u677f\u8df3\u8fc7\u624b\u673a\u7ed1\u5b9a<\/h2>\n<pre><code>sed -i \"s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g\" \/www\/server\/panel\/BTPanel\/static\/js\/index.js\n\n# \u6700\u65b0\u7248BT\u5b9d\u5854\u9762\u677f\u636e\u8bf4\u5149\u8f93\u5165\u4e0a\u9762\u7684\u547d\u4ee4\u8fd8\u4e0d\u884c\uff0c\u8bf4\u65b0\u7248\u591a\u4e86\u4e2abind\u9875\u9762\uff0c\u56e0\u6b64\u8fd8\u9700\u8981\u518d\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\n\nrm -rf \/www\/server\/panel\/data\/bind.pl<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u817e\u8baf\u539f\u6587 https:\/\/cloud.tencent.com\/developer\/article\/1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12],"tags":[],"class_list":["post-637","post","type-post","status-publish","format-standard","hentry","category-linux","category-learn"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=637"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/637\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}