{"id":52,"date":"2025-06-04T22:32:45","date_gmt":"2025-06-04T14:32:45","guid":{"rendered":"https:\/\/www.alantu.top\/?p=52"},"modified":"2025-06-04T22:45:19","modified_gmt":"2025-06-04T14:45:19","slug":"%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e9%83%a8%e7%bd%b2%e5%8d%9a%e5%ae%a2%e7%ab%99%ef%bc%8c%e6%97%a0%e9%9c%80%e5%85%ac%e7%bd%91ip%ef%bc%8c%e6%97%a0%e9%9c%80%e7%ab%af%e5%8f%a3%e6%98%a0%e5%b0%84","status":"publish","type":"post","link":"https:\/\/alantu.top\/?p=52","title":{"rendered":"\u4e2a\u4eba\u7535\u8111\u90e8\u7f72\u535a\u5ba2\u7ad9\uff0c\u65e0\u9700\u516c\u7f51IP\uff0c\u65e0\u9700\u7aef\u53e3\u6620\u5c04"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">&#8212;&#8212;&#8212;&#8212;&#8211;\u7cfb\u5217\u2460<\/h5>\n\n\n\n<p>\u597d\u7684\uff01\u6211\u5c06\u4ece\u96f6\u5f00\u59cb\uff0c\u624b\u628a\u624b\u5e26\u4f60\u5b8c\u6210\u6574\u4e2a\u90e8\u7f72\u8fc7\u7a0b\u3002\u8bf7\u51c6\u5907\u4e00\u53f0\u5b89\u88c5 Ubuntu 20.04\/22.04 \u7684\u670d\u52a1\u5668\uff08\u7269\u7406\u673a\u6216\u865a\u62df\u673a\u5747\u53ef\uff09\uff0c\u8ddf\u7740\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udf31 \u7b2c\u4e00\u7ae0\uff1a\u57fa\u7840\u7cfb\u7edf\u51c6\u5907\uff08\u8017\u65f6\uff1a5\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u66f4\u65b0\u7cfb\u7edf\nsudo apt update &amp;&amp; sudo apt upgrade -y\n\n# 2. \u5b89\u88c5\u5fc5\u5907\u5de5\u5177\nsudo apt install -y curl wget nano git unzip ufw\n\n# 3. \u8bbe\u7f6e\u65f6\u533a\uff08\u4e9a\u6d32\u4e0a\u6d77\uff09\nsudo timedatectl set-timezone Asia\/Shanghai\n\n# 4. \u914d\u7f6e\u9632\u706b\u5899\nsudo ufw allow OpenSSH\nsudo ufw allow 80\nsudo ufw allow 443\nsudo ufw enable<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udfd7\ufe0f \u7b2c\u4e8c\u7ae0\uff1a\u5b89\u88c5LNMP\u73af\u5883\uff08\u8017\u65f6\uff1a10\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u5b89\u88c5Nginx\nsudo apt install -y nginx\nsudo systemctl enable --now nginx\n\n# 2. \u5b89\u88c5MySQL\nsudo apt install -y mysql-server\nsudo systemctl enable --now mysql\n\n# 3. \u5b89\u5168\u914d\u7f6eMySQL\uff08\u8bbe\u7f6eroot\u5bc6\u7801\uff09\nsudo mysql_secure_installation\n# \u9047\u5230\u63d0\u793a\u6309\u4ee5\u4e0b\u9009\u62e9\uff1a\n# 1. \u8f93\u5165Y\u542f\u7528\u5bc6\u7801\u9a8c\u8bc1\u63d2\u4ef6\n# 2. \u8bbe\u7f6e\u5f3a\u5bc6\u7801\uff08\u81f3\u5c1112\u4f4d\uff09\n# 3. \u8f93\u5165Y\u5220\u9664\u533f\u540d\u7528\u6237\n# 4. \u8f93\u5165Y\u7981\u6b62root\u8fdc\u7a0b\u767b\u5f55\n# 5. \u8f93\u5165Y\u5220\u9664\u6d4b\u8bd5\u6570\u636e\u5e93\n# 6. \u8f93\u5165Y\u91cd\u65b0\u52a0\u8f7d\u6743\u9650\u8868\n\n# 4. \u5b89\u88c5PHP\nsudo apt install -y php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-zip php-intl\nsudo systemctl enable --now php-fpm<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd11 \u7b2c\u4e09\u7ae0\uff1a\u914d\u7f6e\u6570\u636e\u5e93\uff08\u8017\u65f6\uff1a3\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u767b\u5f55MySQL\nsudo mysql -u root -p\n# \u8f93\u5165\u521a\u624d\u8bbe\u7f6e\u7684root\u5bc6\u7801\n\n# 2. \u521b\u5efaWordPress\u4e13\u7528\u6570\u636e\u5e93\u548c\u7528\u6237\nCREATE DATABASE wordpress;\nCREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'StrongPassword123!';\nGRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udcdd \u5c06 <code>StrongPassword123!<\/code> \u66ff\u6362\u4e3a\u4f60\u81ea\u5df1\u7684\u5f3a\u5bc6\u7801<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udce5 \u7b2c\u56db\u7ae0\uff1a\u5b89\u88c5WordPress\uff08\u8017\u65f6\uff1a7\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u4e0b\u8f7d\u6700\u65b0\u7248WordPress\ncd \/tmp\nwget https:\/\/wordpress.org\/latest.tar.gz\ntar -xzvf latest.tar.gz\n\n# 2. \u79fb\u52a8\u5230\u7f51\u7ad9\u76ee\u5f55\nsudo mv wordpress \/var\/www\/html\/blog\n\n# 3. \u8bbe\u7f6e\u6743\u9650\nsudo chown -R www-data:www-data \/var\/www\/html\/blog\nsudo find \/var\/www\/html\/blog -type d -exec chmod 750 {} \\;\nsudo find \/var\/www\/html\/blog -type f -exec chmod 640 {} \\;\n\n# 4. \u521b\u5efa\u914d\u7f6e\u6587\u4ef6\ncd \/var\/www\/html\/blog\nsudo cp wp-config-sample.php wp-config.php\nsudo nano wp-config.php<\/code><\/pre>\n\n\n\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u4fee\u6539\u6570\u636e\u5e93\u8bbe\u7f6e\ndefine( 'DB_NAME', 'wordpress' );\ndefine( 'DB_USER', 'wpuser' );\ndefine( 'DB_PASSWORD', 'StrongPassword123!' ); \/\/ \u66ff\u6362\u4e3a\u4f60\u7684\u5bc6\u7801\ndefine( 'DB_HOST', 'localhost' );\n\n\/\/ \u6dfb\u52a0\u5b89\u5168\u5bc6\u94a5\uff08\u4ece\u4ee5\u4e0b\u94fe\u63a5\u751f\u6210\uff1ahttps:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\n\/\/ \u590d\u5236\u751f\u6210\u7684\u5bc6\u94a5\u66ff\u6362\u4e0b\u9762\u7684\u5185\u5bb9\ndefine('AUTH_KEY',         'put your unique phrase here');\ndefine('SECURE_AUTH_KEY',  'put your unique phrase here');\ndefine('LOGGED_IN_KEY',    'put your unique phrase here');\ndefine('NONCE_KEY',        'put your unique phrase here');\ndefine('AUTH_SALT',        'put your unique phrase here');\ndefine('SECURE_AUTH_SALT', 'put your unique phrase here');\ndefine('LOGGED_IN_SALT',   'put your unique phrase here');\ndefine('NONCE_SALT',       'put your unique phrase here');\n\n\/\/ \u5f00\u542f\u8c03\u8bd5\u6a21\u5f0f\uff08\u5f00\u53d1\u73af\u5883\u7528\uff09\ndefine( 'WP_DEBUG', false );<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2699\ufe0f \u7b2c\u4e94\u7ae0\uff1a\u914d\u7f6eNginx\uff08\u8017\u65f6\uff1a8\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u521b\u5efaNginx\u914d\u7f6e\u6587\u4ef6\nsudo nano \/etc\/nginx\/sites-available\/blog<\/code><\/pre>\n\n\n\n<p>\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9\uff08\u66ff\u6362<code>example.com<\/code>\u4e3a\u4f60\u7684\u57df\u540d\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name example.com www.example.com;\n    root \/var\/www\/html\/blog;\n    index index.php index.html index.htm;\n\n    # \u5b89\u5168\u5934\u90e8\n    add_header X-Content-Type-Options \"nosniff\" always;\n    add_header X-XSS-Protection \"1; mode=block\" always;\n    add_header Referrer-Policy \"no-referrer-when-downgrade\" always;\n    add_header Strict-Transport-Security \"max-age=31536000; includeSubDomains\" always;\n\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$args;\n    }\n\n    location ~ \\.php$ {\n        include snippets\/fastcgi-php.conf;\n        fastcgi_pass unix:\/var\/run\/php\/php-fpm.sock;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n    }\n\n    # \u963b\u6b62\u8bbf\u95ee\u654f\u611f\u6587\u4ef6\n    location ~* \/(\\.|wp-config\\.php|wp-config-sample\\.php|readme\\.html|license\\.txt) {\n        deny all;\n    }\n\n    # \u7981\u7528XML-RPC\n    location = \/xmlrpc.php {\n        deny all;\n    }\n\n    # \u9759\u6001\u6587\u4ef6\u7f13\u5b58\n    location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {\n        expires 30d;\n        add_header Cache-Control \"public, no-transform\";\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u542f\u7528\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 2. \u542f\u7528\u7f51\u7ad9\u914d\u7f6e\nsudo ln -s \/etc\/nginx\/sites-available\/blog \/etc\/nginx\/sites-enabled\/\nsudo rm \/etc\/nginx\/sites-enabled\/default\n\n# 3. \u6d4b\u8bd5\u5e76\u91cd\u8f7dNginx\nsudo nginx -t\nsudo systemctl reload nginx<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udf10 \u7b2c\u516d\u7ae0\uff1a\u914d\u7f6eCloudflare Tunnel\uff08\u8017\u65f6\uff1a10\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u5b89\u88c5Cloudflared\nwget https:\/\/github.com\/cloudflare\/cloudflared\/releases\/latest\/download\/cloudflared-linux-amd64.deb\nsudo dpkg -i cloudflared-linux-amd64.deb\n\n# 2. \u767b\u5f55Cloudflare\u8d26\u53f7\ncloudflared tunnel login\n# \u590d\u5236\u8f93\u51fa\u7684URL\u5230\u6d4f\u89c8\u5668\u767b\u5f55\uff0c\u9009\u62e9\u4f60\u8981\u4f7f\u7528\u7684\u57df\u540d\u6388\u6743\n\n# 3. \u521b\u5efa\u96a7\u9053\uff08my-tunnel\u53ef\u81ea\u5b9a\u4e49\uff09\ncloudflared tunnel create my-tunnel\n# \u8bb0\u4e0b\u8fd4\u56de\u7684\u96a7\u9053ID\uff08\u5982\uff1af1e2d3c4-b5a6-7c8d-9e0f-a1b2c3d4e5f6\uff09\n\n# 4. \u914d\u7f6eDNS\u8bb0\u5f55\uff08\u66ff\u6362example.com\u4e3a\u4f60\u7684\u57df\u540d\uff09\ncloudflared tunnel route dns my-tunnel example.com\ncloudflared tunnel route dns my-tunnel www.example.com\n\n# 5. \u521b\u5efa\u914d\u7f6e\u6587\u4ef6\nsudo mkdir \/etc\/cloudflared\nsudo nano \/etc\/cloudflared\/config.yml<\/code><\/pre>\n\n\n\n<p>\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\uff08\u66ff\u6362\u96a7\u9053ID\u548c\u57df\u540d\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tunnel: f1e2d3c4-b5a6-7c8d-9e0f-a1b2c3d4e5f6 # \u66ff\u6362\u4e3a\u4f60\u7684\u96a7\u9053ID\ncredentials-file: \/root\/.cloudflared\/f1e2d3c4-b5a6-7c8d-9e0f-a1b2c3d4e5f6.json # \u66ff\u6362\u4e3a\u4f60\u7684\u8bc1\u4e66\u8def\u5f84\ningress:\n  - hostname: example.com # \u4f60\u7684\u57df\u540d\n    service: http:\/\/localhost:80\n  - hostname: www.example.com # \u5e26www\u7684\u57df\u540d\n    service: http:\/\/localhost:80\n  - service: http_status:404<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\ude80 \u7b2c\u4e03\u7ae0\uff1a\u542f\u52a8\u670d\u52a1\uff08\u8017\u65f6\uff1a3\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u521b\u5efa\u7cfb\u7edf\u670d\u52a1\nsudo tee \/etc\/systemd\/system\/cloudflared.service &gt; \/dev\/null &lt;&lt;EOF\n&#91;Unit]\nDescription=Cloudflare Tunnel\nAfter=network.target\n\n&#91;Service]\nType=simple\nExecStart=\/usr\/local\/bin\/cloudflared tunnel --config \/etc\/cloudflared\/config.yml run\nRestart=always\nRestartSec=5\n\n&#91;Install]\nWantedBy=multi-user.target\nEOF\n\n# 2. \u542f\u52a8\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\nsudo systemctl daemon-reload\nsudo systemctl enable --now cloudflared\n\n# 3. \u68c0\u67e5\u670d\u52a1\u72b6\u6001\nsudo systemctl status cloudflared\n# \u5e94\u8be5\u770b\u5230 \"active (running)\" \u72b6\u6001<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2728 \u7b2c\u516b\u7ae0\uff1a\u5b8c\u6210WordPress\u5b89\u88c5\uff08\u8017\u65f6\uff1a5\u5206\u949f\uff09<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u4f60\u7684\u57df\u540d <code>http:\/\/example.com<\/code><\/li>\n\n\n\n<li>\u6309\u7167\u5411\u5bfc\u5b8c\u6210\u5b89\u88c5\uff1a<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9009\u62e9\u8bed\u8a00\uff08\u7b80\u4f53\u4e2d\u6587\uff09<\/li>\n\n\n\n<li>\u8bbe\u7f6e\u7f51\u7ad9\u6807\u9898<\/li>\n\n\n\n<li>\u8bbe\u7f6e\u7ba1\u7406\u5458\u7528\u6237\u540d\uff08<strong>\u4e0d\u8981\u7528admin<\/strong>\uff09<\/li>\n\n\n\n<li>\u8bbe\u7f6e\u5f3a\u5bc6\u7801\uff0812\u4f4d\u4ee5\u4e0a\uff0c\u542b\u5927\u5c0f\u5199\u5b57\u6bcd+\u6570\u5b57+\u7b26\u53f7\uff09<\/li>\n\n\n\n<li>\u586b\u5199\u7ba1\u7406\u5458\u90ae\u7bb1<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u70b9\u51fb&#8221;\u5b89\u88c5WordPress&#8221;<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd12 \u7b2c\u4e5d\u7ae0\uff1a\u5b89\u5168\u52a0\u56fa\uff08\u8017\u65f6\uff1a8\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u5728WordPress\u540e\u53f0\u5b89\u88c5\u5fc5\u8981\u63d2\u4ef6\n#  - Wordfence Security (\u9632\u706b\u5899)\n#  - UpdraftPlus (\u5907\u4efd)\n#  - Cloudflare (\u96c6\u6210)\n\n# 2. \u914d\u7f6eCloudflare\u63a7\u5236\u53f0\uff08\u7f51\u9875\u64cd\u4f5c\uff09\na. \u767b\u5f55 https:\/\/dash.cloudflare.com\nb. \u9009\u62e9\u4f60\u7684\u57df\u540d\nc. SSL\/TLS \u2192 \u6982\u8ff0 \u2192 \u9009\u62e9\"Full (strict)\"\nd. SSL\/TLS \u2192 \u8fb9\u7f18\u8bc1\u4e66 \u2192 \u5f00\u542f\"\u59cb\u7ec8\u4f7f\u7528HTTPS\"\ne. \u9632\u706b\u5899 \u2192 WAF \u2192 \u521b\u5efa\u89c4\u5219\uff08\u963b\u6b62\u53ef\u7591\u8bf7\u6c42\uff09\n\n# 3. \u670d\u52a1\u5668\u7aef\u5b89\u5168\u914d\u7f6e\n# \u7981\u7528PHP\u5371\u9669\u51fd\u6570\nsudo nano \/etc\/php\/*\/fpm\/php.ini<\/code><\/pre>\n\n\n\n<p>\u627e\u5230\u5e76\u4fee\u6539\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># 4. \u8bbe\u7f6e\u81ea\u52a8\u5907\u4efd\nsudo apt install -y cron\n(crontab -l ; echo \"0 3 * * * mysqldump -u root wordpress | gzip &gt; \/backups\/wordpress_$(date +\\%F).sql.gz\") | crontab -<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea \u7b2c\u5341\u7ae0\uff1a\u9a8c\u8bc1\u90e8\u7f72\uff08\u8017\u65f6\uff1a2\u5206\u949f\uff09<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u68c0\u67e5\u96a7\u9053\u72b6\u6001\ncloudflared tunnel list\n\n# 2. \u68c0\u67e5SSL\u8bc1\u4e66\ncurl -I https:\/\/example.com\n# \u5e94\u8fd4\u56de HTTP\/2 200 \u548c Cloudflare \u76f8\u5173\u5934\u90e8\n\n# 3. \u68c0\u67e5\u7f51\u7ad9\u6027\u80fd\nab -c 50 -n 500 https:\/\/example.com\/<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udd98 \u6545\u969c\u6392\u9664\u6307\u5357<\/h3>\n\n\n\n<p><strong>\u95ee\u98981\uff1aCloudflared\u65e0\u6cd5\u542f\u52a8<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u67e5\u770b\u8be6\u7ec6\u65e5\u5fd7\nsudo journalctl -u cloudflared -f\n\n# \u5e38\u89c1\u89e3\u51b3\uff1a\n# 1. \u68c0\u67e5\u8bc1\u4e66\u8def\u5f84\u662f\u5426\u6b63\u786e\n# 2. \u91cd\u65b0\u767b\u5f55\uff1acloudflared tunnel login\n# 3. \u68c0\u67e5config.yml\u7f29\u8fdb\uff08\u5fc5\u987b\u4f7f\u7528\u7a7a\u683c\uff09<\/code><\/pre>\n\n\n\n<p><strong>\u95ee\u98982\uff1aWordPress\u5efa\u7acb\u6570\u636e\u5e93\u8fde\u63a5\u65f6\u51fa\u9519<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u68c0\u67e5wp-config.php\u4e2d\u7684\u6570\u636e\u5e93\u51ed\u636e\n# 2. \u6d4b\u8bd5MySQL\u8fde\u63a5\uff1a\nmysql -u wpuser -p wordpress\n# 3. \u68c0\u67e5MySQL\u7528\u6237\u6743\u9650\uff1a\nSELECT Host,User FROM mysql.user;<\/code><\/pre>\n\n\n\n<p><strong>\u95ee\u98983\uff1aNginx 502\u9519\u8bef<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. \u68c0\u67e5PHP-FPM\u72b6\u6001\uff1a\nsudo systemctl status php-fpm\n# 2. \u67e5\u770b\u9519\u8bef\u65e5\u5fd7\uff1a\ntail -f \/var\/log\/nginx\/error.log\n# 3. \u786e\u4fddsock\u6587\u4ef6\u8def\u5f84\u6b63\u786e\uff1a\nls \/var\/run\/php\/php-fpm.sock<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u81f3\u6b64\uff0c\u4f60\u7684\u535a\u5ba2\u5df2\u5b8c\u5168\u90e8\u7f72\u5b8c\u6210\uff01\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u4f60\u7684\u57df\u540d\uff08\u65e0\u9700\u516c\u7f51IP\uff09\u5b89\u5168\u8bbf\u95ee\u535a\u5ba2\u4e86\u3002\u540e\u7eed\u5efa\u8bae\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6bcf\u5468\u6267\u884c <code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/li>\n\n\n\n<li>\u6bcf\u6708\u66f4\u6362\u4e00\u6b21MySQL\u5bc6\u7801<\/li>\n\n\n\n<li>\u4f7f\u7528UpdraftPlus\u8bbe\u7f6e\u81ea\u52a8\u4e91\u7aef\u5907\u4efd<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212;&#038;# &hellip; <a title=\"\u4e2a\u4eba\u7535\u8111\u90e8\u7f72\u535a\u5ba2\u7ad9\uff0c\u65e0\u9700\u516c\u7f51IP\uff0c\u65e0\u9700\u7aef\u53e3\u6620\u5c04\" class=\"hm-read-more\" href=\"https:\/\/alantu.top\/?p=52\"><span class=\"screen-reader-text\">\u4e2a\u4eba\u7535\u8111\u90e8\u7f72\u535a\u5ba2\u7ad9\uff0c\u65e0\u9700\u516c\u7f51IP\uff0c\u65e0\u9700\u7aef\u53e3\u6620\u5c04<\/span>Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alantu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":1,"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions\/53"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alantu.top\/index.php?rest_route=\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/alantu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alantu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alantu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}