{"id":208,"date":"2025-11-15T11:58:13","date_gmt":"2025-11-15T03:58:13","guid":{"rendered":"https:\/\/diary.nifeng.win\/?p=208"},"modified":"2025-11-15T12:51:44","modified_gmt":"2025-11-15T04:51:44","slug":"docker%e6%90%ad%e5%bb%balsky-pro%e5%85%b0%e7%a9%ba%e5%9b%be%e5%ba%8a","status":"publish","type":"post","link":"https:\/\/diary.nifeng.win\/index.php\/2025\/11\/15\/docker%e6%90%ad%e5%bb%balsky-pro%e5%85%b0%e7%a9%ba%e5%9b%be%e5%ba%8a\/","title":{"rendered":"Docker\u642d\u5efaLsky-pro\u5170\u7a7a\u56fe\u5e8a"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1300\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/go5v4n-0-scaled.webp\" alt=\"\" class=\"wp-image-215\" srcset=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/go5v4n-0-scaled.webp 2560w, https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/go5v4n-0-1536x780.webp 1536w, https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/go5v4n-0-2048x1040.webp 2048w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n\n\n\n<p><strong>Lsky-Pro<\/strong>\uff08\u5170\u7a7a\u56fe\u5e8a\uff09\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u56fe\u5e8a\u5de5\u5177\u3002\u4e8b\u60c5\u7684\u8d77\u56e0\u662f\u67d0\u5929\u5728nodeseek\u4e0a\u53d1\u4e2a\u5e16\u5b50\uff0c\u4ee5\u524d\u4ece\u6765\u6ca1\u6709\u60f3\u8fc7\u53d1\u56fe\u7247\uff0c\u8fd9\u6b21\u7a81\u7136\u9700\u8981\u653e\u4e24\u5f20\u56fe\u7247\u4e0a\u53bb\uff0c\u7ed3\u679c\u50bb\u773c\u4e86\uff0c\u56e0\u4e3a\u6211\u6ca1\u6709\u56fe\u5e8a\u3002\u7528\u514d\u8d39\u7684\u603b\u89c9\u5f97\u4e0d\u653e\u5fc3\uff0c\u7528\u6536\u8d39\u7684\u4e5f\u89c9\u5f97\u4e0d\u81ea\u5728\uff0c\u5927\u6982\u662f\u6298\u817e\u60ef\u4e86\uff0c\u53ef\u80fd\u4e5f\u662f\u60f3\u7ed9\u81ea\u5df1\u627e\u70b9\u4e8b\u505a\uff0c\u7f51\u4e0a\u641c\u7d22\u4e86\u4e00\u4f1a\u513f\uff0c\u9009\u4e2d\u4e86\u8fd9\u4e2a\u8c8c\u4f3c\u989c\u503c\u548c\u529f\u80fd\u8fd8\u4e0d\u9519\u7684lsky-pro\uff0c\u4e5f\u5c31\u662f\u5170\u7a7a\u56fe\u5e8a\u3002\u53c2\u8003\u4e86\u4e00\u4e9b\u6587\u7ae0\uff0c\u5176\u5b9e\u4e5f\u6ca1\u4ec0\u4e48\u5f88\u96be\uff0c\u4f46\u6298\u817e\u4e86\u4e24\u5929\uff0c\u4e5f\u9047\u5230\u4e86\u4e0d\u5c11\u95ee\u9898\uff0c\u6700\u540e\u57fa\u672c\u4e0a\u90fd\u89e3\u51b3\u4e86\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u4e00\u4e9b\u914d\u7f6e\u548c\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5Docker\u548cDocker-Compose<\/h2>\n\n\n\n<p>\u6211\u7528\u7684\u662fUbuntu 20.04\u7cfb\u7edf\uff0c\u81ea\u4eceCentos7\u4e0d\u518d\u7ef4\u62a4\u4ee5\u540e\u5c31\u5f88\u4e0d\u4e60\u60ef\uff0c\u6ca1\u6709\u529e\u6cd5\u53ea\u597d\u9009\u62e9\u66ff\u4ee3\u54c1\uff0cDebian\u548cUbuntu\u4e4b\u95f4\u6bd4\u8f83\u4e86\u4e00\u4e0b\uff0c\u8fd8\u662f\u9009\u62e9\u4e86\u770b\u4e0a\u53bb\u66f4\u53cb\u597d\u4e00\u4e9b\u7684Ubuntu\uff0c\u672c\u6587\u7684docker\u5b89\u88c5\u5c31\u662f\u57fa\u4e8eUbuntu\u7cfb\u7edf\u7684\uff0c\u5176\u5b9e\u4e0b\u9762\u7684\u4e1c\u897f\u5bf9Centos7\u4e5f\u662f\u9002\u7528\u7684\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Monaspace-Krypton.woff\" style=\"font-size:.875rem;font-family:Code-Pro-Monaspace-Krypton,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># \u4e0b\u8f7ddocker\u5b89\u88c5\u811a\u672c\ncurl -fsSL get.docker.com -o get-docker.sh\n# \u5b89\u88c5docker\nsh get-docker.sh\n# \u542f\u52a8docker\u5e76\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\nsystemctl start docker\nsystemctl enable docker\n# \u4e0b\u8f7ddocker-compose\u4e8c\u8fdb\u5236\u6587\u4ef6\ncurl -L \"https:\/\/github.com\/docker\/compose\/releases\/download\/v2.2.2\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose\n# \u8d4b\u4e88\u6267\u884c\u6743\u9650\nchmod +x \/usr\/local\/bin\/docker-compose\n# \u521b\u5efa\u8f6f\u8fde\u63a5\nln -s \/usr\/local\/bin\/docker-compose \/usr\/bin\/docker-compose\n# \u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f\ndocker-compose version\n## \u5982\u679c\u8fd4\u56de\u663e\u793a\u4e86\u7248\u672c\u53f7\u5c31\u662f\u5b89\u88c5\u6210\u529f\u4e86<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #7B7F8B\"># \u4e0b\u8f7ddocker\u5b89\u88c5\u811a\u672c<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">curl<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-fsSL<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">get.docker.com<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-o<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">get-docker.sh<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u5b89\u88c5docker<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">sh<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">get-docker.sh<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u542f\u52a8docker\u5e76\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">systemctl<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">start<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">docker<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">systemctl<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">enable<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">docker<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u4e0b\u8f7ddocker-compose\u4e8c\u8fdb\u5236\u6587\u4ef6<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">curl<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-L<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #E7EE98\">https:\/\/github.com\/docker\/compose\/releases\/download\/v2.2.2\/docker-compose-$(<\/span><span style=\"color: #62E884\">uname<\/span><span style=\"color: #E7EE98\"> <\/span><span style=\"color: #BF9EEE\">-s<\/span><span style=\"color: #E7EE98\">)-$(<\/span><span style=\"color: #62E884\">uname<\/span><span style=\"color: #E7EE98\"> <\/span><span style=\"color: #BF9EEE\">-m<\/span><span style=\"color: #E7EE98\">)<\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-o<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">\/usr\/local\/bin\/docker-compose<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u8d4b\u4e88\u6267\u884c\u6743\u9650<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">chmod<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">+x<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">\/usr\/local\/bin\/docker-compose<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u521b\u5efa\u8f6f\u8fde\u63a5<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">ln<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-s<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">\/usr\/local\/bin\/docker-compose<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">\/usr\/bin\/docker-compose<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\"># \u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">docker-compose<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">version<\/span><\/span>\n<span class=\"line\"><span style=\"color: #7B7F8B\">## \u5982\u679c\u8fd4\u56de\u663e\u793a\u4e86\u7248\u672c\u53f7\u5c31\u662f\u5b89\u88c5\u6210\u529f\u4e86<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u914d\u7f6eDocker-Compose\u6587\u4ef6<\/h2>\n\n\n\n<p>\u5efa\u7acb\u7f51\u7ad9\u7684\u8fc7\u7a0b\u5c31\u4e0d\u5217\u51fa\u6765\u4e86\uff0c\u6211\u662f\u7528lnmp\u5efa\u7acb\u7684\u7f51\u7ad9\uff0c\u4f7f\u7528lnmp vhost add\u7b49\u547d\u4ee4\u5373\u53ef\uff1b\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b9d\u5854\u7b49\u53ef\u89c6\u5316\u5efa\u7ad9\u5de5\u5177\uff0c\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002\u6211\u4e60\u60ef\u628a\u914d\u7f6e\u6587\u4ef6\u4ee5\u53ca\u6570\u636e\u6587\u4ef6\u90fd\u653e\u5230\u7f51\u7ad9\u76ee\u5f55\u4e0b\uff0c\u8fd9\u6837\u65b9\u4fbf\u4ee5\u540e\u5907\u4efd\u548c\u6062\u590d\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Monaspace-Krypton.woff\" style=\"font-size:.875rem;font-family:Code-Pro-Monaspace-Krypton,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># \u5efa\u7acbdocker-compose.yml\u914d\u7f6e\u6587\u4ef6\nnano docker-compose.yml<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #7B7F8B\"># \u5efa\u7acbdocker-compose.yml\u914d\u7f6e\u6587\u4ef6<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">nano<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">docker-compose.yml<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5c06\u4ee5\u4e0b\u4e00\u6bb5\u914d\u7f6e\u5199\u5165\u5176\u4e2d\uff0c\u6ce8\u610f<code><mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">volumes<\/mark><\/code>\u3001<code><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">MYSQL_ROOT_PASSWORD<\/mark><\/code>\u7b49\u8fd9\u4e9b\u5b57\u6bb5\u8981\u76f8\u5e94\u4f5c\u51fa\u4fee\u6539<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Monaspace-Krypton.woff\" style=\"font-size:.875rem;font-family:Code-Pro-Monaspace-Krypton,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>version: '3'\nservices:\n  lskypro:\n    image: halcyonazure\/lsky-pro-docker:latest\n    restart: unless-stopped\n    hostname: lskypro\n    container_name: lskypro\n    environment:\n      - WEB_PORT=8089\n    volumes:\n      - \/home\/wwwroot\/xxx.xxx.xxx\/web:\/var\/www\/html\/\n    ports:\n      - \"9080:8089\"\n    networks:\n      - lsky-net\n  # \u6ce8\uff1aarm64\u7684\u65e0\u6cd5\u4f7f\u7528\u8be5\u955c\u50cf\uff0c\u8bf7\u9009\u62e9sqlite\u6216\u81ea\u5efa\u6570\u636e\u5e93\n  mysql-lsky:\n    image: mysql:5.7.22\n    restart: unless-stopped\n    # \u4e3b\u673a\u540d\uff0c\u53ef\u4f5c\u4e3a\"\u6570\u636e\u5e93\u8fde\u63a5\u5730\u5740\"\n    hostname: mysql-lsky\n    # \u5bb9\u5668\u540d\u79f0\n    container_name: mysql-lsky\n    # \u4fee\u6539\u52a0\u5bc6\u89c4\u5219\n    command: --default-authentication-plugin=mysql_native_password\n    volumes:\n      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/data:\/var\/lib\/mysql\n      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/conf:\/etc\/mysql\n      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/log:\/var\/log\/mysql\n    environment:\n      MYSQL_ROOT_PASSWORD: J8jTMkXbw5uiTb # \u6570\u636e\u5e93root\u7528\u6237\u5bc6\u7801\uff0c\u81ea\u884c\u4fee\u6539\n      MYSQL_DATABASE: lsky-data # \u53ef\u4f5c\u4e3a\"\u6570\u636e\u5e93\u540d\u79f0\/\u8def\u5f84\"\n    networks:\n      - lsky-net\n\nnetworks:\n  lsky-net: {}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F6F6F4\">version: &#39;<\/span><span style=\"color: #BF9EEE\">3<\/span><span style=\"color: #F6F6F4\">&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">services:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  lskypro:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    image: halcyonazure\/lsky-pro-docker:latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    restart: unless-stopped<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    hostname: lskypro<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    container_name: lskypro<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    environment:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - WEB_PORT=<\/span><span style=\"color: #BF9EEE\">8089<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    volumes:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - \/home\/wwwroot\/xxx.xxx.xxx\/web:\/var\/www\/html\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    ports:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - <\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #E7EE98\">9080:8089<\/span><span style=\"color: #DEE492\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    networks:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - lsky-net<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  # \u6ce8\uff1aarm<\/span><span style=\"color: #BF9EEE\">64<\/span><span style=\"color: #F6F6F4\">\u7684\u65e0\u6cd5\u4f7f\u7528\u8be5\u955c\u50cf\uff0c\u8bf7\u9009\u62e9sqlite\u6216\u81ea\u5efa\u6570\u636e\u5e93<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  mysql-lsky:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    image: mysql:<\/span><span style=\"color: #BF9EEE\">5.7<\/span><span style=\"color: #F6F6F4\">.<\/span><span style=\"color: #BF9EEE\">22<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    restart: unless-stopped<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    # \u4e3b\u673a\u540d\uff0c\u53ef\u4f5c\u4e3a<\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #E7EE98\">\u6570\u636e\u5e93\u8fde\u63a5\u5730\u5740<\/span><span style=\"color: #DEE492\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    hostname: mysql-lsky<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    # \u5bb9\u5668\u540d\u79f0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    container_name: mysql-lsky<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    # \u4fee\u6539\u52a0\u5bc6\u89c4\u5219<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    command: --default-authentication-plugin=mysql_native_password<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    volumes:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/data:\/var\/lib\/mysql<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/conf:\/etc\/mysql<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - \/home\/wwwroot\/xxx.xxx.xxx\/mysql\/log:\/var\/log\/mysql<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    environment:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      MYSQL_ROOT_PASSWORD: J<\/span><span style=\"color: #BF9EEE\">8<\/span><span style=\"color: #F6F6F4\">jTMkXbw<\/span><span style=\"color: #BF9EEE\">5<\/span><span style=\"color: #F6F6F4\">uiTb # \u6570\u636e\u5e93root\u7528\u6237\u5bc6\u7801\uff0c\u81ea\u884c\u4fee\u6539<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      MYSQL_DATABASE: lsky-data # \u53ef\u4f5c\u4e3a<\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #E7EE98\">\u6570\u636e\u5e93\u540d\u79f0\/\u8def\u5f84<\/span><span style=\"color: #DEE492\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    networks:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">      - lsky-net<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">networks:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  lsky-net: {}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u542f\u52a8lsky-pro<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Monaspace-Krypton.woff\" style=\"font-size:.875rem;font-family:Code-Pro-Monaspace-Krypton,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># \u542f\u52a8docker-compose\ndocker-compose up -d<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #7B7F8B\"># \u542f\u52a8docker-compose<\/span><\/span>\n<span class=\"line\"><span style=\"color: #62E884\">docker-compose<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #E7EE98\">up<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">-d<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u914d\u7f6e\u53cd\u5411\u4ee3\u7406<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6d6a\u8d39\u4e86\u6211\u5f88\u591a\u65f6\u95f4\u3002\u641c\u7d22\u4e86\u5f88\u591a\u7f51\u9875\uff0c\u4e5f\u53c2\u8003\u4e86\u7f51\u4e0a\u5404\u79cd\u53cd\u5411\u4ee3\u7406\u7684\u914d\u7f6e\uff0c\u4f46\u6700\u540e\u4e0d\u662f\u8fd9\u6837\u95ee\u9898\uff0c\u5c31\u662f\u90a3\u6837\u95ee\u9898\uff0c\u751a\u81f3\u4fee\u6539\u4e86\u4e00\u4e9b\u6e90\u6587\u4ef6\uff0c\u4f46\u90fd\u4e0d\u8d77\u4f5c\u7528\u3002\u6700\u8ba9\u4eba\u5934\u75db\u7684\u662f\uff0c\u70b9\u51fb\u6709\u7684\u94fe\u63a5\u540e\uff0c\u7ecf\u5e38\u4f1a\u6beb\u65e0\u5f81\u5146\u5730\u8df3\u8f6c\u5230127.0.0.1\u3002\u540e\u6765\u6211\u53cd\u601d\u4e86\u4e00\u4e0b\uff0c\u5e94\u8be5\u4e0d\u662f\u6e90\u6587\u4ef6\u7684\u95ee\u9898\uff0c\u5e94\u8be5\u662f\u53cd\u5411\u4ee3\u7406\u7684\u914d\u7f6e\u95ee\u9898\u3002\u628a\u4e0b\u9762\u7684\u914d\u7f6e\u63d2\u5165nginx\u7684\u914d\u7f6e\u6587\u4ef6\u5c31\u884c\uff0c\u4e3b\u8981\u662f<code><mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">proxy_set_header Host<\/mark><\/code>\u3001<code><mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\">proxy_set_header X-Forwarded-Proto<\/mark><\/code>\u8fd9\u4e24\u4e2a\u503c\u9700\u8981\u6dfb\u52a0\u548c\u4fee\u6539\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Hack\" style=\"font-size:.875rem;font-family:Code-Pro-Hack,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#f6f6f4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>location ^~ \/\n{\n    proxy_pass http:\/\/127.0.0.1:9080;\n    proxy_set_header Host $host;\n    proxy_set_header X-Real-IP $remote_addr;\n    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_set_header REMOTE-HOST $remote_addr;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection $connection_upgrade;\n    proxy_set_header X-Forwarded-Proto $scheme;\n    proxy_http_version 1.1;\n    # proxy_hide_header Upgrade;\n\n    add_header X-Cache $upstream_cache_status;\n\n    #Set Nginx Cache\n  \n  \n    set $static_filemeh0L3eE 0;\n    if ( $uri ~* \"\\.(gif|png|jpg|css|js|woff|woff2)$\" )\n    {\n        set $static_filemeh0L3eE 1;\n        expires 1m;\n        }\n    if ( $static_filemeh0L3eE = 0 )\n    {\n    add_header Cache-Control no-cache;\n    }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dracula-soft\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F6F6F4\">location ^~ \/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_pass<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">http<\/span><span style=\"color: #F286C4\">:<\/span><span style=\"color: #7B7F8B\">\/\/127.0.0.1:9080;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Host<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$host;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">X-Real-IP<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$remote_addr;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">X-Forwarded-For<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$proxy_add_x_forwarded_for;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">REMOTE-HOST<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$remote_addr;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Upgrade<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$http_upgrade;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Connection<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$connection_upgrade;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_set_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">X-Forwarded-Proto<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$scheme;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_http_version<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">1.1<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">#<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">proxy_hide_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Upgrade;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">add_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">X-Cache<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$upstream_cache_status;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">#Set<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Nginx<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Cache<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  <\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">  <\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">set<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$static_filemeh<\/span><span style=\"color: #BF9EEE\">0<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">L<\/span><span style=\"color: #BF9EEE\">3<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">eE<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">0<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">if<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">(<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$uri<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">~*<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">\\.<\/span><span style=\"color: #E7EE98\">(gif|png|jpg|css|js|woff|woff2)$<\/span><span style=\"color: #DEE492\">&quot;<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">set<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$static_filemeh0L3eE<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">1;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">expires<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">1m;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">        }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">if<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">(<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">$static_filemeh<\/span><span style=\"color: #BF9EEE\">0<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">L<\/span><span style=\"color: #BF9EEE\">3<\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">eE<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">=<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #BF9EEE\">0<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">add_header<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">Cache-Control<\/span><span style=\"color: #F6F6F4\"> <\/span><span style=\"color: #EE6666; font-style: italic; text-decoration: underline\">no-cache;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u548c\u914d\u7f6e<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u6570\u636e\u5e93\u7b49\u8bbe\u7f6e<\/h3>\n\n\n\n<p>\u7a0b\u5e8f\u8fd0\u884c\u8d77\u6765\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u5165\u7f51\u9875\u8fdb\u884c\u6700\u540e\u7684\u5b89\u88c5\u548c\u914d\u7f6e\uff0c\u8fd9\u4e2a\u9875\u9762\u4e00\u822c\u6ca1\u6709\u95ee\u9898<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"879\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/Snipaste_2024-11-21_17-08-24.png\" alt=\"\" class=\"wp-image-209\"\/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u9875\u9762\u9700\u8981\u505a\u76f8\u5e94\u4fee\u6539<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"793\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2025\/11\/Snipaste_2024-11-21_17-15-14.png\" alt=\"\" class=\"wp-image-210\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u7cfb\u7edf\u914d\u7f6e<\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u65f6\u5019\u5e94\u8be5\u53ef\u4ee5\u767b\u9646\u8fdb\u5165lsky-pro\u7684\u540e\u53f0\u9875\u9762\u4e86\uff0c\u540e\u7eed\u8fd8\u8981\u5bf9\u7cfb\u7edf\u3001\u89d2\u8272\u7ec4\u3001\u7528\u6237\u3001\u7b56\u7565\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\uff0c\u6700\u4e3b\u8981\u7684\u662f\u8981\u5173\u95ed\u6ce8\u518c\uff0c\u53ef\u4ee5\u89c6\u60c5\u51b5\u5bf9\u7528\u6237\u521d\u59cb\u5bb9\u91cf\u8fd9\u4e9b\u505a\u4fee\u6539\uff0c\u5982\u679c\u53ea\u662f\u81ea\u5df1\u4f7f\u7528\uff0c\u5173\u95ed\u201c\u5141\u8bb8\u6e38\u5ba2\u4e0a\u4f20\u201d\uff0c\u8fd9\u4e9b\u5c31\u4e0d\u518d\u8be6\u7ec6\u8d58\u8ff0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lsky-Pro\uff08\u5170\u7a7a\u56fe\u5e8a\uff09\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u56fe\u5e8a\u5de5\u5177\u3002\u4e8b\u60c5\u7684\u8d77\u56e0\u662f\u67d0\u5929\u5728nodeseek\u4e0a\u53d1\u4e2a\u5e16\u5b50\uff0c\u4ee5\u524d\u4ece\u6765\u6ca1\u6709\u60f3\u8fc7\u53d1\u56fe\u7247\uff0c\u8fd9\u6b21\u7a81\u7136\u9700\u8981\u653e\u4e24\u5f20\u56fe\u7247\u4e0a\u53bb\uff0c\u7ed3\u679c\u50bb\u773c\u4e86\uff0c&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-study"],"_links":{"self":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":6,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/208\/revisions\/221"}],"wp:attachment":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}