{"id":13491,"date":"2025-04-18T20:27:56","date_gmt":"2025-04-18T12:27:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/13491.html"},"modified":"2025-04-18T20:27:56","modified_gmt":"2025-04-18T12:27:56","slug":"%e6%90%ad%e5%bb%ba%e4%b8%aa%e4%ba%ba%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/13491.html","title":{"rendered":"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:0px\">\n<p id=\"linux%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:0px\">linux\u5982\u4f55\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668<\/p>\n<p id=\"1.%20%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C-toc\" style=\"margin-left:80px\">1. \u51c6\u5907\u5de5\u4f5c<\/p>\n<p id=\"1.1%20%E9%80%89%E6%8B%A9%20Linux%20%E5%8F%91%E8%A1%8C%E7%89%88-toc\" style=\"margin-left:120px\">1.1 \u9009\u62e9 Linux \u53d1\u884c\u7248<\/p>\n<p id=\"1.2%20%E5%AE%89%E8%A3%85%20Linux-toc\" style=\"margin-left:120px\">1.2 \u5b89\u88c5 Linux<\/p>\n<p id=\"2.%20%E5%9F%BA%E6%9C%AC%E7%B3%BB%E7%BB%9F%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:80px\">2. \u57fa\u672c\u7cfb\u7edf\u914d\u7f6e<\/p>\n<p id=\"2.1%20%E6%9B%B4%E6%96%B0%E7%B3%BB%E7%BB%9F-toc\" style=\"margin-left:120px\">2.1 \u66f4\u65b0\u7cfb\u7edf<\/p>\n<p id=\"2.2%20%E8%AE%BE%E7%BD%AE%E4%B8%BB%E6%9C%BA%E5%90%8D-toc\" style=\"margin-left:120px\">2.2 \u8bbe\u7f6e\u4e3b\u673a\u540d<\/p>\n<p id=\"2.3%20%E9%85%8D%E7%BD%AE%E9%98%B2%E7%81%AB%E5%A2%99-toc\" style=\"margin-left:120px\">2.3 \u914d\u7f6e\u9632\u706b\u5899<\/p>\n<p id=\"3.%20%E5%AE%89%E8%A3%85%E5%B8%B8%E7%94%A8%E6%9C%8D%E5%8A%A1-toc\" style=\"margin-left:80px\">3. \u5b89\u88c5\u5e38\u7528\u670d\u52a1<\/p>\n<p id=\"3.1%20SSH%20%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">3.1 SSH \u670d\u52a1\u5668<\/p>\n<p id=\"3.2%20Web%20%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">3.2 Web \u670d\u52a1\u5668<\/p>\n<p id=\"3.3%20FTP%20%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">3.3 FTP \u670d\u52a1\u5668<\/p>\n<p id=\"3.4%20%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">3.4 \u6570\u636e\u5e93\u670d\u52a1\u5668<\/p>\n<p id=\"4.%20%E5%AE%89%E5%85%A8%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:80px\">4. \u5b89\u5168\u914d\u7f6e<\/p>\n<p id=\"4.1%20%E9%85%8D%E7%BD%AE%20SSH-toc\" style=\"margin-left:120px\">4.1 \u914d\u7f6e SSH<\/p>\n<p id=\"4.2%20%E9%85%8D%E7%BD%AE%E9%98%B2%E7%81%AB%E5%A2%99-toc\" style=\"margin-left:120px\">4.2 \u914d\u7f6e\u9632\u706b\u5899<\/p>\n<p id=\"4.3%20%E5%AE%89%E8%A3%85%20Fail2Ban-toc\" style=\"margin-left:120px\">4.3 \u5b89\u88c5 Fail2Ban<\/p>\n<p id=\"5.%20%E7%9B%91%E6%8E%A7%E5%92%8C%E6%97%A5%E5%BF%97-toc\" style=\"margin-left:80px\">5. \u76d1\u63a7\u548c\u65e5\u5fd7<\/p>\n<p id=\"5.1%20%E5%AE%89%E8%A3%85%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:120px\">5.1 \u5b89\u88c5\u76d1\u63a7\u5de5\u5177<\/p>\n<p id=\"5.2%20%E6%97%A5%E5%BF%97%E7%AE%A1%E7%90%86-toc\" style=\"margin-left:120px\">5.2 \u65e5\u5fd7\u7ba1\u7406<\/p>\n<p id=\"6.%20%E5%A4%87%E4%BB%BD%E5%92%8C%E6%81%A2%E5%A4%8D-toc\" style=\"margin-left:80px\">6. \u5907\u4efd\u548c\u6062\u590d<\/p>\n<p id=\"6.1%20%E5%AE%89%E8%A3%85%E5%A4%87%E4%BB%BD%E5%B7%A5%E5%85%B7-toc\" style=\"margin-left:120px\">6.1 \u5b89\u88c5\u5907\u4efd\u5de5\u5177<\/p>\n<p id=\"6.2%20%E8%AE%BE%E7%BD%AE%E5%AE%9A%E6%9C%9F%E5%A4%87%E4%BB%BD-toc\" style=\"margin-left:120px\">6.2 \u8bbe\u7f6e\u5b9a\u671f\u5907\u4efd<\/p>\n<p id=\"7.%20%E9%85%8D%E7%BD%AE%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90-toc\" style=\"margin-left:80px\">7. \u914d\u7f6e\u57df\u540d\u89e3\u6790<\/p>\n<p id=\"7.1%20%E6%B3%A8%E5%86%8C%E5%9F%9F%E5%90%8D-toc\" style=\"margin-left:120px\">7.1 \u6ce8\u518c\u57df\u540d<\/p>\n<p id=\"7.2%20%E9%85%8D%E7%BD%AE%20DNS-toc\" style=\"margin-left:120px\">7.2 \u914d\u7f6e DNS<\/p>\n<p id=\"8.%20%E6%B5%8B%E8%AF%95%E5%92%8C%E9%AA%8C%E8%AF%81-toc\" style=\"margin-left:80px\">8. \u6d4b\u8bd5\u548c\u9a8c\u8bc1<\/p>\n<p id=\"8.1%20%E6%B5%8B%E8%AF%95%20Web%20%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">8.1 \u6d4b\u8bd5 Web \u670d\u52a1\u5668<\/p>\n<p id=\"8.2%20%E6%B5%8B%E8%AF%95%20FTP%20%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">8.2 \u6d4b\u8bd5 FTP \u670d\u52a1\u5668<\/p>\n<p id=\"8.3%20%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">8.3 \u6d4b\u8bd5\u6570\u636e\u5e93\u670d\u52a1\u5668<\/p>\n<p id=\"9.%20%E6%96%87%E6%A1%A3%E5%92%8C%E7%BB%B4%E6%8A%A4-toc\" style=\"margin-left:80px\">9. \u6587\u6863\u548c\u7ef4\u62a4<\/p>\n<p id=\"9.1%20%E8%AE%B0%E5%BD%95%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:120px\">9.1 \u8bb0\u5f55\u914d\u7f6e<\/p>\n<p id=\"9.2%20%E5%AE%9A%E6%9C%9F%E6%9B%B4%E6%96%B0-toc\" style=\"margin-left:120px\">9.2 \u5b9a\u671f\u66f4\u65b0<\/p>\n<p id=\"%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:80px\">\u603b\u7ed3<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"linux%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E6%9C%8D%E5%8A%A1%E5%99%A8\">linux\u5982\u4f55\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668<\/h2>\n<p>\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u65b9\u5f0f\u6765\u5b66\u4e60\u548c\u5b9e\u8df5 Linux \u7cfb\u7edf\u7ba1\u7406\u6280\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u6b65\u9aa4\u6307\u5357&#xff0c;\u5e2e\u52a9\u4f60\u5728 Linux \u4e0a\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668\u3002\u6211\u4eec\u5c06\u6db5\u76d6\u57fa\u672c\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u3001\u5b89\u88c5\u5e38\u7528\u670d\u52a1&#xff08;\u5982 Web \u670d\u52a1\u5668\u3001FTP \u670d\u52a1\u5668\u3001SSH \u670d\u52a1\u5668\u7b49&#xff09;\u4ee5\u53ca\u5b89\u5168\u914d\u7f6e\u3002<\/p>\n<h4 id=\"1.%20%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C\">1. \u51c6\u5907\u5de5\u4f5c<\/h4>\n<h5 id=\"1.1%20%E9%80%89%E6%8B%A9%20Linux%20%E5%8F%91%E8%A1%8C%E7%89%88\">1.1 \u9009\u62e9 Linux \u53d1\u884c\u7248<\/h5>\n<p>\u5e38\u89c1\u7684 Linux \u53d1\u884c\u7248\u6709 Ubuntu\u3001CentOS\u3001Debian \u7b49\u3002\u5bf9\u4e8e\u521d\u5b66\u8005&#xff0c;\u63a8\u8350\u4f7f\u7528 Ubuntu&#xff0c;\u56e0\u4e3a\u5b83\u6709\u4e30\u5bcc\u7684\u793e\u533a\u652f\u6301\u548c\u6587\u6863\u3002<\/p>\n<h5 id=\"1.2%20%E5%AE%89%E8%A3%85%20Linux\">1.2 \u5b89\u88c5 Linux<\/h5>\n<ul>\n<li>\u7269\u7406\u673a&#xff1a;\u53ef\u4ee5\u5728\u7269\u7406\u673a\u4e0a\u5b89\u88c5 Linux\u3002<\/li>\n<li>\u865a\u62df\u673a&#xff1a;\u53ef\u4ee5\u5728\u865a\u62df\u673a\u8f6f\u4ef6&#xff08;\u5982 VMware\u3001VirtualBox&#xff09;\u4e2d\u5b89\u88c5 Linux\u3002<\/li>\n<li>\u4e91\u670d\u52a1\u5668&#xff1a;\u53ef\u4ee5\u4ece\u4e91\u670d\u52a1\u63d0\u4f9b\u5546&#xff08;\u5982\u963f\u91cc\u4e91\u3001AWS\u3001Google Cloud&#xff09;\u79df\u7528\u4e00\u53f0\u865a\u62df\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<h4 id=\"2.%20%E5%9F%BA%E6%9C%AC%E7%B3%BB%E7%BB%9F%E9%85%8D%E7%BD%AE\">2. \u57fa\u672c\u7cfb\u7edf\u914d\u7f6e<\/h4>\n<h5 id=\"2.1%20%E6%9B%B4%E6%96%B0%E7%B3%BB%E7%BB%9F\">2.1 \u66f4\u65b0\u7cfb\u7edf<\/h5>\n<p>sudo apt update<br \/>\nsudo apt upgrade <\/p>\n<h5 id=\"2.2%20%E8%AE%BE%E7%BD%AE%E4%B8%BB%E6%9C%BA%E5%90%8D\">2.2 \u8bbe\u7f6e\u4e3b\u673a\u540d<\/h5>\n<p>sudo hostnamectl set-hostname your-server-name <\/p>\n<h5 id=\"2.3%20%E9%85%8D%E7%BD%AE%E9%98%B2%E7%81%AB%E5%A2%99\">2.3 \u914d\u7f6e\u9632\u706b\u5899<\/h5>\n<p>\u5b89\u88c5\u5e76\u914d\u7f6e ufw&#xff08;Uncomplicated Firewall&#xff09;&#xff1a;<\/p>\n<p>sudo apt install ufw<br \/>\nsudo ufw default deny incoming<br \/>\nsudo ufw default allow outgoing<br \/>\nsudo ufw allow ssh<br \/>\nsudo ufw enable <\/p>\n<h4 id=\"3.%20%E5%AE%89%E8%A3%85%E5%B8%B8%E7%94%A8%E6%9C%8D%E5%8A%A1\">3. \u5b89\u88c5\u5e38\u7528\u670d\u52a1<\/h4>\n<h5 id=\"3.1%20SSH%20%E6%9C%8D%E5%8A%A1%E5%99%A8\">3.1 SSH \u670d\u52a1\u5668<\/h5>\n<p>SSH \u670d\u52a1\u5668\u5141\u8bb8\u4f60\u8fdc\u7a0b\u7ba1\u7406\u670d\u52a1\u5668\u3002<\/p>\n<p>sudo apt install openssh-server<br \/>\nsudo systemctl enable ssh<br \/>\nsudo systemctl start ssh <\/p>\n<h5 id=\"3.2%20Web%20%E6%9C%8D%E5%8A%A1%E5%99%A8\">3.2 Web \u670d\u52a1\u5668<\/h5>\n<p>\u5b89\u88c5 Nginx \u6216 Apache&#xff1a;<\/p>\n<p># \u5b89\u88c5 Nginx<br \/>\nsudo apt install nginx<br \/>\nsudo systemctl enable nginx<br \/>\nsudo systemctl start nginx<\/p>\n<p># \u6216\u8005\u5b89\u88c5 Apache<br \/>\nsudo apt install apache2<br \/>\nsudo systemctl enable apache2<br \/>\nsudo systemctl start apache2 <\/p>\n<h5 id=\"3.3%20FTP%20%E6%9C%8D%E5%8A%A1%E5%99%A8\">3.3 FTP \u670d\u52a1\u5668<\/h5>\n<p>\u5b89\u88c5 vsftpd&#xff1a;<\/p>\n<p>sudo apt install vsftpd<br \/>\nsudo systemctl enable vsftpd<br \/>\nsudo systemctl start vsftpd <\/p>\n<h5 id=\"3.4%20%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1%E5%99%A8\">3.4 \u6570\u636e\u5e93\u670d\u52a1\u5668<\/h5>\n<p>\u5b89\u88c5 MySQL \u6216 MariaDB&#xff1a;<\/p>\n<p># \u5b89\u88c5 MySQL<br \/>\nsudo apt install mysql-server<br \/>\nsudo mysql_secure_installation<\/p>\n<p># \u6216\u8005\u5b89\u88c5 MariaDB<br \/>\nsudo apt install mariadb-server<br \/>\nsudo mysql_secure_installation <\/p>\n<h4 id=\"4.%20%E5%AE%89%E5%85%A8%E9%85%8D%E7%BD%AE\">4. \u5b89\u5168\u914d\u7f6e<\/h4>\n<h5 id=\"4.1%20%E9%85%8D%E7%BD%AE%20SSH\">4.1 \u914d\u7f6e SSH<\/h5>\n<p>\u7f16\u8f91 \/etc\/ssh\/sshd_config \u6587\u4ef6&#xff0c;\u8fdb\u884c\u4ee5\u4e0b\u914d\u7f6e&#xff1a;<\/p>\n<ul>\n<li>\u7981\u7528 root \u767b\u5f55&#xff1a; PermitRootLogin no <\/li>\n<li>\u66f4\u6539 SSH \u7aef\u53e3&#xff08;\u53ef\u9009&#xff09;&#xff1a; Port 2222 <\/li>\n<li>\u91cd\u542f SSH \u670d\u52a1&#xff1a; sudo systemctl restart ssh <\/li>\n<\/ul>\n<h5 id=\"4.2%20%E9%85%8D%E7%BD%AE%E9%98%B2%E7%81%AB%E5%A2%99\">4.2 \u914d\u7f6e\u9632\u706b\u5899<\/h5>\n<p>\u786e\u4fdd\u53ea\u5f00\u653e\u5fc5\u8981\u7684\u7aef\u53e3&#xff1a;<\/p>\n<p>sudo ufw allow 2222\/tcp  # \u5982\u679c\u66f4\u6539\u4e86 SSH \u7aef\u53e3<br \/>\nsudo ufw allow 80\/tcp    # HTTP<br \/>\nsudo ufw allow 443\/tcp   # HTTPS<br \/>\nsudo ufw allow 21\/tcp    # FTP<br \/>\nsudo ufw allow 3306\/tcp  # MySQL\/MariaDB <\/p>\n<h5 id=\"4.3%20%E5%AE%89%E8%A3%85%20Fail2Ban\">4.3 \u5b89\u88c5 Fail2Ban<\/h5>\n<p>Fail2Ban \u662f\u4e00\u4e2a\u9632\u6b62\u66b4\u529b\u7834\u89e3\u7684\u5de5\u5177&#xff1a;<\/p>\n<p>sudo apt install fail2ban<br \/>\nsudo systemctl enable fail2ban<br \/>\nsudo systemctl start fail2ban <\/p>\n<h4 id=\"5.%20%E7%9B%91%E6%8E%A7%E5%92%8C%E6%97%A5%E5%BF%97\">5. \u76d1\u63a7\u548c\u65e5\u5fd7<\/h4>\n<h5 id=\"5.1%20%E5%AE%89%E8%A3%85%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7\">5.1 \u5b89\u88c5\u76d1\u63a7\u5de5\u5177<\/h5>\n<p>\u5b89\u88c5 htop \u548c iftop&#xff1a;<\/p>\n<p>sudo apt install htop iftop <\/p>\n<h5 id=\"5.2%20%E6%97%A5%E5%BF%97%E7%AE%A1%E7%90%86\">5.2 \u65e5\u5fd7\u7ba1\u7406<\/h5>\n<p>\u4f7f\u7528 logrotate \u7ba1\u7406\u65e5\u5fd7\u6587\u4ef6&#xff1a;<\/p>\n<p>sudo apt install logrotate <\/p>\n<h4 id=\"6.%20%E5%A4%87%E4%BB%BD%E5%92%8C%E6%81%A2%E5%A4%8D\">6. \u5907\u4efd\u548c\u6062\u590d<\/h4>\n<h5 id=\"6.1%20%E5%AE%89%E8%A3%85%E5%A4%87%E4%BB%BD%E5%B7%A5%E5%85%B7\">6.1 \u5b89\u88c5\u5907\u4efd\u5de5\u5177<\/h5>\n<p>\u5b89\u88c5 rsync&#xff1a;<\/p>\n<p>sudo apt install rsync <\/p>\n<h5 id=\"6.2%20%E8%AE%BE%E7%BD%AE%E5%AE%9A%E6%9C%9F%E5%A4%87%E4%BB%BD\">6.2 \u8bbe\u7f6e\u5b9a\u671f\u5907\u4efd<\/h5>\n<p>\u7f16\u8f91 \/etc\/cron.daily\/backup \u6587\u4ef6&#xff0c;\u6dfb\u52a0\u5907\u4efd\u811a\u672c&#xff1a;<\/p>\n<p>#!\/bin\/bash<br \/>\nrsync -avz &#8211;delete \/path\/to\/source \/path\/to\/backup <\/p>\n<p>\u8d4b\u4e88\u6267\u884c\u6743\u9650&#xff1a;<\/p>\n<p>sudo chmod &#043;x \/etc\/cron.daily\/backup <\/p>\n<h4 id=\"7.%20%E9%85%8D%E7%BD%AE%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90\">7. \u914d\u7f6e\u57df\u540d\u89e3\u6790<\/h4>\n<h5 id=\"7.1%20%E6%B3%A8%E5%86%8C%E5%9F%9F%E5%90%8D\">7.1 \u6ce8\u518c\u57df\u540d<\/h5>\n<p>\u5728\u57df\u540d\u6ce8\u518c\u5546\u5904\u6ce8\u518c\u4e00\u4e2a\u57df\u540d\u3002<\/p>\n<h5 id=\"7.2%20%E9%85%8D%E7%BD%AE%20DNS\">7.2 \u914d\u7f6e DNS<\/h5>\n<p>\u5728\u57df\u540d\u6ce8\u518c\u5546\u7684\u7ba1\u7406\u9762\u677f\u4e2d&#xff0c;\u914d\u7f6e A \u8bb0\u5f55\u6307\u5411\u4f60\u7684\u670d\u52a1\u5668 IP \u5730\u5740\u3002<\/p>\n<h4 id=\"8.%20%E6%B5%8B%E8%AF%95%E5%92%8C%E9%AA%8C%E8%AF%81\">8. \u6d4b\u8bd5\u548c\u9a8c\u8bc1<\/h4>\n<h5 id=\"8.1%20%E6%B5%8B%E8%AF%95%20Web%20%E6%9C%8D%E5%8A%A1%E5%99%A8\">8.1 \u6d4b\u8bd5 Web \u670d\u52a1\u5668<\/h5>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee http:\/\/your-domain.com \u6216 http:\/\/your-server-ip&#xff0c;\u786e\u4fdd Nginx \u6216 Apache \u7684\u9ed8\u8ba4\u9875\u9762\u663e\u793a\u6b63\u5e38\u3002<\/p>\n<h5 id=\"8.2%20%E6%B5%8B%E8%AF%95%20FTP%20%E6%9C%8D%E5%8A%A1%E5%99%A8\">8.2 \u6d4b\u8bd5 FTP \u670d\u52a1\u5668<\/h5>\n<p>\u4f7f\u7528 FTP \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u670d\u52a1\u5668&#xff0c;\u786e\u4fdd\u53ef\u4ee5\u6b63\u5e38\u767b\u5f55\u548c\u4f20\u8f93\u6587\u4ef6\u3002<\/p>\n<h5 id=\"8.3%20%E6%B5%8B%E8%AF%95%E6%95%B0%E6%8D%AE%E5%BA%93%E6%9C%8D%E5%8A%A1%E5%99%A8\">8.3 \u6d4b\u8bd5\u6570\u636e\u5e93\u670d\u52a1\u5668<\/h5>\n<p>\u4f7f\u7528 MySQL \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u6570\u636e\u5e93&#xff0c;\u786e\u4fdd\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\u548c\u64cd\u4f5c\u6570\u636e\u5e93\u3002<\/p>\n<h4 id=\"9.%20%E6%96%87%E6%A1%A3%E5%92%8C%E7%BB%B4%E6%8A%A4\">9. \u6587\u6863\u548c\u7ef4\u62a4<\/h4>\n<h5 id=\"9.1%20%E8%AE%B0%E5%BD%95%E9%85%8D%E7%BD%AE\">9.1 \u8bb0\u5f55\u914d\u7f6e<\/h5>\n<p>\u8bb0\u5f55\u6240\u6709\u7684\u914d\u7f6e\u6b65\u9aa4\u548c\u91cd\u8981\u4fe1\u606f&#xff0c;\u65b9\u4fbf\u540e\u7eed\u53c2\u8003\u548c\u7ef4\u62a4\u3002<\/p>\n<h5 id=\"9.2%20%E5%AE%9A%E6%9C%9F%E6%9B%B4%E6%96%B0\">9.2 \u5b9a\u671f\u66f4\u65b0<\/h5>\n<p>\u5b9a\u671f\u66f4\u65b0\u7cfb\u7edf\u548c\u8f6f\u4ef6\u5305&#xff0c;\u786e\u4fdd\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027&#xff1a;<\/p>\n<p>sudo apt update<br \/>\nsudo apt upgrade <\/p>\n<h4 id=\"%E6%80%BB%E7%BB%93\">\u603b\u7ed3<\/h4>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u4f60\u53ef\u4ee5\u6210\u529f\u642d\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u4e2a\u4eba\u670d\u52a1\u5668\u3002<\/p>\n<p>\u5982\u679c\u4ee5\u4e0a\u5185\u5bb9\u5bf9\u4f60\u6709\u8ba4\u77e5\u6269\u5145\u6216\u5b9e\u9645\u5e2e\u52a9&#xff0c;\u8bf7\u4e00\u952e\u4e09\u8054\u554a&#xff0c;\u8001\u94c1\u3002<\/p>\n<p>\u5efa\u4e86\u4e2a\u9891\u9053\u4e00\u8d77\u5b66\u4e60\u4ea4\u6d41\u5440\u3002<\/p>\n<p>\u70b9\u51fb\u94fe\u63a5\u52a0\u5165\u817e\u8baf\u9891\u9053\u3010\u8ba1\u7b97\u673a\u4e16\u754c\u3011&#xff1a;https:\/\/pd.qq.com\/s\/ehwyeptrd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u642d\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u4e2a\u4eba\u670d\u52a1\u5668\u3002\u5982\u679c\u4ee5\u4e0a\u5185\u5bb9\u5bf9\u4f60\u6709\u8ba4\u77e5\u6269\u5145\u6216\u5b9e\u9645\u5e2e\u52a9\uff0c\u8bf7\u4e00\u952e\u4e09\u8054\u554a\uff0c\u8001\u94c1\u3002\u5efa\u4e86\u4e2a\u9891\u9053\u4e00\u8d77\u5b66\u4e60\u4ea4\u6d41\u5440\u3002_linux\u670d\u52a1\u5668\u642d\u5efa\u6559\u7a0b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-13491","post","type-post","status-publish","format-standard","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/13491.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u642d\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u4e2a\u4eba\u670d\u52a1\u5668\u3002\u5982\u679c\u4ee5\u4e0a\u5185\u5bb9\u5bf9\u4f60\u6709\u8ba4\u77e5\u6269\u5145\u6216\u5b9e\u9645\u5e2e\u52a9\uff0c\u8bf7\u4e00\u952e\u4e09\u8054\u554a\uff0c\u8001\u94c1\u3002\u5efa\u4e86\u4e2a\u9891\u9053\u4e00\u8d77\u5b66\u4e60\u4ea4\u6d41\u5440\u3002_linux\u670d\u52a1\u5668\u642d\u5efa\u6559\u7a0b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/13491.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T12:27:56+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13491.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/13491.html\",\"name\":\"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:27:56+00:00\",\"dateModified\":\"2025-04-18T12:27:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/13491.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/13491.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/13491.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/13491.html","og_locale":"zh_CN","og_type":"article","og_title":"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u642d\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u4e2a\u4eba\u670d\u52a1\u5668\u3002\u5982\u679c\u4ee5\u4e0a\u5185\u5bb9\u5bf9\u4f60\u6709\u8ba4\u77e5\u6269\u5145\u6216\u5b9e\u9645\u5e2e\u52a9\uff0c\u8bf7\u4e00\u952e\u4e09\u8054\u554a\uff0c\u8001\u94c1\u3002\u5efa\u4e86\u4e2a\u9891\u9053\u4e00\u8d77\u5b66\u4e60\u4ea4\u6d41\u5440\u3002_linux\u670d\u52a1\u5668\u642d\u5efa\u6559\u7a0b","og_url":"https:\/\/www.wsisp.com\/helps\/13491.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:27:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/13491.html","url":"https:\/\/www.wsisp.com\/helps\/13491.html","name":"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:27:56+00:00","dateModified":"2025-04-18T12:27:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/13491.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/13491.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/13491.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u642d\u5efa\u4e2a\u4eba\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/13491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=13491"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/13491\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=13491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=13491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=13491"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=13491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}