{"id":100,"date":"2024-12-02T23:02:50","date_gmt":"2024-12-02T15:02:50","guid":{"rendered":"https:\/\/diary.nifeng.win\/?p=100"},"modified":"2025-11-11T23:46:57","modified_gmt":"2025-11-11T15:46:57","slug":"linux%e4%b8%8b%e6%90%ad%e5%bb%badirectory-lister","status":"publish","type":"post","link":"https:\/\/diary.nifeng.win\/index.php\/2024\/12\/02\/linux%e4%b8%8b%e6%90%ad%e5%bb%badirectory-lister\/","title":{"rendered":"Linux\u4e0b\u642d\u5efaDirectory Lister\u76ee\u5f55\u5217\u8868\u7a0b\u5e8f"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-style-rounded\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"220\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2024\/12\/202004201587363859126202.png\" alt=\"\" class=\"wp-image-147\"\/><\/figure>\n\n\n\n<p>\u5e73\u65f6\u5728\u6298\u817eVPS\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u4f1a\u6d89\u53ca\u5230\u4e0b\u8f7d\u4e00\u4e9b\u811a\u672c\u548c\u6587\u4ef6\u3002\u56e0\u6b64\u81ea\u5df1\u4e00\u76f4\u60f3\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u4e0b\u8f7d\u7ad9\uff0c\u4f46\u662f\u5404\u79cd\u53ef\u4ee5\u770b\u5230\u7684\u5404\u79cd\u76ee\u5f55\u5217\u8868\u7a0b\u5e8f\uff0c\u8981\u4e48\u5360\u7528\u8d44\u6e90\u6bd4\u8f83\u591a\uff0c\u8981\u4e48\u6ca1\u6709\u65b9\u4fbf\u7684\u76f4\u94fe\u529f\u80fd\uff0c\u5c1d\u8bd5\u4e86\u4e00\u4e0b\u90fd\u4e0d\u592a\u6ee1\u610f\u3002\u627e\u4e86\u4e00\u5708\uff0c\u7ec8\u4e8e\u53d1\u73b0\u4e86\u4e00\u4e2a\u53eb\u505aDirectory Lister\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5c0f\u5de7\u3001\u8f7b\u91cf\u800c\u4e14\u7b80\u5355\uff0c\u5f88\u7b26\u5408\u6211\u7684\u9700\u6c42\uff0c\u4e8e\u662f\u5c31\u51b3\u5b9a\u4f7f\u7528Directory Lister\u642d\u5efa\u4e00\u4e2a\u81ea\u5df1\u7684\u4e0b\u8f7d\u7ad9\uff0c\u7b80\u5355\u5b9e\u7528\uff0c\u800c\u4e14\u53ef\u4ee5\u76f4\u94fe\uff0c\u7ba1\u7406\u8d77\u6765\u4e5f\u6bd4\u8f83\u65b9\u4fbf\u3002\u5177\u4f53\u7684\u4fe1\u606f\u53ef\u4ee5\u8bbf\u95ee\u5b83\u7684<a href=\"https:\/\/www.directorylister.com\/\">\u5b98\u65b9\u7f51\u7ad9<\/a>\u4e86\u89e3\u66f4\u591a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\u6ce8\u610f\u6240\u9700\u6761\u4ef6<\/mark><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">\u6ce8\u610f\u5bf9PHP\u7248\u672c\u7684\u8981\u6c42<\/mark><\/h3>\n\n\n\n<p>\u867d\u7136Directory Lister\u662f\u4e00\u4e2a\u5f88\u7b80\u5355\u7684PHP\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f46\u662f\u5efa\u8bae\u5728\u52a8\u624b\u4e4b\u524d\uff0c\u5148\u8ba4\u771f\u9605\u8bfb\u4e00\u4e0b\u5b98\u65b9\u7684<a href=\"https:\/\/docs.directorylister.com\/\">\u8bf4\u660e\u6587\u6863<\/a>\uff0c\u4e0d\u540c\u7684Directory Lister\u7248\u672c\u5bf9\u4e8ePHP\u7684\u7248\u672c\u8981\u6c42\u4e5f\u4e0d\u540c\u3002\u5927\u81f4\u6765\u8bf4\uff0cDirectory Lister\u76844.x\u7248\u672c\u9700\u8981PHP8.1\u200b\u4ee5\u4e0a\u7684\u7248\u672c\uff0c5.x\u4ee5\u4e0a\u7248\u672c\u9700\u8981PHP8.2\u4ee5\u4e0a\u7684\u7248\u672c\uff0c\u4f7f\u7528lnmp\u811a\u672c\u642d\u5efa\u7f51\u7ad9\u73af\u5883\u7684\u65f6\u5019\u9700\u8981\u6ce8\u610f\uff0c\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662f\u76ee\u524d\u6700\u65b0\u7684<a href=\"https:\/\/github.com\/DirectoryLister\/DirectoryLister\/releases\/download\/5.3.2\/DirectoryLister-5.3.2.tar.gz\">Directory Lister-5.3.2<\/a>\u7248\u672c\u3002\u5982\u679cPHP\u7248\u672c\u9700\u8981\u5347\u7ea7\uff0c\u53ef\u4ee5\u5728lnmp\u7684\u6587\u4ef6\u5939\u91cc\u9009\u62e9\u8fd0\u884c<mark style=\"background-color:#7bdcb5\" class=\"has-inline-color has-black-color\"><code>upgrade.sh<\/code><\/mark>\u200b\u3002\u5347\u7ea7\u811a\u672c\u4f1a\u63d0\u793a\u8f93\u5165\u9700\u8981\u5b89\u88c5\u7684PHP\u7248\u672c\uff0c\u8fd9\u65f6\u53ef\u4ee5\u53bb<a href=\"https:\/\/php.net\">php\u5b98\u7f51<\/a>\u67e5\u627e\uff0c\u8f93\u5165\u9700\u8981\u5b89\u88c5\u7684PHP\u7248\u672c\u53f7\uff0c\u811a\u672c\u4f1a\u542f\u52a8\u5347\u7ea7\u7a0b\u5e8f\u3002\u5f53\u7136\uff0c\u5982\u679c\u5728\u5b9d\u5854\u7b49\u53ef\u89c6\u5316\u9762\u677f\u7684\u73af\u5883\u4e0b\uff0c\u8fd9\u4e9b\u8981\u7b80\u5355\u548c\u65b9\u4fbf\u5f88\u591a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">\u9700\u8981fileinfo\u63d2\u4ef6<\/mark><\/h3>\n\n\n\n<p>Directory Lister\u9700\u8981nginx\u7684<mark style=\"background-color:#7bdcb5\" class=\"has-inline-color\"><code>fileinfo<\/code><\/mark>\u200b\u63d2\u4ef6\u3002\u5728\u5b9d\u5854\u9762\u677f\u4e0b\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728PHP\u7684\u63a7\u5236\u9762\u677f\u6269\u5c55\u91cc\u53bb\u5b89\u88c5\uff0c\u64cd\u4f5c\u5f88\u65b9\u4fbf\uff1b\u5728lnmp\u7684\u73af\u5883\u4e0b\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u9700\u8981\u8fdb\u5165lnmp\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u4fee\u6539lnmp.conf\u200b \u6587\u4ef6\u4e2dEnable_PHP_Fileinfo\u200b\u7684\u503c\u7531&#8221;n&#8221;\u6539\u4e3a&#8221;y&#8221;\uff0c\u7136\u540e\u8fd0\u884c.\/upgrade.sh\u200b\u5373\u53ef\u5b89\u88c5\u63d2\u4ef6\u3002\u4f46\u662f\uff0c\u8fd9\u6837\u505a\u7684\u8bdd\uff0c\u76f8\u5f53\u4e8e\u628aphp\u91cd\u65b0\u5b89\u88c5\u4e86\u4e00\u904d\uff0c\u65f6\u95f4\u6bd4\u8f83\u957f\u3002\u56e0\u6b64\uff0c\u5efa\u8bae\u5728\u5b89\u88c5lnmp\u73af\u5883\u65f6\u5c31\u4e00\u5e76\u628a\u4e00\u4e9b\u5e38\u7528\u7684\u63d2\u4ef6\u6269\u5c55\u5b89\u88c5\u4e0a\uff0c\u4e5f\u5c31\u662f\u4fee\u6539lnmp.conf\u6587\u4ef6\u5728\u5b89\u88c5php\u7684\u540c\u65f6\u5c31\u628a\u63d2\u4ef6\u4e5f\u5b89\u88c5\u597d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\u642d\u5efaDirectory Lister<\/mark><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">\u4e0b\u8f7d\u5e94\u7528\u7a0b\u5e8f<\/mark><\/h3>\n\n\n\n<p>\u6211\u4f7f\u7528\u7684\u662fDirectory Lister-5.3.2\u7248\u672c\uff0c\u76ee\u524d\u662f\u6700\u65b0\u7684\uff0c\u53ef\u4ee5\u53bb\u5b98\u65b9\u7f51\u7ad9\u4e0a\u4e0b\u8f7d<\/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:#F8F8F2;--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:#F8F8F2;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\u8f7dDirectory Lister\u6e90\u7801\nwget https:\/\/github.com\/DirectoryLister\/DirectoryLister\/releases\/download\/5.3.2\/DirectoryLister-5.3.2.tar.gz\n# \u89e3\u538b\u7f29\uff0c\u89e3\u538b\u540e\u8981\u786e\u4fdd\u6587\u4ef6\u5728\u7f51\u7ad9\u6587\u4ef6\u5939\u4e0b\ntar -zxvf DirectoryLister-5.3.2.tar.gz<\/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\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6272A4\"># \u4e0b\u8f7dDirectory Lister\u6e90\u7801<\/span><\/span>\n<span class=\"line\"><span style=\"color: #50FA7B\">wget<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #F1FA8C\">https:\/\/github.com\/DirectoryLister\/DirectoryLister\/releases\/download\/5.3.2\/DirectoryLister-5.3.2.tar.gz<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6272A4\"># \u89e3\u538b\u7f29\uff0c\u89e3\u538b\u540e\u8981\u786e\u4fdd\u6587\u4ef6\u5728\u7f51\u7ad9\u6587\u4ef6\u5939\u4e0b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #50FA7B\">tar<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #BD93F9\">-zxvf<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #F1FA8C\">DirectoryLister-5.3.2.tar.gz<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">\u914d\u7f6e.env\u6587\u4ef6<\/mark><\/h3>\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:#F8F8F2;--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:#F8F8F2;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># Here you can control Directory Lister configuration through environment\n# variables. See the configuration documentation for additional information:\n# https:\/\/docs.directorylister.com\/configuration\n\nAPP_DEBUG=false\nAPP_LANGUAGE=zh-CN\n\nDISPLAY_READMES=true\nREADMES_FIRST=false\nZIP_DOWNLOADS=false\n\nGOOGLE_ANALYTICS_ID=false\n\nMATOMO_ANALYTICS_URL=false\nMATOMO_ANALYTICS_ID=false\n\nSORT_ORDER=type\nREVERSE_SORT=false<\/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\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F8F8F2\"># Here you can control Directory Lister configuration through environment<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\"># variables. See the configuration documentation for additional information:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\"># https:<\/span><span style=\"color: #6272A4\">\/\/docs.directorylister.com\/configuration<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">APP_DEBUG=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">APP_LANGUAGE=zh-CN<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">DISPLAY_READMES=<\/span><span style=\"color: #BD93F9\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">READMES_FIRST=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">ZIP_DOWNLOADS=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">GOOGLE_ANALYTICS_ID=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">MATOMO_ANALYTICS_URL=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">MATOMO_ANALYTICS_ID=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">SORT_ORDER=type<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F8F8F2\">REVERSE_SORT=<\/span><span style=\"color: #BD93F9\">false<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5982\u679c\u8981\u4f7f\u7528\u4e2d\u6587\u754c\u9762\uff0c\u9700\u8981\u8bbe\u7f6e<code><mark style=\"background-color:#0693e3\" class=\"has-inline-color\">APP_LANGUAGE=zh-CN<\/mark><\/code>\uff0c<code><mark style=\"background-color:#f78da7\" class=\"has-inline-color\">ZIP_DOWNLOADS=false<\/mark><\/code>\u4e00\u5b9a\u8981\u8bbe\u7f6e\u597d\uff0c\u5426\u5219\u964c\u751f\u4eba\u53ef\u4ee5\u5c06\u4f60\u7684\u6574\u4e2a\u76ee\u5f55\u6253\u5305\u4e0b\u8f7d\uff0c\u8fd9\u4f1a\u4ea7\u751f\u975e\u5e38\u591a\u7684\u7f13\u5b58\u5783\u573e\u5360\u7528\u670d\u52a1\u5668\u6709\u9650\u7684\u786c\u76d8\u7a7a\u95f4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\u907f\u5751\u4e0e\u6392\u9519<\/mark><\/h2>\n\n\n\n<p>\u4e00\u822c\u6765\u8bf4\uff0cDirectory Lister\u5b89\u88c5\u597d\u4ee5\u540e\u53ef\u80fd\u51fa\u73b0\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">HTTP 500\u9519\u8bef<\/mark><\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u4e00\u822c\u662f\u7531\u4e8e\u7f51\u7ad9\u7528\u6237\u7684\u6743\u9650\u6216\u8005\u7528\u6237\u540d\u3001\u7528\u6237\u7ec4\u914d\u7f6e\u9519\u8bef\u4ea7\u751f\u7684\uff0c\u5b9d\u5854\u9762\u677f\u4e0b\u4e00\u822c\u6ca1\u6709\u95ee\u9898\uff0c\u6709\u95ee\u9898\u7684\u8bdd\u4e00\u822c\u51fa\u73b0\u5728lnmp\u7684\u73af\u5883\u4e0b\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"611\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2024\/12\/image.png\" alt=\"\" class=\"wp-image-101\" style=\"width:663px;height:auto\"\/><\/figure>\n\n\n\n<p>\u4e3b\u8981\u539f\u56e0\u662flnmp\u5728\u521b\u5efa\u7f51\u7ad9\u65f6\u5019\uff0c\u7528\u6237\u7ec4\u548c\u7528\u6237\u6743\u9650\u9519\u8bef\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"75\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2024\/12\/image-1.png\" alt=\"\" class=\"wp-image-102\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"179\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2024\/12\/image-2.png\" alt=\"\" class=\"wp-image-103\"\/><\/figure>\n\n\n\n<p>\u89e3\u51b3\u95ee\u9898\u7684\u529e\u6cd5\uff0c\u5c31\u662f\u5c06\u7f51\u7ad9\u76ee\u5f55\u53ca\u4e0b\u9762\u7684\u76ee\u5f55\u548c\u6587\u4ef6\u7684\u7528\u6237\u7ec4\u548c\u7528\u6237\u7edf\u4e00\u6539\u4e3awww:www<\/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:#F8F8F2;--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:#F8F8F2;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>chown -R www:www *<\/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\" style=\"background-color: #282A36\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #50FA7B\">chown<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #BD93F9\">-R<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #F1FA8C\">www:www<\/span><span style=\"color: #F8F8F2\"> <\/span><span style=\"color: #BD93F9; font-style: italic\">*<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"279\" src=\"https:\/\/diary.nifeng.win\/wp-content\/uploads\/2024\/12\/image-3.png\" alt=\"\" class=\"wp-image-104\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:#8ed1fc\" class=\"has-inline-color\">\u6e05\u9664\u7f13\u5b58\u6587\u4ef6<\/mark><\/h3>\n\n\n\n<p>\u9996\u6b21\u5b89\u88c5\u6ca1\u6709\u7f13\u5b58\u6587\u4ef6\uff0c\u4e5f\u4e0d\u9700\u8981\u6e05\u9664\u3002\u4f46\u662f\u5728\u5907\u4efd\u6062\u590d\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5b89\u88c5\u597d\u4e86Directory Lister\u628a\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u540e\uff0c\u6253\u5f00\u7f51\u9875\u4e5f\u4f1a\u51fa\u73b0http 500\u200b\u9519\u8bef\uff0c\u8fd9\u5c31\u662f\u56e0\u4e3a\u7f13\u5b58\u7684\u95ee\u9898\uff0c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b<\/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># \u8fdb\u5165\u7f51\u7ad9\u7684\u7f13\u5b58\u76ee\u5f55\ncd \/\u7f51\u7ad9\u76ee\u5f55\/app\/cache\n# \u5220\u9664\u7f13\u5b58\u6587\u4ef6\nrm -rf *<\/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\"># \u8fdb\u5165\u7f51\u7ad9\u7684\u7f13\u5b58\u76ee\u5f55<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">cd <\/span><span style=\"color: #F286C4\">\/<\/span><span style=\"color: #F6F6F4\">\u7f51\u7ad9\u76ee\u5f55<\/span><span style=\"color: #F286C4\">\/<\/span><span style=\"color: #F6F6F4\">app<\/span><span style=\"color: #F286C4\">\/<\/span><span style=\"color: #F6F6F4\">cache<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\"># \u5220\u9664\u7f13\u5b58\u6587\u4ef6<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F6F6F4\">rm <\/span><span style=\"color: #F286C4\">-<\/span><span style=\"color: #F6F6F4\">rf <\/span><span style=\"color: #F286C4\">*<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e73\u65f6\u5728\u6298\u817eVPS\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u4f1a\u6d89\u53ca\u5230\u4e0b\u8f7d\u4e00\u4e9b\u811a\u672c\u548c\u6587\u4ef6\u3002\u56e0\u6b64\u81ea\u5df1\u4e00\u76f4\u60f3\u505a\u4e00\u4e2a\u7b80\u5355\u7684\u4e0b\u8f7d\u7ad9\uff0c\u4f46\u662f\u5404\u79cd\u53ef\u4ee5\u770b\u5230\u7684\u5404\u79cd\u76ee\u5f55\u5217\u8868\u7a0b\u5e8f\uff0c\u8981\u4e48\u5360\u7528\u8d44\u6e90\u6bd4\u8f83\u591a\uff0c\u8981\u4e48\u6ca1\u6709\u65b9\u4fbf\u7684&#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-100","post","type-post","status-publish","format-standard","hentry","category-study"],"_links":{"self":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/100","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=100"}],"version-history":[{"count":32,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diary.nifeng.win\/index.php\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}