{"id":12732,"date":"2024-01-08T00:24:07","date_gmt":"2024-01-07T16:24:07","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=12732"},"modified":"2025-07-17T19:40:00","modified_gmt":"2025-07-17T11:40:00","slug":"%e5%9f%ba%e4%ba%8e-lnmp-%e6%89%8b%e5%8a%a8%e9%83%a8%e7%bd%b2-wordpress-%e5%8f%8a%e8%bf%81%e7%a7%bb%ef%bc%88%e5%be%85%e5%86%99%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=12732","title":{"rendered":"\u57fa\u4e8e LNMP \u624b\u52a8\u90e8\u7f72 WordPress \u53ca\u8fc1\u79fb\u65b9\u6cd5"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=12732\/#%E7%8E%AF%E5%A2%83\" >\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=12732\/#LNMP_%E9%83%A8%E7%BD%B2\" >LNMP \u90e8\u7f72<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.iyatt.com\/?p=12732\/#WordPress_%E5%AE%89%E8%A3%85\" >WordPress \u5b89\u88c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.iyatt.com\/?p=12732\/#%E9%85%8D%E7%BD%AE_https\" >\u914d\u7f6e https<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.iyatt.com\/?p=12732\/#WordPress_%E8%BF%81%E7%A7%BB\" >WordPress \u8fc1\u79fb<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E7%8E%AF%E5%A2%83\"><\/span>\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ul>\n<li>Ubuntu 24.04 x86_64\uff082025\/7\/17 \u6d4b\u8bd5\uff09<\/li>\n<\/ul>\n<p>\u5168\u7a0b\u4f7f\u7528\u975e root \u7528\u6237\u64cd\u4f5c\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"LNMP_%E9%83%A8%E7%BD%B2\"><\/span>LNMP \u90e8\u7f72<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u66f4\u65b0\u8f6f\u4ef6\u7d22\u5f15<\/p>\n<pre><code class=\"language-bash\">sudo apt update -y<\/code><\/pre>\n<p>\u5b89\u88c5 Nginx<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y nginx<\/code><\/pre>\n<p>\u5b89\u88c5\u597d\u540e\u4f1a\u81ea\u52a8\u542f\u52a8 Nginx \u670d\u52a1\uff0c\u7528\u6d4f\u89c8\u5668\u53ef\u4ee5\u8bbf\u95ee\uff0c\u9ed8\u8ba4\u5f00\u542f\u7684 http 80 \u7aef\u53e3<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704684869509.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 838px; --smush-placeholder-aspect-ratio: 838\/336;\" \/><\/p>\n<p>\u5b89\u88c5 PHP \u53ca\u9700\u8981\u7528\u5230\u7684\u4e00\u4e9b PHP \u6a21\u5757\u3002<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y php-common php-cli php-fpm php-mysql php-mbstring php-curl php-gd php-twig php-json php-opcache php-readline php-xml php-zip php-gmp php-imap php-intl php-imagick<\/code><\/pre>\n<p>\u5bf9\u4e8e WordPress \u6765\u8bf4\uff0c\u4e0a\u9762\u7684\u7ec4\u4ef6\u8db3\u591f\u4e86\uff0c\u5982\u679c\u8981\u88c5 NextCloud\uff0c\u53ef\u4ee5\u518d\u5b89\u88c5\u4e0b\u9762\u7684\u7ec4\u4ef6<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y php php-common php-curl php-xml php-fileinfo php-gd php-json php-mbstring php-posix php-simplexml php-xmlreader php-xmlwriter php-zip php-mysql php-intl php-ldap php-smbclient php-ftp php-imap php-bcmath php-gmp php-exif php-apcu php-memcached php-redis php-imagick ffmpeg<\/code><\/pre>\n<p>\u914d\u7f6e Nginx\uff0c\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\u4f4d\u4e8e <strong>\/etc\/nginx<\/strong> \u4e0b\u3002<br \/>\n<strong>\/etc\/nginx\/sites-available\/default<\/strong> \u662f Nginx \u63d0\u4f9b\u7684\u9ed8\u8ba4\u7f51\u7ad9\u914d\u7f6e\uff0c\u7136\u540e <strong>\/etc\/nginx\/sites-enabled\/<\/strong> \u4e0b\u4e5f\u6709\u4e2a default \u6587\u4ef6\uff0c\u4f46\u5176\u5b9e\u662f\u524d\u8005\u7684\u8f6f\u8fde\u63a5\uff0c<strong>sites-enabled<\/strong>\u4e2d\u653e\u7684\u662f\u542f\u7528\u7684\u7f51\u7ad9\u914d\u7f6e\uff0c\u5c06\u8981\u542f\u52a8\u7684\u914d\u7f6e\u5728\u91cc\u9762\u521b\u5efa\u8f6f\u94fe\u63a5\u5c31\u884c\u3002\u5f00\u5934\u5b89\u88c5 Nginx \u540e\u7528\u6d4f\u89c8\u5668\u53ef\u4ee5\u8bbf\u95ee\u7684\u9875\u9762\u5c31\u662f\u8fd9\u4e2a\u9ed8\u8ba4\u914d\u7f6e\uff0c\u91cc\u9762\u5199\u4e86\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\uff0c\u8bbf\u95ee\u5230\u7684\u7f51\u9875\u5c31\u662f\u9ed8\u8ba4\u63d0\u4f9b\u7684\u793a\u4f8b\u9875\u9762\u3002\u8fd9\u91cc\u9700\u8981\u5148\u914d\u7f6e PHP \u89e3\u6790\uff0c\u540e\u9762\u6839\u636e\u9700\u8981\u8fd8\u8981\u914d\u7f6e\u57df\u540d\uff0cSSL \u652f\u6301\uff08https\uff09\u7b49\u7b49\u3002<br \/>\n\u53ef\u4ee5\u989d\u5916\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff0c\u518d\u521b\u5efa\u542f\u7528\u7684\u8f6f\u8fde\u63a5\uff0c\u6216\u8005\u76f4\u63a5\u4fee\u6539\u9ed8\u8ba4\u7684\uff0c\u4e3a\u4e86\u7701\u4e8b\uff0c\u8fd9\u91cc\u76f4\u63a5\u91cd\u5199\u9ed8\u8ba4\u914d\u7f6e\uff0c\u539f\u672c\u7684\u5185\u5bb9\u5220\u6389\u3002<br \/>\n\u7528 sudo \u63d0\u6743\u7f16\u8f91 \/etc\/nginx\/sites-available\/default \u6587\u4ef6\uff0c\u5220\u9664\u539f\u6709\u5185\u5bb9\uff0c\u5199\u5165\u53c2\u8003<\/p>\n<pre><code>server {\n    listen 80 default_server; # \u76d1\u542c IPv4 \u7684 80 \u7aef\u53e3\uff0c\u5e76\u4f5c\u4e3a\u9ed8\u8ba4\u670d\u52a1\u5668\n    listen [::]:80 default_server; # IPv6\n    server_name _; # \u4e00\u4e2a\u4e0b\u5212\u7ebf\u662f\u901a\u914d\u7b26\uff0c\u6307\u4efb\u610f\u57df\u540d\u90fd\u53ef\u8bbf\u95ee\uff0c\u4e00\u822c\u662f\u6d4b\u8bd5\u65f6\u4f7f\u7528 IP \u8bbf\u95ee\uff0c\u90e8\u7f72\u5230\u516c\u7f51\u6362\u6210\u57df\u540d\u3002\n    root \/var\/www\/wordpress; # \u7f51\u7ad9\u6839\u76ee\u5f55\uff0c\u81ea\u884c\u8bbe\u5b9a\n\n    # \u4ee5\u4e0b\u7684\u914d\u7f6e\u4fe1\u606f\u57fa\u672c\u53ef\u4ee5\u4e0d\u7528\u6539\u4e86\uff0c\u590d\u5236\u8fc7\u53bb\u5c31\u80fd\u7528\n    index index.html index.htm index.php;\n    location \/\n    {\n        try_files $uri $uri\/ \/index.php?$args $uri\/ =404;\n    }\n    rewrite \/wp-admin$ $scheme:\/\/$host$uri\/ permanent;\n\n    location ~ \\.php$ {\n        #include snippets\/fastcgi-php.conf;\n\n        # \u4f7f\u7528php-fpm(\u6216\u5176\u4ed6unix\u5957\u63a5\u5b57):\n        fastcgi_pass unix:\/run\/php\/php-fpm.sock;\n        # \u4f7f\u7528php-cgi(\u6216\u5176\u4ed6tcp\u5957\u63a5\u5b57):\n        #fastcgi_pass 127.0.0.1:9000;\n        # \u8bbe\u7f6e\u811a\u672c\u6587\u4ef6\u8bf7\u6c42\u7684\u8def\u5f84\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        # \u5f15\u5165fastcgi\u7684\u914d\u7f6e\u6587\u4ef6 \n        include fastcgi_params;\n\n        fastcgi_intercept_errors on; # \u662f\u5426\u62e6\u622a CGI \u9519\u8bef\uff0c\u62e6\u622a\u4f1a\u751f\u6210\u5bf9\u5e94\u7684\u9519\u8bef\u9875\u9762\uff0c\u90e8\u7f72\u4f7f\u7528\u4e00\u822c\u6253\u5f00\n        fastcgi_buffers 4 16k; # \u8bbe\u7f6e 4 \u4e2a\u7f13\u51b2\u533a\uff0c\u6bcf\u4e2a 16KB\n        fastcgi_connect_timeout 300; # \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\n        fastcgi_send_timeout 300; # \u53d1\u9001\u8d85\u65f6\u65f6\u95f4\n        fastcgi_read_timeout 300; # \u8bfb\u53d6\u8d85\u65f6\u65f6\u95f4\n    }\n}<\/code><\/pre>\n<p>\u4fee\u6539\u914d\u7f6e\u540e\u9700\u8981\u91cd\u542f Nginx \u751f\u6548\uff08\u5982\u679c\u914d\u7f6e\u6709\u5199\u9519\u7684\uff0c\u91cd\u542f\u4f1a\u5931\u8d25\uff0c\u6210\u529f\u4ec0\u4e48\u90fd\u4e0d\u663e\u793a\uff09<\/p>\n<pre><code class=\"language-bash\">sudo systemctl restart nginx<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704689185952.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 528px; --smush-placeholder-aspect-ratio: 528\/89;\" \/><\/p>\n<p>\u9a8c\u8bc1 PHP \u89e3\u6790\u662f\u5426\u6b63\u5e38\uff0c\u53bb\u914d\u7f6e\u6587\u4ef6\u5199\u7684\u6839\u76ee\u5f55\u521b\u5efa\u6d4b\u8bd5\u9875\u6587\u4ef6\uff0c\u6211\u8fd9\u91cc\u662f <strong>\/var\/www\/wordpress<\/strong>\uff0c\u5c31\u5728\u8fd9\u4e2a\u8def\u5f84\u4e0b\u521b\u5efa\u4e00\u4e2a <strong>index.php<\/strong> \u6587\u4ef6\uff0c\u5199\u5165\u5185\u5bb9\u4e3a<\/p>\n<pre><code>&lt;?php\n    phpinfo();\n?&gt;<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704689371044-e1704695190700.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 235px; --smush-placeholder-aspect-ratio: 235\/229;\" \/><br \/>\n\u518d\u5237\u65b0\u7f51\u9875\uff0c\u770b\u5230\u4e0b\u9762\u9875\u9762\u4ee3\u8868 Nginx \u4e0e php-fpm \u6b63\u5e38\u901a\u4fe1\uff0c\u5e76\u5b8c\u6210 php \u5904\u7406\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704694643855.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 806px; --smush-placeholder-aspect-ratio: 806\/829;\" \/><\/p>\n<p>\u5b89\u88c5 MySQL<\/p>\n<pre><code class=\"language-bash\">sudo apt install -y mysql-server<\/code><\/pre>\n<h1><span class=\"ez-toc-section\" id=\"WordPress_%E5%AE%89%E8%A3%85\"><\/span>WordPress \u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>WP \u6e90\u7801\u4e0b\u8f7d:<\/p>\n<ul>\n<li>\u5b98\u7f51\uff1a<a href=\"https:\/\/wordpress.org\/download\/\">https:\/\/wordpress.org\/download\/<\/a><\/li>\n<li>GitHub \u4ed3\u5e93\uff1a<a href=\"https:\/\/github.com\/WordPress\/WordPress\/tags\">https:\/\/github.com\/WordPress\/WordPress\/tags<\/a><\/li>\n<\/ul>\n<p>\u53ef\u4ee5\u672c\u5730\u4e0b\u8f7d\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u6216\u8005\u76f4\u63a5\u4e0b\u8f7d\u5230\u670d\u52a1\u5668\uff0c\u6211\u8fd9\u91cc\u5c31\u76f4\u63a5\u4e0b\u8f7d\u5230\u865a\u62df\u673a\u91cc\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\u52a0\u901f\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u6e90\u91c7\u7528\u7684 GitHub\uff0c\u7248\u672c\u4e3a\u6700\u65b0\u7684 2023.12.7 &#8211; 6.4.2\uff0c\u4e0b zip \u6216\u8005 tar.gz \u90fd\u884c\uff0czip \u7684\u5305\u5982\u679c\u7cfb\u7edf\u6ca1\u6709\u9884\u88c5 unzip\uff0c\u5c31\u624b\u52a8\u5b89\u88c5\u4e00\u4e0b\u3002tar.gz \u4e00\u822c Linux \u81ea\u5e26\u6709 tar \u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u89e3\u538b\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704696754683.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 951px; --smush-placeholder-aspect-ratio: 951\/821;\" \/><\/p>\n<p>\u4e0b\u8f7d\u6e90\u7801<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704696984199.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 728px; --smush-placeholder-aspect-ratio: 728\/680;\" \/><\/p>\n<p>\u89e3\u538b<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697098406.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 445px; --smush-placeholder-aspect-ratio: 445\/108;\" \/><\/p>\n<p>\u5c06\u6e90\u6587\u4ef6\u79fb\u52a8\u5230\u524d\u9762 Nginx \u914d\u7f6e\u7684\u6839\u76ee\u5f55\u91cc<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697223585.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 541px; --smush-placeholder-aspect-ratio: 541\/70;\" \/><\/p>\n<p>\u7136\u540e\u5728 WP \u6240\u5728\u7684\u4e0a\u4e00\u7ea7\u76ee\u5f55\uff0c\u6267\u884c\u547d\u4ee4\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650\uff0c\u53c2\u8003\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=14780\">https:\/\/blog.iyatt.com\/?p=14780<\/a><\/p>\n<p>\u6b64\u65f6\u518d\u5237\u65b0\u7f51\u9875\uff0c\u53ef\u4ee5\u770b\u5230 WP \u7684\u5b89\u88c5\u914d\u7f6e\uff0c\u70b9 Let&#8217;s go \u7ee7\u7eed\uff0c\u8fdb\u5165\u6570\u636e\u5e93\u914d\u7f6e\u9875\u9762<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697291227.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 931px; --smush-placeholder-aspect-ratio: 931\/564;\" \/><\/p>\n<p>\u56de\u5230\u7ec8\u7aef\uff0c\u4e3a WP \u521b\u5efa\u6570\u636e\u5e93\u3002<\/p>\n<p>\u767b\u5f55 root \u7528\u6237\uff0c\u521d\u59cb\u6ca1\u6709\u5bc6\u7801\uff0c\u63d0\u793a\u8f93\u5165\u5bc6\u7801\u76f4\u63a5\u56de\u8f66\u5c31\u884c<\/p>\n<pre><code class=\"language-mysql\">mysql -u root -p<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697576134.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 719px; --smush-placeholder-aspect-ratio: 719\/396;\" \/><\/p>\n<p>\u4e3a root \u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff0c\u8fd9\u91cc\u4e0d\u662f\u90e8\u7f72\u5b9e\u9645\u4f7f\u7528\u7684\u73af\u5883\uff0c\u5bc6\u7801\u968f\u4fbf\u8bbe\u7684 123456\u3002<\/p>\n<pre><code class=\"language-mysql\">ALTER USER &#039;root&#039;@&#039;localhost&#039; IDENTIFIED WITH mysql_native_password BY &#039;\u65b0\u5bc6\u7801&#039;;<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697628048.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 812px; --smush-placeholder-aspect-ratio: 812\/116;\" \/><\/p>\n<p>\u7136\u540e\u7ed9 WP \u521b\u5efa\u6570\u636e\u5e93\uff0c\u6570\u636e\u5e93\u540d\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u8fd9\u91cc\u793a\u4f8b\u6570\u636e\u5e93\u540d\u4e3a my_wp_db<\/p>\n<pre><code class=\"language-mysql\">CREATE DATABASE \u6570\u636e\u5e93\u540d;<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704697909072.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 345px; --smush-placeholder-aspect-ratio: 345\/122;\" \/><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a WP \u4e13\u7528\u7684 MySQL \u7528\u6237\uff0c\u793a\u4f8b\u4e2d\u7528\u6237\u540d\u4e3a my_wp\uff0c\u5bc6\u7801\u4e3a 654321<\/p>\n<pre><code class=\"language-mysql\">CREATE USER \u7528\u6237\u540d@localhost IDENTIFIED BY &#039;\u5bc6\u7801&#039;;<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704698129816.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 578px; --smush-placeholder-aspect-ratio: 578\/106;\" \/><\/p>\n<p>\u7136\u540e\u5c06\u521b\u5efa\u7684\u6570\u636e\u5e93\u7684\u6240\u6709\u6743\u9650\u90fd\u6388\u4e88\u521b\u5efa\u7684\u65b0\u7528\u6237\uff0c\u6700\u540e\u5237\u65b0\u6743\u9650\u751f\u6548<\/p>\n<pre><code class=\"language-mysql\">GRANT ALL PRIVILEGES ON \u6570\u636e\u5e93\u540d.* TO \u7528\u6237\u540d@localhost;\nFLUSH PRIVILEGES;<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704698394667.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 595px; --smush-placeholder-aspect-ratio: 595\/161;\" \/><\/p>\n<p>\u6570\u636e\u5e93\u521b\u5efa\u5b8c\u6210\uff0c\u56de\u5230 WP \u5b89\u88c5\u9875\u9762\uff0c\u5c06\u521b\u5efa\u7684\u6570\u636e\u5e93\u540d\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u586b\u8fdb\u53bb\uff08\u524d\u4e09\u4e2a\uff09\uff0c\u6700\u540e\u70b9\u63d0\u4ea4<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704698498367.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 686px; --smush-placeholder-aspect-ratio: 686\/551;\" \/><\/p>\n<p>\u9009\u62e9\u8bed\u8a00<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699391141.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 309px; --smush-placeholder-aspect-ratio: 309\/652;\" \/><\/p>\n<p>\u8bbe\u7f6e\u535a\u5ba2\u6807\u9898\u4ee5\u53ca\u540e\u53f0\u767b\u5f55\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u90ae\u7bb1<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699822555.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 625px; --smush-placeholder-aspect-ratio: 625\/679;\" \/><\/p>\n<p>\u914d\u7f6e\u7ed3\u675f\uff0c\u53ef\u4ee5\u767b\u5f55\u540e\u53f0<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699846894.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 657px; --smush-placeholder-aspect-ratio: 657\/355;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699881468.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 306px; --smush-placeholder-aspect-ratio: 306\/442;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699894238.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 696px; --smush-placeholder-aspect-ratio: 696\/457;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704699909696.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1171px; --smush-placeholder-aspect-ratio: 1171\/812;\" \/><\/p>\n<p>WP \u642d\u5efa\u7ed3\u675f\uff01<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE_https\"><\/span>\u914d\u7f6e https<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/blog.iyatt.com\/?p=7556\">https:\/\/blog.iyatt.com\/?p=7556<\/a><br \/>\n\u91cc\u9762\u5199\u7684\u5173\u4e8e\u9759\u6001 html \u7f51\u7ad9\u914d\u7f6e\u7684\uff0c\u8fd9\u91cc\u662f php \u7f51\u7ad9\uff0c\u4e0d\u8981\u76f4\u63a5\u590d\u5236\u66ff\u6362\u3002\u628a\u5173\u4e8e https \u652f\u6301\u7684\u90e8\u5206\u52a0\u4e0a\u53bb\uff0cPHP \u89e3\u6790\u914d\u7f6e\u8981\u4fdd\u7559\uff0c\u4e0d\u7136\u5230\u65f6\u5019 WP \u7f51\u7ad9\u6253\u4e0d\u5f00\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"WordPress_%E8%BF%81%E7%A7%BB\"><\/span>WordPress \u8fc1\u79fb<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>\u4e3b\u8981\u6709\u4e24\u90e8\u5206\u5de5\u4f5c\uff0c\u4e00\u4e2a\u662f\u8fc1\u79fb WP \u6587\u4ef6\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u6570\u636e\u5e93\u3002<br \/>\nWP \u7f51\u7ad9\u6587\u4ef6\u91cc\u6d89\u53ca\u5b89\u88c5\u8fc7\u7684\u63d2\u4ef6\uff0c\u4e3b\u9898\uff0c\u4e0a\u4f20\u7684\u56fe\u7247\u548c\u6587\u4ef6\u7b49\uff0c\u5982\u679c\u7528\u65b0\u5b89\u88c5\u7684\u5c31\u6ca1\u4e86\uff0c\u53e6\u5916\u5c31\u662f\u6570\u636e\u5e93\uff0cWP \u6587\u7ae0\u4ee5\u53ca\u4e00\u4e9b\u8bbe\u7f6e\u5185\u5bb9\u90fd\u662f\u5b58\u5728\u6570\u636e\u5e93\u91cc\u7684\u3002<\/p>\n<p>WP \u6587\u4ef6\u8fc1\u79fb\u7b80\u5355\uff0c\u628a WP \u6839\u76ee\u5f55\u6240\u5728\u6587\u4ef6\u5939\u6574\u4e2a\u62f7\u8d1d\u5230\u65b0\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>\u6570\u636e\u5e93\u9700\u8981\u5148\u524d\u5f80\u65e7\u670d\u52a1\u5668\u5bfc\u51fa\u6570\u636e\u5e93\u6587\u4ef6<\/p>\n<pre><code class=\"language-bash\">mysqldump -u \u7528\u6237\u540d -p \u8981\u5bfc\u51fa\u7684\u6570\u636e\u5e93\u540d &gt; \u6587\u4ef6\u540d.sql<\/code><\/pre>\n<p>\u5728\u8981\u8fc1\u5165\u7684\u670d\u52a1\u5668\u4e0a\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\uff0c\u521b\u5efa\u64cd\u4f5c\u53c2\u8003\u4e0a\u9762 WP \u5b89\u88c5\u6d41\u7a0b\u3002\u7136\u540e\u628a\u6570\u636e\u5e93\u6587\u4ef6\u5bfc\u5165\u5230\u65b0\u521b\u5efa\u7684\u6570\u636e\u5e93\u91cc\u3002<\/p>\n<pre><code class=\"language-mysql\">mysql -u root -p \u6570\u636e\u5e93\u540d &lt; \u6587\u4ef6\u540d.sql<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704702386593.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 705px; --smush-placeholder-aspect-ratio: 705\/321;\" \/><\/p>\n<p>\u5982\u679c\u65b0\u521b\u5efa\u7684\u7528\u6237\u3001\u5bc6\u7801\u3001\u6570\u636e\u5e93\u540d\u4e0e\u539f\u670d\u52a1\u5668\u4e0d\u4e00\u81f4\uff0c\u8fd8\u9700\u8981\u8fdb\u5165 WP \u6839\u76ee\u5f55\uff0c\u7f16\u8f91\u91cc\u9762\u7684 wp-config.php \u6587\u4ef6\uff0c\u4e0b\u9762\u4e09\u9879\u5206\u522b\u662f\u6570\u636e\u5e93\u540d\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u4fee\u6539\u4fdd\u5b58\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704703363661.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 476px; --smush-placeholder-aspect-ratio: 476\/662;\" \/><\/p>\n<p>\u53e6\u5916\u6ce8\u610f WP \u6587\u4ef6\u8fc1\u79fb\u540e\u4fee\u6539\u6587\u4ef6\u6743\u9650\uff0c\u53c2\u8003\u4e0a\u9762 WP \u5b89\u88c5\u90e8\u5206\u5185\u5bb9\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u8fc1\u79fb\u5230\u672c\u5730\u8bbf\u95ee\u7684<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704707945323.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 798px; --smush-placeholder-aspect-ratio: 798\/792;\" \/><\/p>\n<hr \/>\n<p>\u5982\u679c\u8981\u6362\u57df\u540d\u7684\uff0c\u53ef\u4ee5\u5728\u8fc1\u79fb\u524d\u8fdb\u8bbe\u7f6e\u4fee\u6539<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704710565694.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 816px; --smush-placeholder-aspect-ratio: 816\/320;\" \/><\/p>\n<p>\u5df2\u7ecf\u8fc1\u79fb\u4e86\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u5e93\u4fee\u6539\uff08\u5b58\u5728\u53ef\u80fd\u8bbe\u7f6e\u7684\u5730\u5740\u548c\u5b9e\u9645\u8bbf\u95ee\u5730\u5740\u4e0d\u4e00\u81f4\u5bfc\u81f4\u65e0\u6cd5\u6253\u5f00\u540e\u53f0\u767b\u5f55\u9875\u9762\u4fee\u6539\uff09<br \/>\n\u6bd4\u5982\u6211\u8fd9\u91cc\u6539\u5230\u4e86\u672c\u5730\uff0c\u4e0a\u9762\u8bbf\u95ee\u6548\u679c\u53ef\u4ee5\u770b\u5230\u6837\u5f0f\u6709\u4e9b\u4e0d\u6b63\u5e38\uff0c\u56fe\u6807\u6ca1\u6709\u663e\u793a\uff0c\u5c31\u662f\u56e0\u4e3a\u8bbf\u95ee\u5730\u5740\u548c\u8bbe\u7f6e\u7684\u5730\u5740\u4e0d\u4e00\u81f4\u5bfc\u81f4\u4e0d\u80fd\u6b63\u5e38\u52a0\u8f7d\u3002<\/p>\n<p>\u9996\u5148\u767b\u5f55\u6570\u636e\u5e93\uff0c\u767b\u5f55 root \u6216\u8005 WP \u4e13\u95e8\u7684\u7528\u6237\u540d\u4e5f\u884c\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704711880577.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 740px; --smush-placeholder-aspect-ratio: 740\/419;\" \/><\/p>\n<p>\u5c06 WP \u7684\u6570\u636e\u5e93\u8bbe\u4e3a\u4f7f\u7528\u72b6\u6001\uff08\u5148\u67e5\u6570\u636e\u5e93\u540d\uff09<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704711974746.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 601px; --smush-placeholder-aspect-ratio: 601\/477;\" \/><\/p>\n<p>\u586b\u5199\u7684\u5730\u5740\u6709\u4e24\u4e2a\uff0c\u4e00\u4e2a\u662f home\uff0c\u4e00\u4e2a\u662f siteurl\uff0c\u53ef\u4ee5\u5148\u67e5\u770b\u5f53\u524d\u503c\uff0c\u8fd9\u4e24\u4e2a\u503c\u90fd\u4f4d\u4e8e wp_options \u8868\u4e2d\uff0c\u53ef\u4ee5\u67e5\u8be2\u5230\u8fd9\u4e24\u4e2a\u503c\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704712292107.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 599px; --smush-placeholder-aspect-ratio: 599\/405;\" \/><\/p>\n<p>\u73b0\u5728\u628a\u8fd9\u4e24\u4e2a\u6539\u4e3a\u672c\u5730<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704712452960.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 858px; --smush-placeholder-aspect-ratio: 858\/207;\" \/><\/p>\n<p>\u518d\u67e5\u770b\uff0c\u4fee\u6539\u6210\u529f\u4e86<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704712515742.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 593px; --smush-placeholder-aspect-ratio: 593\/409;\" \/><\/p>\n<p>\u73b0\u5728\u6837\u5f0f\u4e5f\u80fd\u6b63\u5e38\u52a0\u8f7d\u4e86<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704712579229.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 523px; --smush-placeholder-aspect-ratio: 523\/746;\" \/><br \/>\n\u540e\u53f0\u4e5f\u53ef\u4ee5\u767b\u5f55\u8fdb\u53bb\u4e86<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2024\/01\/image-1704715012603.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 629px; --smush-placeholder-aspect-ratio: 629\/635;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883 Ubuntu 24.04 x86_64\uff082025\/7\/17 \u6d4b\u8bd5\uff09 \u5168\u7a0b\u4f7f\u7528\u975e root \u7528\u6237\u64cd\u4f5c\u3002 L [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,596],"tags":[],"class_list":["post-12732","post","type-post","status-publish","format-standard","hentry","category-all","category-nginx"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/12732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12732"}],"version-history":[{"count":4,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/12732\/revisions"}],"predecessor-version":[{"id":20983,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/12732\/revisions\/20983"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}