{"id":84984,"date":"2026-07-26T21:40:43","date_gmt":"2026-07-26T13:40:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84984.html"},"modified":"2026-07-26T21:40:43","modified_gmt":"2026-07-26T13:40:43","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e5%85%a8%e5%8a%a0%e5%9b%ba%e9%80%9f%e6%9f%a5%e8%a1%a8%ef%bc%88%e8%90%bd%e5%9c%b0%e7%89%88%ef%bd%9c%e5%90%ab%e5%91%bd%e4%bb%a4%e6%b8%85%e5%8d%95%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84984.html","title":{"rendered":"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\uff09"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726134042-6a660e5a873ba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9002\u7528\u8303\u56f4\u4e0e\u4f7f\u7528\u539f\u5219<\/h3>\n<ul>\n<li>\u9002\u7528&#xff1a;Debian\/Ubuntu&#xff08;apt&#xff09;\u3001RHEL\/CentOS\/Rocky\/Alma&#xff08;dnf\/yum&#xff09;\u3001\u88f8\u673a\/\u865a\u673a\/\u4e91\u4e3b\u673a\/K8s \u8282\u70b9<\/li>\n<li>\u539f\u5219&#xff1a;\u5148\u201c\u80fd\u767b\u5f55\u201d\u518d\u52a0\u56fa&#xff1b;\u5148\u201c\u7559\u540e\u8def\u201d\u518d\u6536\u53e3&#xff08;\u4fdd\u7559\u5e94\u6025\u8d26\u53f7\/\u63a7\u5236\u53f0\u901a\u9053\/\u56de\u6eda\u65b9\u6848&#xff09;<\/li>\n<li>\u5efa\u8bae\u987a\u5e8f&#xff1a;\u57fa\u7840\u5fc5\u505a \u2192 SSH\/\u9632\u706b\u5899 \u2192 \u6700\u5c0f\u6743\u9650 \u2192 \u5165\u4fb5\u9632\u62a4 \u2192 \u8bbf\u95ee\u63a7\u5236\/\u5ba1\u8ba1 \u2192 \u6587\u4ef6\u4e0d\u53ef\u53d8\/\u57fa\u7ebf\u56fa\u5316<\/li>\n<\/ul>\n<hr \/>\n<h3>Part 1&#xff1a;\u57fa\u7840\u5fc5\u505a&#xff08;\u4e0a\u7ebf\u524d 30 \u5206\u949f\u80fd\u505a\u5b8c&#xff09;<\/h3>\n<h4>1&#xff09;\u7cfb\u7edf\u66f4\u65b0\u4e0e\u6f0f\u6d1e\u9762\u6536\u655b&#xff08;apt\/yum\/dnf&#xff09;<\/h4>\n<p><span class=\"token comment\"># Debian\/Ubuntu<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> -y upgrade<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> -y autoremove<\/p>\n<p><span class=\"token comment\"># RHEL\u7cfb<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dnf -y update <span class=\"token operator\">||<\/span> <span class=\"token function\">sudo<\/span> yum -y update<br \/>\n<span class=\"token function\">sudo<\/span> dnf -y autoremove <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<p>\u8865\u5145\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u5185\u6838\/openssl\/openssh \u66f4\u65b0\u6d89\u53ca\u91cd\u542f\u6216\u670d\u52a1\u91cd\u542f&#xff1a;\u8bb0\u5f55\u53d8\u66f4\u7a97\u53e3\u4e0e\u56de\u6eda\u70b9<\/li>\n<li>\u751f\u4ea7\u73af\u5883\u4f18\u5148\u8d70\u5185\u90e8\u955c\u50cf\u6e90\/\u5236\u54c1\u5e93&#xff0c;\u51cf\u5c11\u4e0d\u53ef\u63a7\u4f9d\u8d56<\/li>\n<\/ul>\n<hr \/>\n<h4>2&#xff09;\u7528\u6237\u4e0e\u6743\u9650&#xff08;useradd\/usermod&#xff09;\u2014\u2014\u7981\u6b62\u201c\u591a\u4eba\u5171\u7528 root\u201d<\/h4>\n<p><span class=\"token comment\"># \u65b0\u5efa\u8fd0\u7ef4\u8d26\u53f7&#xff08;\u793a\u4f8b&#xff1a;opsadmin&#xff09;&#xff0c;\u52a0\u5165 sudo\/wheel<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">useradd<\/span> -m -s \/bin\/bash opsadmin<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">passwd<\/span> opsadmin<\/p>\n<p><span class=\"token comment\"># Debian\/Ubuntu<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">usermod<\/span> -aG <span class=\"token function\">sudo<\/span> opsadmin<\/p>\n<p><span class=\"token comment\"># RHEL\u7cfb<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">usermod<\/span> -aG wheel opsadmin<\/p>\n<p>\u6700\u4f4e\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u4eba\u72ec\u7acb\u8d26\u53f7&#xff08;\u53ef\u5ba1\u8ba1\u3001\u53ef\u8ffd\u8d23&#xff09;<\/li>\n<li>\u9700\u8981\u63d0\u6743\u65f6\u8d70 sudo&#xff0c;\u800c\u4e0d\u662f\u5171\u4eab root \u5bc6\u7801<\/li>\n<\/ul>\n<hr \/>\n<h4>3&#xff09;\u5bc6\u7801\u7b56\u7565\u4e0e\u8d26\u53f7\u8001\u5316&#xff08;chage\/passwd&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b\u8d26\u53f7\u5bc6\u7801\u8001\u5316\u7b56\u7565<\/span><br \/>\n<span class=\"token function\">sudo<\/span> chage -l opsadmin<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e&#xff1a;90\u5929\u8fc7\u671f\u30017\u5929\u63d0\u9192\u3001\u8fc7\u671f\u540e14\u5929\u9501\u5b9a&#xff08;\u793a\u4f8b&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> chage -M <span class=\"token number\">90<\/span> -W <span class=\"token number\">7<\/span> -I <span class=\"token number\">14<\/span> opsadmin<\/p>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u201c\u5f31\u53e3\u4ee4\/\u957f\u671f\u4e0d\u6362\u201d\u662f\u7b49\u4fdd\/\u5185\u5ba1\u9ad8\u9891\u95ee\u9898<\/li>\n<li>\u4f46\u66f4\u63a8\u8350 SSH Key &#043; \u7981\u7528\u5bc6\u7801\u767b\u5f55&#xff08;\u89c1\u540e\u6587 SSH&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h4>4&#xff09;\u9501\u5b9a root \u8d26\u53f7&#xff08;\u8c28\u614e&#xff09;<\/h4>\n<p>\u53ea\u6709\u5728\u4f60\u5df2\u9a8c\u8bc1\u201c\u53ef\u7528\u7684\u975e root \u7ba1\u7406\u901a\u9053&#xff08;sudo &#043; SSH key\/\u63a7\u5236\u53f0&#xff09;\u201d\u540e\u518d\u505a\u3002<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">passwd<\/span> -l root<\/p>\n<hr \/>\n<h4>5&#xff09;SSH \u57fa\u7840\u52a0\u56fa&#xff08;Port \/ PermitRootLogin \u7b49&#xff09;<\/h4>\n<p>\u7f16\u8f91 \/etc\/ssh\/sshd_config&#xff08;\u4fee\u6539\u524d\u5148\u5907\u4efd&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> -a \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config.bak.<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%F_%T<span class=\"token variable\">)<\/span><\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/ssh\/sshd_config<\/p>\n<p>\u63a8\u8350\u57fa\u7ebf&#xff08;\u6309\u9700\u53d6\u820d&#xff09;&#xff1a;<\/p>\n<p>Port 22<br \/>\nPermitRootLogin no<br \/>\nPasswordAuthentication no<br \/>\nPubkeyAuthentication yes<br \/>\nPermitEmptyPasswords no<br \/>\nChallengeResponseAuthentication no<br \/>\nUseDNS no<br \/>\nMaxAuthTries 3<br \/>\nClientAliveInterval 300<br \/>\nClientAliveCountMax 2<br \/>\nAllowUsers opsadmin<\/p>\n<p>\u751f\u6548&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> sshd -t <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> systemctl reload sshd<\/p>\n<p>\u63d0\u9192&#xff1a;<\/p>\n<ul>\n<li>\u6539\u7aef\u53e3\u2260\u5b89\u5168\u672c\u8d28&#xff0c;\u4f46\u80fd\u964d\u4f4e\u626b\u63cf\u566a\u58f0&#xff1b;\u6838\u5fc3\u662f \u7981 root\u3001\u7981\u5bc6\u7801\u3001\u53ea\u5141\u8bb8\u6307\u5b9a\u7528\u6237\/\u6765\u6e90<\/li>\n<li>\u7981\u7528\u5bc6\u7801\u524d\u5148\u5728\u65b0\u7ec8\u7aef\u9a8c\u8bc1 key \u767b\u5f55&#xff0c;\u907f\u514d\u628a\u81ea\u5df1\u9501\u5916\u9762<\/li>\n<\/ul>\n<hr \/>\n<h4>6&#xff09;\u9632\u706b\u5899&#xff08;ufw \/ firewalld&#xff09;\u2014\u2014\u53ea\u653e\u884c\u4e1a\u52a1\u5fc5\u8981\u7aef\u53e3<\/h4>\n<p>Ubuntu&#xff08;ufw&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> ufw default deny incoming<br \/>\n<span class=\"token function\">sudo<\/span> ufw default allow outgoing<br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">22<\/span>\/tcp<br \/>\n<span class=\"token function\">sudo<\/span> ufw <span class=\"token builtin class-name\">enable<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw status verbose<\/p>\n<p>RHEL\u7cfb&#xff08;firewalld&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> &#8211;now firewalld<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;set-default-zone<span class=\"token operator\">&#061;<\/span>public<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;permanent &#8211;add-service<span class=\"token operator\">&#061;<\/span>ssh<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;permanent &#8211;remove-service<span class=\"token operator\">&#061;<\/span>cockpit <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;reload<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;list-all<\/p>\n<p>\u8fdb\u9636&#xff1a;\u4ec5\u5141\u8bb8\u8fd0\u7ef4\u51fa\u53e3 IP&#xff08;\u66f4\u8d34\u8fd1\u4f01\u4e1a\u771f\u5b9e\u505a\u6cd5&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b&#xff1a;\u53ea\u5141\u8bb8 203.0.113.10 \u7ba1\u7406\u673a\u8bbf\u95ee SSH<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;permanent &#8211;add-rich-rule<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;rule family&#061;&#034;ipv4&#034; source address&#061;&#034;203.0.113.10\/32&#034; service name&#061;&#034;ssh&#034; accept&#039;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;permanent &#8211;remove-service<span class=\"token operator\">&#061;<\/span>ssh<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd &#8211;reload<\/p>\n<hr \/>\n<h4>7&#xff09;\u7981\u7528\u4e0d\u5fc5\u8981\u670d\u52a1&#xff08;systemctl disable&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u5217\u51fa\u5f00\u673a\u81ea\u542f<\/span><br \/>\nsystemctl list-unit-files &#8211;state<span class=\"token operator\">&#061;<\/span>enabled<\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b&#xff1a;\u5173\u95ed\u4e0d\u9700\u8981\u7684\u670d\u52a1&#xff08;\u6309\u5b9e\u9645&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl disable &#8211;now avahi-daemon <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl disable &#8211;now cups <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<p>\u5efa\u8bae\u505a\u6cd5&#xff1a;\u5148 &#8211;now stop \u9a8c\u8bc1\u4e1a\u52a1\u65e0\u5f71\u54cd&#xff0c;\u518d disable\u3002<\/p>\n<hr \/>\n<h4>8&#xff09;\u6587\u4ef6\u6743\u9650\u57fa\u7840&#xff08;chmod\/chown&#xff09;\u2014\u2014\u522b\u628a 777 \u5f53\u4e07\u80fd\u836f<\/h4>\n<p>\u5e38\u89c1\u6b63\u786e\u59ff\u52bf&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u76ee\u5f55&#xff1a;750&#xff0c;\u6587\u4ef6&#xff1a;640&#xff08;\u793a\u4f8b&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> -R appuser:appgroup \/opt\/myapp<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/opt\/myapp -type d -exec <span class=\"token function\">chmod<\/span> <span class=\"token number\">750<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">\\\\<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">find<\/span> \/opt\/myapp -type f -exec <span class=\"token function\">chmod<\/span> <span class=\"token number\">640<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">\\\\<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u5178\u578b\u7ea2\u7ebf&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u914d\u7f6e\u6587\u4ef6&#xff08;\u542b\u5bc6\u94a5\u3001token&#xff09;\u5bf9 \u201cothers \u53ef\u8bfb\u201d<\/p>\n<\/li>\n<li>\n<p>Web \u76ee\u5f55\u53ef\u5199\u5bfc\u81f4\u88ab\u690d\u5165 webshell<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>9&#xff09;\u65f6\u95f4\u540c\u6b65&#xff08;timedatectl\/ntp\/chrony&#xff09;<\/h4>\n<p>timedatectl status<br \/>\n<span class=\"token comment\"># \u5e38\u89c1\u662f chrony<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> &#8211;now chronyd <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><br \/>\nchronyc tracking <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<hr \/>\n<h4>10&#xff09;\u5f53\u524d\u767b\u5f55\u4f1a\u8bdd\u6392\u67e5&#xff08;w\/last\/who&#xff09;<\/h4>\n<p>w<br \/>\n<span class=\"token function\">who<\/span><br \/>\nlast -a <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span><\/p>\n<hr \/>\n<h4>11&#xff09;\u5386\u53f2\u8bb0\u5f55\u4e0e\u5ba1\u8ba1&#xff08;\u4e0d\u8981\u53ea\u4f1a history -c&#xff09;<\/h4>\n<p>\u5f88\u591a\u6587\u7ae0\u4f1a\u63d0 \u201c\u6e05\u5386\u53f2\u201d&#xff0c;\u4f46\u5728\u4f01\u4e1a\u573a\u666f\u66f4\u63a8\u8350&#xff1a;<\/p>\n<ul>\n<li>\u4fdd\u7559\u5ba1\u8ba1\u8bc1\u636e&#xff1a;\u547d\u4ee4\u5ba1\u8ba1\u3001\u5821\u5792\u673a\u3001\u96c6\u4e2d\u65e5\u5fd7<\/li>\n<li>\u5355\u7eaf history -c \u53cd\u800c\u4f1a\u89e6\u53d1\u5b89\u5168\u5408\u89c4\u98ce\u9669&#xff08;\u7591\u4f3c\u63a9\u76d6\u75d5\u8ff9&#xff09;<br \/>\n\u5982\u679c\u4f60\u53ea\u662f\u60f3\u907f\u514d\u5199\u5165\u654f\u611f\u547d\u4ee4&#xff0c;\u53ef\u4e34\u65f6\u5173\u95ed history&#xff1a;<\/li>\n<\/ul>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">HISTFILE<\/span><\/span><span class=\"token operator\">&#061;<\/span>\/dev\/null<br \/>\n<span class=\"token comment\"># \u6216\u8005\u5bf9\u5355\u6761\u547d\u4ee4\u524d\u52a0\u7a7a\u683c&#xff08;\u9700 HISTCONTROL&#061;ignorespace&#xff09;<\/span><\/p>\n<hr \/>\n<h3>Part 2&#xff1a;\u751f\u4ea7\u7ea7\u52a0\u56fa&#xff08;\u628a\u201c\u80fd\u7528\u201d\u63d0\u5347\u5230\u201c\u53ef\u63a7\u3001\u53ef\u5ba1\u8ba1\u3001\u53ef\u9632\u62a4\u201d&#xff09;<\/h3>\n<h4>1&#xff09;Sudoers \u6700\u5c0f\u6743\u9650&#xff08;visudo \/ NOPASSWD \u98ce\u9669&#xff09;<\/h4>\n<p>\u7f16\u8f91 sudo \u89c4\u5219\u52a1\u5fc5\u7528 visudo&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> visudo<\/p>\n<p>\u63a8\u8350\u6a21\u5f0f&#xff08;\u793a\u4f8b&#xff1a;\u4ec5\u5141\u8bb8\u91cd\u542f nginx\u3001\u67e5\u770b\u65e5\u5fd7&#xff09;&#xff1a;<\/p>\n<p>opsadmin ALL&#061;(root) NOPASSWD:\/bin\/systemctl restart nginx,\/bin\/systemctl status nginx,\/usr\/bin\/tail -n 200 \/var\/log\/nginx\/error.log<\/p>\n<p>\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>NOPASSWD \u4e0d\u662f\u4e0d\u80fd\u7528&#xff0c;\u4f46\u5fc5\u987b\u9650\u5b9a\u5230\u5177\u4f53\u547d\u4ee4&#xff0c;\u907f\u514d ALL \u7ea7\u522b<\/li>\n<li>\u907f\u514d\u5141\u8bb8\u53ef\u95f4\u63a5\u63d0\u6743\u7684\u547d\u4ee4&#xff08;\u5982\u53ef\u7f16\u8f91\u4efb\u610f\u6587\u4ef6\u7684\u7f16\u8f91\u5668\u3001\u53ef\u6267\u884c shell \u7684\u5de5\u5177&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h4>2&#xff09;SSH \u8fdb\u9636&#xff1a;\u5bc6\u94a5\u767b\u5f55 &#043; \u53ef\u9009 2FA&#xff08;\u6309\u7ec4\u7ec7\u80fd\u529b&#xff09;<\/h4>\n<p>\u751f\u6210\u5bc6\u94a5&#xff08;\u5ba2\u6237\u7aef\u6267\u884c&#xff09;&#xff1a;<\/p>\n<p>ssh-keygen -t ed25519 -C <span class=\"token string\">&#034;opsadmin&#064;company&#034;<\/span><br \/>\nssh-copy-id -i ~\/.ssh\/id_ed25519.pub opsadmin&#064;SERVER_IP<\/p>\n<p>\u670d\u52a1\u7aef\u4fa7\u5f3a\u5316&#xff08;sshd_config&#xff09;&#xff1a;<\/p>\n<p>AuthenticationMethods publickey<br \/>\n# \u53ef\u9009&#xff1a;\u9650\u5236\u6765\u6e90<br \/>\nAllowUsers opsadmin<\/p>\n<p>2FA \u5efa\u8bae\u5728\u201c\u5821\u5792\u673a\/\u96f6\u4fe1\u4efb\u201d\u4fa7\u5b9e\u73b0\u4f18\u5148\u3002<\/p>\n<hr \/>\n<h4>3&#xff09;\u5165\u4fb5\u9632\u62a4&#xff1a;Fail2ban&#xff08;\u5bf9\u6297\u7206\u7834&#xff09;<\/h4>\n<p>\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token comment\"># Debian\/Ubuntu<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> -y <span class=\"token function\">install<\/span> fail2ban<br \/>\n<span class=\"token comment\"># RHEL\u7cfb<\/span><br \/>\n<span class=\"token function\">sudo<\/span> dnf -y <span class=\"token function\">install<\/span> fail2ban <span class=\"token operator\">||<\/span> <span class=\"token function\">sudo<\/span> yum -y <span class=\"token function\">install<\/span> fail2ban<\/p>\n<p>\u914d\u7f6e&#xff08;\u63a8\u8350\u5199 jail.local&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> \/etc\/fail2ban\/jail.conf \/etc\/fail2ban\/jail.local<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/fail2ban\/jail.local<\/p>\n<p>\u793a\u4f8b&#xff08;SSH&#xff09;&#xff1a;<\/p>\n<p>[sshd]<br \/>\nenabled &#061; true<br \/>\nport &#061; ssh<br \/>\nmaxretry &#061; 3<br \/>\nfindtime &#061; 10m<br \/>\nbantime &#061; 1h<\/p>\n<p>\u542f\u52a8&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> &#8211;now fail2ban<br \/>\n<span class=\"token function\">sudo<\/span> fail2ban-client status sshd<\/p>\n<hr \/>\n<h4>4&#xff09;\u5173\u952e\u6587\u4ef6\u4e0d\u53ef\u53d8&#xff08;chattr &#043;i \/ lsattr&#xff09;\u2014\u2014\u201c\u9632\u8bef\u6539\u3001\u9632\u7be1\u6539\u201d\u7684\u6700\u540e\u4e00\u9053\u9501<\/h4>\n<p><span class=\"token comment\"># \u9501\u5b9a sshd_config&#xff08;\u786e\u8ba4\u65e0\u8bef\u518d\u9501&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> chattr &#043;i \/etc\/ssh\/sshd_config<br \/>\nlsattr \/etc\/ssh\/sshd_config<\/p>\n<p><span class=\"token comment\"># \u9700\u8981\u6539\u56de&#xff1a;\u5148\u89e3\u9501<\/span><br \/>\n<span class=\"token function\">sudo<\/span> chattr -i \/etc\/ssh\/sshd_config<\/p>\n<p>\u6ce8\u610f&#xff1a;\u4f1a\u5f71\u54cd\u81ea\u52a8\u5316\u914d\u7f6e\u7ba1\u7406&#xff08;Ansible\/Salt&#xff09;&#xff0c;\u9700\u7eb3\u5165\u53d8\u66f4\u6d41\u7a0b\u3002<\/p>\n<hr \/>\n<h4>5&#xff09;ACL \u7cbe\u7ec6\u6388\u6743&#xff08;setfacl\/getfacl&#xff09;\u2014\u2014\u4e0d\u6539\u5c5e\u4e3b\u4e5f\u80fd\u6388\u6743<\/h4>\n<p><span class=\"token comment\"># \u8ba9 opsadmin \u53ea\u8bfb\u67d0\u65e5\u5fd7\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">sudo<\/span> setfacl -m u:opsadmin:rx \/var\/log\/myapp<br \/>\n<span class=\"token function\">sudo<\/span> setfacl -m u:opsadmin:r&#8211; \/var\/log\/myapp\/app.log<\/p>\n<p>getfacl \/var\/log\/myapp\/app.log<\/p>\n<hr \/>\n<h3>\u201c\u5408\u89c4\u95ed\u73af\u201d\u8865\u5145<\/h3>\n<h4>A&#xff09;\u6700\u5c0f\u66b4\u9732\u9762\u6e05\u5355&#xff08;\u4f60\u53ef\u4ee5\u5f53\u4f5c\u4e0a\u7ebf Checklist&#xff09;<\/h4>\n<ul>\n<li>SSH&#xff1a;\u7981 root\u3001\u7981\u5bc6\u7801\u3001\u9650\u5b9a\u7528\u6237\/\u6765\u6e90<\/li>\n<li>\u9632\u706b\u5899&#xff1a;\u9ed8\u8ba4\u62d2\u7edd\u5165\u7ad9&#xff0c;\u53ea\u653e\u884c\u4e1a\u52a1\u7aef\u53e3<\/li>\n<li>\u8d26\u53f7&#xff1a;\u72ec\u7acb\u8d26\u53f7 &#043; sudo \u6700\u5c0f\u6743\u9650<\/li>\n<li>\u66f4\u65b0&#xff1a;\u7cfb\u7edf\u4e0e\u5173\u952e\u7ec4\u4ef6\u5b8c\u6210\u5b89\u5168\u66f4\u65b0<\/li>\n<li>\u5ba1\u8ba1&#xff1a;\u81f3\u5c11\u5177\u5907\u767b\u5f55\u8bb0\u5f55\u3001sudo \u8bb0\u5f55\u3001\u5173\u952e\u65e5\u5fd7\u7559\u5b58<\/li>\n<li>\u9632\u7206\u7834&#xff1a;fail2ban\/\u5821\u5792\u673a\u7b56\u7565\u542f\u7528<\/li>\n<li>\u914d\u7f6e\u56fa\u5316&#xff1a;\u5173\u952e\u914d\u7f6e\u5907\u4efd\u3001\u53d8\u66f4\u53ef\u56de\u6eda<\/li>\n<\/ul>\n<h4>B&#xff09;\u5e38\u7528\u81ea\u68c0\u547d\u4ee4<\/h4>\n<p><span class=\"token comment\"># \u76d1\u542c\u7aef\u53e3\u4e0e\u8fdb\u7a0b<\/span><br \/>\nss -lntup<br \/>\n<span class=\"token function\">ps<\/span> aux &#8211;sort<span class=\"token operator\">&#061;<\/span>-%cpu <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span><br \/>\n<span class=\"token function\">ps<\/span> aux &#8211;sort<span class=\"token operator\">&#061;<\/span>-%mem <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span><\/p>\n<p><span class=\"token comment\"># SSH \u5173\u952e\u9879\u5feb\u901f\u786e\u8ba4<\/span><br \/>\nsshd -T <span class=\"token operator\">|<\/span> <span class=\"token function\">egrep<\/span> <span class=\"token string\">&#039;permitrootlogin|passwordauthentication|pubkeyauthentication|maxauthtries&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u9632\u706b\u5899\u72b6\u6001<\/span><br \/>\nufw status verbose <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><br \/>\nfirewall-cmd &#8211;state <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><br \/>\nfirewall-cmd &#8211;list-all <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">||<\/span> <span class=\"token boolean\">true<\/span><\/p>\n<p><span class=\"token comment\"># \u767b\u5f55\u4e0e\u5931\u8d25\u5c1d\u8bd5&#xff08;\u6309\u53d1\u884c\u7248\u65e5\u5fd7\u8def\u5f84\u8c03\u6574&#xff09;<\/span><br \/>\nlast -a <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span><br \/>\njournalctl -u sshd &#8211;since <span class=\"token string\">&#034;24 hours ago&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tail<\/span> -n <span class=\"token number\">50<\/span><\/p>\n<hr \/>\n<h3>\u7ed3\u8bed&#xff1a;\u628a\u201c\u80fd\u7528\u7684 Linux\u201d\u53d8\u6210\u201c\u53ef\u63a7\u7684 Linux\u201d<\/h3>\n<p>\u901f\u67e5\u8868\u7684\u610f\u4e49\u4e0d\u662f\u5806\u547d\u4ee4&#xff0c;\u800c\u662f\u5f62\u6210\u53ef\u590d\u7528\u7684\u57fa\u7ebf&#xff1a;<\/p>\n<ul>\n<li>\u6709\u6807\u51c6&#xff08;SSH\/\u9632\u706b\u5899\/\u6743\u9650\/\u5ba1\u8ba1&#xff09;<\/li>\n<li>\u6709\u8bc1\u636e&#xff08;\u53ef\u9a8c\u8bc1\u3001\u53ef\u8ffd\u8e2a&#xff09;<\/li>\n<li>\u6709\u56de\u6eda&#xff08;\u53ef\u6062\u590d\u3001\u53ef\u5e94\u6025&#xff09;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u8303\u56f4\u4e0e\u4f7f\u7528\u539f\u5219<br \/>\n\u9002\u7528&#xff1a;Debian\/Ubuntu&#xff08;apt&#xff09;\u3001RHEL\/CentOS\/Rocky\/Alma&#xff08;dnf\/yum&#xff09;\u3001\u88f8\u673a\/\u865a\u673a\/\u4e91\u4e3b\u673a\/K8s \u8282\u70b9\u539f\u5219&#xff1a;\u5148\u201c\u80fd\u767b\u5f55\u201d\u518d\u52a0\u56fa&#xff1b;\u5148\u201c\u7559\u540e\u8def\u201d\u518d\u6536\u53e3&#xff08;\u4fdd\u7559\u5e94\u6025\u8d26\u53f7\/\u63a7\u5236\u53f0\u901a\u9053\/\u56de\u6eda\u65b9\u6848&#xff09;\u5efa\u8bae\u987a\u5e8f&#xff1a;\u57fa\u7840\u5fc5\u505a \u2192 SSH\/\u9632\u706b\u5899 \u2192 \u6700\u5c0f\u6743\u9650 \u2192 \u5165\u4fb5\u9632\u62a4 \u2192 \u8bbf\u95ee\u63a7\u5236\/\u5ba1\u8ba1 \u2192 \u6587\u4ef6\u4e0d<\/p>\n","protected":false},"author":2,"featured_media":84983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,61,43,472,44],"topic":[],"class_list":["post-84984","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-61","tag-43","tag-472","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\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\/84984.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9002\u7528\u8303\u56f4\u4e0e\u4f7f\u7528\u539f\u5219 \u9002\u7528&#xff1a;Debian\/Ubuntu&#xff08;apt&#xff09;\u3001RHEL\/CentOS\/Rocky\/Alma&#xff08;dnf\/yum&#xff09;\u3001\u88f8\u673a\/\u865a\u673a\/\u4e91\u4e3b\u673a\/K8s \u8282\u70b9\u539f\u5219&#xff1a;\u5148\u201c\u80fd\u767b\u5f55\u201d\u518d\u52a0\u56fa&#xff1b;\u5148\u201c\u7559\u540e\u8def\u201d\u518d\u6536\u53e3&#xff08;\u4fdd\u7559\u5e94\u6025\u8d26\u53f7\/\u63a7\u5236\u53f0\u901a\u9053\/\u56de\u6eda\u65b9\u6848&#xff09;\u5efa\u8bae\u987a\u5e8f&#xff1a;\u57fa\u7840\u5fc5\u505a \u2192 SSH\/\u9632\u706b\u5899 \u2192 \u6700\u5c0f\u6743\u9650 \u2192 \u5165\u4fb5\u9632\u62a4 \u2192 \u8bbf\u95ee\u63a7\u5236\/\u5ba1\u8ba1 \u2192 \u6587\u4ef6\u4e0d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84984.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T13:40:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726134042-6a660e5a873ba.png\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84984.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84984.html\",\"name\":\"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T13:40:43+00:00\",\"dateModified\":\"2026-07-26T13:40:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84984.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84984.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84984.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\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":"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\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\/84984.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9002\u7528\u8303\u56f4\u4e0e\u4f7f\u7528\u539f\u5219 \u9002\u7528&#xff1a;Debian\/Ubuntu&#xff08;apt&#xff09;\u3001RHEL\/CentOS\/Rocky\/Alma&#xff08;dnf\/yum&#xff09;\u3001\u88f8\u673a\/\u865a\u673a\/\u4e91\u4e3b\u673a\/K8s \u8282\u70b9\u539f\u5219&#xff1a;\u5148\u201c\u80fd\u767b\u5f55\u201d\u518d\u52a0\u56fa&#xff1b;\u5148\u201c\u7559\u540e\u8def\u201d\u518d\u6536\u53e3&#xff08;\u4fdd\u7559\u5e94\u6025\u8d26\u53f7\/\u63a7\u5236\u53f0\u901a\u9053\/\u56de\u6eda\u65b9\u6848&#xff09;\u5efa\u8bae\u987a\u5e8f&#xff1a;\u57fa\u7840\u5fc5\u505a \u2192 SSH\/\u9632\u706b\u5899 \u2192 \u6700\u5c0f\u6743\u9650 \u2192 \u5165\u4fb5\u9632\u62a4 \u2192 \u8bbf\u95ee\u63a7\u5236\/\u5ba1\u8ba1 \u2192 \u6587\u4ef6\u4e0d","og_url":"https:\/\/www.wsisp.com\/helps\/84984.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T13:40:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726134042-6a660e5a873ba.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84984.html","url":"https:\/\/www.wsisp.com\/helps\/84984.html","name":"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T13:40:43+00:00","dateModified":"2026-07-26T13:40:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84984.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84984.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84984.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u901f\u67e5\u8868\uff08\u843d\u5730\u7248\uff5c\u542b\u547d\u4ee4\u6e05\u5355\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\/84984","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=84984"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84984\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/84983"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84984"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}