{"id":47243,"date":"2025-07-30T07:12:27","date_gmt":"2025-07-29T23:12:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47243.html"},"modified":"2025-07-30T07:12:27","modified_gmt":"2025-07-29T23:12:27","slug":"%e6%96%b0%e6%89%8b%e5%b0%8f%e7%99%bd%e4%b9%9f%e8%83%bd%e7%9c%8b%e6%87%82%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%88%9d%e6%ad%a5%e9%85%8d%e7%bd%ae%e6%95%99%e7%a8%8b%ef%bc%88%e9%80%82%e7%94%a8%e4%ba%8e-u","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47243.html","title":{"rendered":"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09"},"content":{"rendered":"<h2><\/h2>\n<p>\u9002\u7528\u5e73\u53f0&#xff1a;\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001AWS\u3001\u642c\u74e6\u5de5\u7b49 \u9002\u7528\u7cfb\u7edf&#xff1a;Ubuntu 20.04&#043;\/Debian 10&#043;<\/p>\n<hr \/>\n<h3>\u6559\u7a0b\u76ee\u6807<\/h3>\n<p>\u901a\u8fc7\u8fd9\u7bc7\u6559\u7a0b&#xff0c;\u4f60\u5c06\u5b66\u4f1a&#xff1a;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 1. \u8d2d\u4e70\u5e76\u767b\u5f55\u670d\u52a1\u5668<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 2. \u5b8c\u6210\u57fa\u7840\u73af\u5883\u4e0e\u5b89\u5168\u914d\u7f6e<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 3. \u642d\u5efa\u7f51\u7ad9\u670d\u52a1&#xff08;\u4ee5 Nginx \u4e3a\u4f8b&#xff09;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 4. \u5b9e\u73b0\u57df\u540d\u7ed1\u5b9a\u4e0e HTTPS \u52a0\u5bc6<\/p>\n<p>\u65e0\u987b Linux \u57fa\u7840&#xff0c;\u8ddf\u7740\u505a\u5c31\u884c&#xff01; \u00a0<\/p>\n<p>ps&#xff1a;\u6211\u5728\u8fd9\u91cc\u5206\u4eab\u7684\u53ea\u662f\u4e00\u4e9b\u57fa\u7840\u7684\u77e5\u8bc6&#xff0c;\u4e5f\u53ef\u80fd\u6709\u9519\u8bef&#xff0c;\u5e0c\u671b\u5927\u5bb6\u9009\u62e9\u6027\u5730\u770b<\/p>\n<hr \/>\n<h3>\u00a0\u7b2c 1 \u7ae0&#xff1a;\u51c6\u5907\u5de5\u4f5c<\/h3>\n<h4>\u4ec0\u4e48\u662f\u670d\u52a1\u5668&#xff1f;<\/h4>\n<p>\u670d\u52a1\u5668\u5c31\u662f 24 \u5c0f\u65f6\u4e0d\u5173\u673a\u7684\u8fdc\u7a0b\u7535\u8111&#xff0c;\u53ef\u4ee5\u8fd0\u884c\u7f51\u7ad9\u3001\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u7b49\u3002<\/p>\n<h4>\u63a8\u8350\u4e91\u5e73\u53f0&#xff08;\u4efb\u9009\u5176\u4e00&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u963f\u91cc\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668<\/p>\n<\/li>\n<li>\n<p>\u642c\u74e6\u5de5 VPS&#xff08;\u9002\u5408\u56fd\u5916\u90e8\u7f72&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>\u7cfb\u7edf\u9009\u62e9\u5efa\u8bae<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u63a8\u8350\u7cfb\u7edf&#xff1a;Ubuntu 20.04 LTS \u6216 Debian 11<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5b89\u88c5\u65b9\u5f0f&#xff1a;\u9009\u7cfb\u7edf\u955c\u50cf \u2192 \u9009\u62e9\u914d\u7f6e \u2192 \u521b\u5efa\u670d\u52a1\u5668<\/p>\n<hr \/>\n<h3>\u00a0\u7b2c 2 \u7ae0&#xff1a;\u8fde\u63a5\u670d\u52a1\u5668<\/h3>\n<h4>\u5b89\u88c5 SSH \u5de5\u5177<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Windows&#xff1a;\u4f7f\u7528 Xshell \u6216 MobaXterm<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0macOS\/Linux&#xff1a;\u76f4\u63a5\u7528\u7ec8\u7aef<\/p>\n<ul><\/ul>\n<h4>\u901a\u8fc7 SSH \u767b\u5f55<\/h4>\n<p>ssh root&#064;&lt;\u4f60\u7684\u670d\u52a1\u5668\u516c\u7f51IP&gt;<\/p>\n<p>\u9996\u6b21\u767b\u5f55\u53ef\u80fd\u9700\u8981\u786e\u8ba4 yes&#xff0c;\u5e76\u8f93\u5165 root \u5bc6\u7801\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 3 \u7ae0&#xff1a;\u7b2c\u4e00\u6b21\u767b\u5f55\u540e\u7684\u5fc5\u987b\u914d\u7f6e<\/h3>\n<h4>1. \u4fee\u6539 root \u5bc6\u7801<\/h4>\n<p>passwd<\/p>\n<h4>2. \u521b\u5efa\u65b0\u7528\u6237\u5e76\u6388\u6743<\/h4>\n<p>adduser myuser<br \/>\nusermod -aG sudo myuser<\/p>\n<h4>3. \u8bbe\u7f6e SSH \u5bc6\u94a5\u767b\u5f55&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u672c\u5730\u751f\u6210\u5bc6\u94a5\u5bf9&#xff08;\u5efa\u8bae RSA2048&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>ssh-keygen -t rsa -b 2048<\/p>\n<ul>\n<li>\n<p>\u5c06 ~\/.ssh\/id_rsa.pub \u5185\u5bb9\u590d\u5236\u5230\u670d\u52a1\u5668&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p>mkdir ~\/.ssh<br \/>\nnano ~\/.ssh\/authorized_keys<br \/>\n# \u7c98\u8d34\u8fdb\u53bb&#xff0c;\u4fdd\u5b58\u9000\u51fa Ctrl&#043;O \u2192 \u56de\u8f66 \u2192 Ctrl&#043;X<br \/>\nchmod 600 ~\/.ssh\/authorized_keys<\/p>\n<h4>4. \u7981\u7528 root \u5bc6\u7801\u767b\u5f55&#xff08;\u66f4\u5b89\u5168&#xff09;<\/h4>\n<p>sudo nano \/etc\/ssh\/sshd_config<br \/>\n# \u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<br \/>\nPermitRootLogin no<br \/>\nPasswordAuthentication no<\/p>\n<p>\u91cd\u542f SSH \u670d\u52a1&#xff1a;<\/p>\n<p>sudo systemctl restart sshd<\/p>\n<hr \/>\n<h3>\u00a0\u7b2c 4 \u7ae0&#xff1a;\u57fa\u7840\u73af\u5883\u914d\u7f6e<\/h3>\n<h4>\u66f4\u65b0\u7cfb\u7edf<\/h4>\n<p>sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n<h4>\u5b89\u88c5\u5e38\u7528\u5de5\u5177<\/h4>\n<p>sudo apt install vim git curl wget unzip net-tools htop -y<\/p>\n<h4>\u8bbe\u7f6e\u65f6\u533a<\/h4>\n<p>sudo timedatectl set-timezone Asia\/Shanghai<\/p>\n<hr \/>\n<h3>\u00a0\u7b2c 5 \u7ae0&#xff1a;\u914d\u7f6e\u9632\u706b\u5899<\/h3>\n<h4>\u5b89\u88c5\u5e76\u542f\u7528 UFW \u9632\u706b\u5899<\/h4>\n<p>sudo apt install ufw -y<br \/>\nsudo ufw allow 22<br \/>\nsudo ufw allow 80<br \/>\nsudo ufw allow 443<br \/>\nsudo ufw enable<\/p>\n<h4>&#xff08;\u53ef\u9009&#xff09;\u9632\u66b4\u529b\u7834\u89e3\u5de5\u5177 Fail2Ban<\/h4>\n<p>sudo apt install fail2ban -y<br \/>\nsudo systemctl enable fail2ban<br \/>\nsudo systemctl start fail2ban<\/p>\n<hr \/>\n<h3>\u00a0\u7b2c 6 \u7ae0&#xff1a;\u90e8\u7f72\u7f51\u7ad9\u670d\u52a1&#xff08;\u4ee5 Nginx \u4e3a\u4f8b&#xff09;<\/h3>\n<h4>\u5b89\u88c5 Nginx<\/h4>\n<p>sudo apt install nginx -y<\/p>\n<h4>\u521b\u5efa\u7f51\u7ad9\u6839\u76ee\u5f55\u5e76\u6dfb\u52a0\u6d4b\u8bd5\u9875<\/h4>\n<p>sudo mkdir -p \/var\/www\/myweb<br \/>\nsudo nano \/var\/www\/myweb\/index.html<\/p>\n<p>\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;h1&gt;\u6b22\u8fce\u6765\u5230\u6211\u7684\u670d\u52a1\u5668&lt;\/h1&gt;<\/p>\n<h4>\u914d\u7f6e Nginx \u865a\u62df\u4e3b\u673a<\/h4>\n<p>sudo nano \/etc\/nginx\/sites-available\/myweb<\/p>\n<p>\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name yourdomain.com;<br \/>\n    root \/var\/www\/myweb;<br \/>\n    index index.html;<br \/>\n}<\/p>\n<p>\u542f\u7528\u914d\u7f6e&#xff1a;<\/p>\n<p>sudo ln -s \/etc\/nginx\/sites-available\/myweb \/etc\/nginx\/sites-enabled\/<br \/>\nsudo nginx -t<br \/>\nsudo systemctl reload nginx<\/p>\n<hr \/>\n<h3>\u7b2c 7 \u7ae0&#xff1a;\u7ed1\u5b9a\u57df\u540d&#xff08;\u9009\u914d&#xff09;<\/h3>\n<h4>\u5728\u57df\u540d\u63a7\u5236\u53f0\u6dfb\u52a0 A \u8bb0\u5f55<\/h4>\n<ul>\n<li>\n<p>\u4e3b\u673a\u8bb0\u5f55&#xff1a;&#064;<\/p>\n<\/li>\n<li>\n<p>\u7c7b\u578b&#xff1a;A<\/p>\n<\/li>\n<li>\n<p>\u8bb0\u5f55\u503c&#xff1a;\u4f60\u7684\u670d\u52a1\u5668\u516c\u7f51 IP<\/p>\n<\/li>\n<\/ul>\n<h4>\u4fee\u6539 Nginx \u914d\u7f6e\u4e2d\u7684 server_name \u4e3a\u4f60\u7684\u57df\u540d<\/h4>\n<hr \/>\n<h3>\u7b2c 8 \u7ae0&#xff1a;\u914d\u7f6e HTTPS&#xff08;SSL \u52a0\u5bc6&#xff09;<\/h3>\n<h4>\u5b89\u88c5 acme.sh&#xff08;\u81ea\u52a8\u7533\u8bf7\u8bc1\u4e66&#xff09;<\/h4>\n<p>curl https:\/\/get.acme.sh | sh<br \/>\nsource ~\/.bashrc<\/p>\n<h4>\u7533\u8bf7\u8bc1\u4e66&#xff08;\u4ee5 nginx &#043; \u81ea\u5b9a\u4e49\u57df\u540d\u4e3a\u4f8b&#xff09;<\/h4>\n<p>~\/.acme.sh\/acme.sh &#8211;issue -d yourdomain.com &#8211;webroot \/var\/www\/myweb<\/p>\n<h4>\u5b89\u88c5\u8bc1\u4e66\u5230 nginx \u8def\u5f84<\/h4>\n<p>~\/.acme.sh\/acme.sh &#8211;install-cert -d yourdomain.com \\\\<br \/>\n&#8211;key-file \/etc\/nginx\/ssl\/yourdomain.key \\\\<br \/>\n&#8211;fullchain-file \/etc\/nginx\/ssl\/yourdomain.cer \\\\<br \/>\n&#8211;reloadcmd &#034;systemctl reload nginx&#034;<\/p>\n<h4>\u4fee\u6539 Nginx \u914d\u7f6e\u542f\u7528 SSL<\/h4>\n<p>server {<br \/>\n    listen 443 ssl;<br \/>\n    server_name yourdomain.com;<br \/>\n    ssl_certificate \/etc\/nginx\/ssl\/yourdomain.cer;<br \/>\n    ssl_certificate_key \/etc\/nginx\/ssl\/yourdomain.key;<br \/>\n    root \/var\/www\/myweb;<br \/>\n    index index.html;<br \/>\n}<\/p>\n<hr \/>\n<h3>\u7b2c 9 \u7ae0&#xff1a;\u5e38\u89c1\u547d\u4ee4\u4e0e\u95ee\u9898\u6392\u67e5<\/h3>\n<h4>\u5e38\u7528\u547d\u4ee4\u901f\u67e5\u8868<\/h4>\n<table>\n<tr>\u64cd\u4f5c\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>\u91cd\u542f\u670d\u52a1\u5668<\/td>\n<td>reboot<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u770b\u5185\u5b58\u4f7f\u7528<\/td>\n<td>htop \u6216 free -h<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u770b\u78c1\u76d8\u4f7f\u7528<\/td>\n<td>df -h<\/td>\n<\/tr>\n<tr>\n<td>\u7f16\u8f91\u6587\u4ef6<\/td>\n<td>nano filename<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u770b\u670d\u52a1\u72b6\u6001<\/td>\n<td>systemctl status nginx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u767b\u5f55\u4e0d\u4e0a\u600e\u4e48\u529e&#xff1f;<\/h4>\n<ul>\n<li>\n<p>\u68c0\u67e5\u662f\u5426\u6539\u9519\u4e86 SSH \u914d\u7f6e&#xff08;\u53ef\u901a\u8fc7\u63a7\u5236\u53f0\u6062\u590d&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u5173\u95ed\u4e86 22 \u7aef\u53e3&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<h4>\u7f51\u7ad9\u6253\u4e0d\u5f00&#xff1f;<\/h4>\n<ul>\n<li>\n<p>Nginx \u914d\u7f6e\u662f\u5426\u751f\u6548&#xff1a;sudo nginx -t<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u91cd\u8f7d\u670d\u52a1&#xff1a;sudo systemctl reload nginx<\/p>\n<\/li>\n<li>\n<p>\u9632\u706b\u5899\u662f\u5426\u653e\u884c 80\/443<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>\u6559\u7a0b\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u672c\u6559\u7a0b&#xff0c;\u4f60\u5df2\u7ecf\u5b8c\u6210&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e91\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56fa<\/p>\n<\/li>\n<li>\n<p>Nginx \u90e8\u7f72\u4e0e\u7f51\u7ad9\u4e0a\u7ebf<\/p>\n<\/li>\n<li>\n<p>\u57df\u540d\u7ed1\u5b9a\u4e0e HTTPS \u914d\u7f6e<\/p>\n<\/li>\n<\/ul>\n<p>\u672a\u6765\u4f60\u53ef\u4ee5\u7ee7\u7eed\u5c1d\u8bd5&#xff1a;\u90e8\u7f72 WordPress\u3001\u5b89\u88c5\u6570\u636e\u5e93\u3001\u642d\u5efa\u535a\u5ba2\u3001\u8fd0\u884c AI \u5e94\u7528\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u670d\u52a1\u5668\u5c31\u662f 24 \u5c0f\u65f6\u4e0d\u5173\u673a\u7684\u8fdc\u7a0b\u7535\u8111\uff0c\u53ef\u4ee5\u8fd0\u884c\u7f51\u7ad9\u3001\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u7b49\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u4f60\u5df2\u7ecf\u5b8c\u6210\uff1a\u4e91\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56faNginx \u90e8\u7f72\u4e0e\u7f51\u7ad9\u4e0a\u7ebf\u57df\u540d\u7ed1\u5b9a\u4e0e HTTPS \u914d\u7f6e\u672a\u6765\u4f60\u53ef\u4ee5\u7ee7\u7eed\u5c1d\u8bd5\uff1a\u90e8\u7f72 WordPress\u3001\u5b89\u88c5\u6570\u636e\u5e93\u3001\u642d\u5efa\u535a\u5ba2\u3001\u8fd0\u884c AI \u5e94\u7528\u7b49\u3002<\/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":[402,103,43],"topic":[],"class_list":["post-47243","post","type-post","status-publish","format-standard","hentry","category-server","tag-debian","tag-ubuntu","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \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\/47243.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u670d\u52a1\u5668\u5c31\u662f 24 \u5c0f\u65f6\u4e0d\u5173\u673a\u7684\u8fdc\u7a0b\u7535\u8111\uff0c\u53ef\u4ee5\u8fd0\u884c\u7f51\u7ad9\u3001\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u7b49\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u4f60\u5df2\u7ecf\u5b8c\u6210\uff1a\u4e91\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56faNginx \u90e8\u7f72\u4e0e\u7f51\u7ad9\u4e0a\u7ebf\u57df\u540d\u7ed1\u5b9a\u4e0e HTTPS \u914d\u7f6e\u672a\u6765\u4f60\u53ef\u4ee5\u7ee7\u7eed\u5c1d\u8bd5\uff1a\u90e8\u7f72 WordPress\u3001\u5b89\u88c5\u6570\u636e\u5e93\u3001\u642d\u5efa\u535a\u5ba2\u3001\u8fd0\u884c AI \u5e94\u7528\u7b49\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47243.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T23:12:27+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\/47243.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47243.html\",\"name\":\"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T23:12:27+00:00\",\"dateModified\":\"2025-07-29T23:12:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47243.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47243.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47243.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09\"}]},{\"@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":"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \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\/47243.html","og_locale":"zh_CN","og_type":"article","og_title":"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u670d\u52a1\u5668\u5c31\u662f 24 \u5c0f\u65f6\u4e0d\u5173\u673a\u7684\u8fdc\u7a0b\u7535\u8111\uff0c\u53ef\u4ee5\u8fd0\u884c\u7f51\u7ad9\u3001\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u7b49\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u4f60\u5df2\u7ecf\u5b8c\u6210\uff1a\u4e91\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56faNginx \u90e8\u7f72\u4e0e\u7f51\u7ad9\u4e0a\u7ebf\u57df\u540d\u7ed1\u5b9a\u4e0e HTTPS \u914d\u7f6e\u672a\u6765\u4f60\u53ef\u4ee5\u7ee7\u7eed\u5c1d\u8bd5\uff1a\u90e8\u7f72 WordPress\u3001\u5b89\u88c5\u6570\u636e\u5e93\u3001\u642d\u5efa\u535a\u5ba2\u3001\u8fd0\u884c AI \u5e94\u7528\u7b49\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/47243.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T23:12:27+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\/47243.html","url":"https:\/\/www.wsisp.com\/helps\/47243.html","name":"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T23:12:27+00:00","dateModified":"2025-07-29T23:12:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47243.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47243.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47243.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u65b0\u624b\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u7684\u670d\u52a1\u5668\u521d\u6b65\u914d\u7f6e\u6559\u7a0b\uff08\u9002\u7528\u4e8e Ubuntu\/Debian\uff09"}]},{"@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\/47243","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=47243"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47243\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47243"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}