{"id":42087,"date":"2025-06-06T18:15:44","date_gmt":"2025-06-06T10:15:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42087.html"},"modified":"2025-06-06T18:15:44","modified_gmt":"2025-06-06T10:15:44","slug":"linux%e8%bf%90%e7%bb%b4%e7%ac%94%e8%ae%b0%ef%bc%9a%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e5%85%a8%e5%8a%a0%e5%9b%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42087.html","title":{"rendered":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u80cc\u666f<\/li>\n<li>\u52a0\u56fa\u63aa\u65bd<\/li>\n<li>\n<ul>\n<li>1. \u4fee\u6539\u7528\u6237\u5bc6\u7801<\/li>\n<li>2. \u4f7f\u7528\u516c\u94a5\u8ba4\u8bc1\u66ff\u4ee3\u5bc6\u7801\u767b\u5f55<\/li>\n<li>3. \u5f3a\u5316\u7cfb\u7edf\u5b89\u5168<\/li>\n<li>4. \u626b\u63cf\u4e0e\u6e05\u7406\u6b8b\u7559\u5a01\u80c1<\/li>\n<li>5. \u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406&#xff08;\u91cd\u70b9&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u6ce8\u610f\u4e8b\u9879<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u63d0\u793a&#xff1a;\u672c\u6587\u603b\u7ed3\u4e86\u5927\u5b66\u5b9e\u9a8c\u5ba4 Linux \u7535\u8111\u611f\u67d3\u6316\u77ff\u75c5\u6bd2\u540e\u7684\u5b89\u5168\u52a0\u56fa\u63aa\u65bd&#xff0c;\u91cd\u70b9\u4ecb\u7ecd\u7528\u6237\u5bc6\u7801\u7ba1\u7406\u3001\u7cfb\u7edf\u5b89\u5168\u5f3a\u5316\u3001\u5a01\u80c1\u6e05\u7406\u53ca\u8f6f\u4ef6\u7ba1\u7406\u89c4\u8303\u5316&#xff0c;\u7279\u522b\u5f3a\u8c03\u9632\u6b62\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u5a01\u80c1\u7684\u7b56\u7565\u3002\u9002\u5408\u5b9e\u9a8c\u5ba4\u7528\u6237\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u53c2\u8003\u3002<\/p>\n<h3>\u80cc\u666f<\/h3>\n<p>\u6211\u4eec\u7684\u5b9e\u9a8c\u5ba4\u7535\u8111&#xff08;Ubuntu \u7cfb\u7edf&#xff0c;\u5185\u7f51 IP 10.101.100.37&#xff09;\u8fd1\u671f\u611f\u67d3\u4e86\u7591\u4f3c\u6316\u77ff\u75c5\u6bd2&#xff0c;\u6d89\u53ca\u6076\u610f\u811a\u672c \/bin\/tDLzoNS7 \u548c\u9690\u85cf\u8fdb\u7a0b \/dev\/shm\/netools&#xff0c;\u901a\u8fc7 Cron \u4efb\u52a1\u6301\u4e45\u8fd0\u884c\u5e76\u8fde\u63a5\u5916\u90e8\u670d\u52a1\u5668&#xff08;\u7f8e\u56fd\u52a0\u5dde&#xff09; 45.154.1.156:80\u3002\u6e05\u7406\u540e&#xff0c;\u75c5\u6bd2\u811a\u672c\u5df2\u79fb\u9664&#xff0c;\u534a\u5c0f\u65f6\u5185\u672a\u518d\u51fa\u73b0\u6316\u77ff\u884c\u4e3a&#xff0c;\u5176\u4ed6\u673a\u5668\u672a\u53d7\u611f\u67d3\u3002\u521d\u6b65\u5224\u65ad&#xff0c;\u611f\u67d3\u6e90\u81ea\u4e0d\u6b63\u89c4\u7684\u5e94\u7528\u8f6f\u4ef6\u5305&#xff0c;\u800c\u975e\u5916\u90e8\u653b\u51fb&#xff0c;\u56e0\u8bbf\u95ee\u9700\u901a\u8fc7\u5927\u5b66 VPN\u3002<\/p>\n<p>\u5b9e\u9a8c\u5ba4\u7535\u8111\u901a\u8fc7 VPN \u8bbf\u95ee&#xff0c;\u5916\u90e8\u653b\u51fb\u53ef\u80fd\u6027\u4f4e\u3002VPN \u63d0\u4f9b\u52a0\u5bc6\u96a7\u9053\u548c\u8ba4\u8bc1\u673a\u5236&#xff0c;\u5927\u5b66\u9632\u706b\u5899\u9650\u5236\u5165\u7ad9\u6d41\u91cf&#xff0c;\u79c1\u6709 IP \u5730\u5740&#xff08;10.101.100.37&#xff09;\u4e0d\u53ef\u76f4\u63a5\u4ece\u516c\u7f51\u8bbf\u95ee\u3002\u611f\u67d3\u66f4\u53ef\u80fd\u662f\u5185\u90e8\u5f15\u5165\u7684\u6076\u610f\u8f6f\u4ef6\u4e3b\u52a8\u53d1\u8d77\u51fa\u7ad9\u8fde\u63a5&#xff0c;\u51f8\u663e\u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406\u7684\u91cd\u8981\u6027\u3002<\/p>\n<p>\u672c\u6587\u805a\u7126\u52a0\u56fa\u63aa\u65bd&#xff0c;\u7279\u522b\u5f3a\u8c03\u201c\u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406\u201d&#xff0c;\u4ee5\u786e\u4fdd\u5b9e\u9a8c\u5ba4\u7535\u8111\u5b89\u5168\u3002<\/p>\n<h3>\u52a0\u56fa\u63aa\u65bd<\/h3>\n<h4>1. \u4fee\u6539\u7528\u6237\u5bc6\u7801<\/h4>\n<p>\u76ee\u6807&#xff1a;\u589e\u5f3a\u8d26\u6237\u5b89\u5168\u6027&#xff0c;\u9632\u6b62\u672a\u7ecf\u6388\u6743\u8bbf\u95ee\u3002<\/p>\n<p>\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\u4fee\u6539 root \u5bc6\u7801&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">passwd<\/span> root\n<ul>\n<li>\u4f7f\u7528\u5f3a\u5bc6\u7801&#xff08;\u81f3\u5c11 12 \u4f4d&#xff0c;\u5305\u542b\u5927\u5c0f\u5199\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7b26\u53f7&#xff0c;\u5982 X7$kPq9#mW2n&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4fee\u6539\u7528\u6237\u5bc6\u7801&#xff08;\u5982 ccccs&#xff09;&#xff1a;<span class=\"token function\">passwd<\/span> ccccs\n <\/li>\n<li>\u68c0\u67e5\u7528\u6237\u8d26\u6237&#xff1a;<span class=\"token function\">cat<\/span> \/etc\/passwd  <span class=\"token comment\"># \u5217\u51fa\u6240\u6709\u7528\u6237<\/span><br \/>\n<span class=\"token function\">sudo<\/span> last        <span class=\"token comment\"># \u67e5\u770b\u767b\u5f55\u5386\u53f2<\/span><\/p>\n<ul>\n<li>\u5220\u9664\u4e00\u5e74\u4ee5\u4e0a\u672a\u4f7f\u7528\u7684\u8d26\u6237&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">userdel<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token operator\">&lt;<\/span>username<span class=\"token operator\">&gt;<\/span>\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8bf4\u660e&#xff1a;\u6076\u610f\u8f6f\u4ef6\u53ef\u80fd\u5229\u7528\u5f31\u5bc6\u7801\u6216\u9ed8\u8ba4\u8d26\u6237\u5165\u4fb5\u3002\u5b9a\u671f\u66f4\u6362\u5bc6\u7801\u5e76\u9650\u5236\u7528\u6237\u6743\u9650\u8fd8\u662f\u6709\u5fc5\u8981\u7684&#xff0c;\u5c24\u5176\u5728\u5b9e\u9a8c\u5ba4\u591a\u4eba\u5171\u7528\u7535\u8111\u7684\u573a\u666f\u4e0b\u3002<\/p>\n<h4>2. \u4f7f\u7528\u516c\u94a5\u8ba4\u8bc1\u66ff\u4ee3\u5bc6\u7801\u767b\u5f55<\/h4>\n<p>\u76ee\u6807&#xff1a;\u901a\u8fc7 SSH \u516c\u94a5\u8ba4\u8bc1\u7981\u7528\u5bc6\u7801\u767b\u5f55&#xff0c;\u63d0\u9ad8\u8d26\u6237\u5b89\u5168\u6027&#xff0c;\u964d\u4f4e\u66b4\u529b\u7834\u89e3\u98ce\u9669\u3002<\/p>\n<p>\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u751f\u6210\u5bc6\u94a5\u5bf9&#xff08;\u5728\u7528\u6237\u672c\u5730\u8bbe\u5907&#xff0c;\u5982\u4e2a\u4eba\u7535\u8111&#xff09;&#xff1a;<\/p>\n<p> ssh-keygen <span class=\"token parameter variable\">-t<\/span> rsa <span class=\"token parameter variable\">-b<\/span> <span class=\"token number\">4096<\/span> <span class=\"token parameter variable\">-C<\/span> <span class=\"token string\">&#034;your_email&#064;example.com&#034;<\/span><\/p>\n<ul>\n<li>\u6309\u63d0\u793a\u4fdd\u5b58\u5bc6\u94a5&#xff08;\u9ed8\u8ba4 ~\/.ssh\/id_rsa&#xff09;&#xff0c;\u53ef\u8bbe\u7f6e\u5bc6\u7801\u4fdd\u62a4\u79c1\u94a5\u3002<\/li>\n<li>\u8f93\u51fa\u516c\u94a5\u6587\u4ef6 ~\/.ssh\/id_rsa.pub\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5c06\u516c\u94a5\u4e0a\u4f20\u5230\u670d\u52a1\u5668&#xff08;\u76ee\u6807\u5b9e\u9a8c\u5ba4\u7535\u8111&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u590d\u5236\u516c\u94a5\u5230\u670d\u52a1\u5668\u7528\u6237&#xff08;\u5982 ccccs&#xff09;\u7684 ~\/.ssh\/authorized_keys&#xff1a;ssh-copy-id ccccs&#064;10.101.100.37<br \/>\n \u6216\u624b\u52a8\u590d\u5236&#xff1a;<span class=\"token function\">cat<\/span> ~\/.ssh\/id_rsa.pub <span class=\"token operator\">|<\/span> <span class=\"token function\">ssh<\/span> ccccs&#064;10.101.100.37 <span class=\"token string\">&#039;mkdir -p ~\/.ssh &amp;&amp; cat &gt;&gt; ~\/.ssh\/authorized_keys&#039;<\/span>\n <\/li>\n<li>\u786e\u4fdd\u6743\u9650\u6b63\u786e&#xff1a;<span class=\"token function\">ssh<\/span> ccccs&#064;10.101.100.37<br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">700<\/span> ~\/.ssh<br \/>\n<span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> ~\/.ssh\/authorized_keys\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7981\u7528\u5bc6\u7801\u767b\u5f55&#xff1a;<\/p>\n<ul>\n<li>\u7f16\u8f91 SSH \u914d\u7f6e\u6587\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/ssh\/sshd_config\n <\/li>\n<li>\u4fee\u6539\u6216\u6dfb\u52a0\u4ee5\u4e0b\u884c&#xff1a;PasswordAuthentication no<br \/>\nPubkeyAuthentication yes\n <\/li>\n<li>\u91cd\u542f SSH \u670d\u52a1&#xff1a;<span class=\"token function\">sudo<\/span> systemctl restart sshd\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u516c\u94a5\u767b\u5f55&#xff1a;<\/p>\n<ul>\n<li>\u4ece\u672c\u5730\u8bbe\u5907\u5c1d\u8bd5 SSH&#xff1a;<span class=\"token function\">ssh<\/span> ccccs&#064;10.101.100.37\n <\/li>\n<li>\u5e94\u65e0\u9700\u5bc6\u7801\u5373\u53ef\u767b\u5f55&#xff08;\u82e5\u8bbe\u7f6e\u4e86\u79c1\u94a5\u5bc6\u7801&#xff0c;\u9700\u8f93\u5165&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<p>\u8bf4\u660e&#xff1a;\u516c\u94a5\u8ba4\u8bc1\u4f7f\u7528\u975e\u5bf9\u79f0\u52a0\u5bc6&#xff0c;\u79c1\u94a5\u5b58\u50a8\u5728\u7528\u6237\u8bbe\u5907&#xff0c;\u516c\u94a5\u5b58\u4e8e\u670d\u52a1\u5668&#xff0c;\u5b89\u5168\u6027\u8fdc\u9ad8\u4e8e\u5bc6\u7801\u3002\u7981\u7528\u5bc6\u7801\u767b\u5f55\u53ef\u6709\u6548\u9632\u6b62\u66b4\u529b\u7834\u89e3&#xff0c;\u5c24\u5176\u9002\u5408\u901a\u8fc7 VPN \u8bbf\u95ee\u7684\u5b9e\u9a8c\u5ba4\u73af\u5883\u3002\u9700\u786e\u4fdd\u79c1\u94a5\u5b89\u5168&#xff0c;\u907f\u514d\u6cc4\u9732\u3002<\/p>\n<h4>3. \u5f3a\u5316\u7cfb\u7edf\u5b89\u5168<\/h4>\n<p>\u76ee\u6807&#xff1a;\u4fee\u590d\u6f0f\u6d1e&#xff0c;\u9650\u5236\u4e0d\u5fc5\u8981\u8bbf\u95ee\u3002<\/p>\n<p>\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\u66f4\u65b0\u7cfb\u7edf&#xff1a;<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> upgrade<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> dist-upgrade\n <\/li>\n<li>\u914d\u7f6e\u9632\u706b\u5899&#xff08;\u7cfb\u7edf\u5df2\u7ecf\u9ed8\u8ba4\u914d\u7f6e&#xff0c;\u91cd\u542f\u5373\u53ef&#xff09;&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> ufw<br \/>\n<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  <span class=\"token comment\"># \u5141\u8bb8 SSH<\/span><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       <span class=\"token comment\"># \u9a8c\u8bc1\u72b6\u6001<\/span>\n <\/li>\n<\/ul>\n<p>\u8bf4\u660e&#xff1a;\u4e4b\u524d\u6076\u610f\u811a\u672c\u7981\u7528\u4e86\u9632\u706b\u5899&#xff08;ufw disable \u548c iptables -P ACCEPT&#xff09;&#xff0c;\u91cd\u65b0\u914d\u7f6e UFW \u53ef\u9632\u6b62\u7c7b\u4f3c\u653b\u51fb\u3002<\/p>\n<h4>4. \u626b\u63cf\u4e0e\u6e05\u7406\u6b8b\u7559\u5a01\u80c1<\/h4>\n<p>\u76ee\u6807&#xff1a;\u786e\u4fdd\u65e0\u9690\u85cf\u6076\u610f\u8f6f\u4ef6\u3002<\/p>\n<p>\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\u626b\u63cf\u9690\u85cf\u8fdb\u7a0b&#xff1a;<span class=\"token function\">sudo<\/span> unhide proc<br \/>\n<span class=\"token function\">sudo<\/span> unhide brute <span class=\"token parameter variable\">-d<\/span><br \/>\n<span class=\"token function\">sudo<\/span> unhide-tcp\n <\/li>\n<\/ul>\n<h4>5. \u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406&#xff08;\u91cd\u70b9&#xff09;<\/h4>\n<p>\u76ee\u6807&#xff1a;\u675c\u7edd\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u75c5\u6bd2&#xff0c;\u4fdd\u969c\u5b9e\u9a8c\u5ba4\u7535\u8111\u5b89\u5168\u3002<\/p>\n<p>\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\u4ec5\u4ece\u6b63\u89c4\u8f6f\u4ef6\u6e90\u5b89\u88c5\u8f6f\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token operator\">&lt;<\/span>package<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u4f7f\u7528 Ubuntu \u5b98\u65b9\u4ed3\u5e93 \u6216 \u963f\u91cc\u4e91\u955c\u50cf\u4ed3\u5e93<\/span>\n <\/li>\n<li>\u68c0\u67e5\u5df2\u5b89\u88c5\u8f6f\u4ef6&#xff1a;dpkg <span class=\"token parameter variable\">-l<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token operator\">&lt;<\/span>suspicious_name<span class=\"token operator\">&gt;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> remove <span class=\"token operator\">&lt;<\/span>package<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u79fb\u9664\u53ef\u7591\u8f6f\u4ef6<\/span>\n <\/li>\n<li>\u9a8c\u8bc1\u8f6f\u4ef6\u5305\u7b7e\u540d&#xff1a;<span class=\"token function\">sudo<\/span> apt-key list  <span class=\"token comment\"># \u68c0\u67e5 GPG \u5bc6\u94a5<\/span>\n <\/li>\n<li>\u4f7f\u7528\u5bb9\u5668\u9694\u79bb\u5b9e\u9a8c\u8f6f\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> docker.io<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-it<\/span> <span class=\"token operator\">&lt;<\/span>image<span class=\"token operator\">&gt;<\/span>  <span class=\"token comment\"># \u5728\u9694\u79bb\u73af\u5883\u4e2d\u8fd0\u884c<\/span>\n <\/li>\n<li>\u5efa\u7acb\u4e25\u683c\u7684\u653f\u7b56&#xff1a;\n<ul>\n<li>\u7981\u6b62\u4e0b\u8f7d\u672a\u7ecf\u9a8c\u8bc1\u7684 .deb\u3001.sh \u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/li>\n<li>\u5b9e\u65bd\u8f6f\u4ef6\u767d\u540d\u5355&#xff0c;\u9700\u7ecf\u7ba1\u7406\u5458\u5ba1\u6838\u3002<\/li>\n<li>\u8bb0\u5f55\u8f6f\u4ef6\u5b89\u88c5\u65e5\u5fd7&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/var\/log\/software_install.log\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8bf4\u660e&#xff1a;\u672c\u6b21\u75c5\u6bd2\u611f\u67d3\u7591\u4f3c\u56e0\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5305\u5f15\u5165&#xff0c;\u51f8\u663e\u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406\u7684\u91cd\u8981\u6027\u3002\u5b9e\u9a8c\u5ba4\u5e38\u9700\u5b89\u88c5\u5b9e\u9a8c\u8f6f\u4ef6&#xff0c;\u5bb9\u5668\u5316&#xff08;\u5982 Docker&#xff09;\u53ef\u9694\u79bb\u6f5c\u5728\u5a01\u80c1&#xff0c;\u907f\u514d\u76f4\u63a5\u5f71\u54cd\u7cfb\u7edf\u3002\u4e25\u683c\u7684\u653f\u7b56\u548c\u57f9\u8bad\u80fd\u4ece\u6e90\u5934\u964d\u4f4e\u98ce\u9669\u3002<\/p>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<li>VPN \u4f9d\u8d56\u6027&#xff1a;\u5b9e\u9a8c\u5ba4\u7535\u8111\u901a\u8fc7 VPN \u8bbf\u95ee&#xff0c;\u5916\u90e8\u653b\u51fb\u53ef\u80fd\u6027\u4f4e&#xff0c;\u4f46\u9700\u5173\u6ce8\u51fa\u7ad9\u6d41\u91cf&#xff08;\u5982\u6316\u77ff\u8fde\u63a5&#xff09;\u3002<\/li>\n<li>\u91cd\u88c5\u8003\u8651&#xff1a;\u5c3d\u7ba1\u75c5\u6bd2\u5df2\u6e05\u7406&#xff0c;\u7cfb\u7edf\u53ef\u80fd\u5b58\u5728\u9690\u85cf\u5a01\u80c1\u3002\u5efa\u8bae\u5907\u4efd\u6570\u636e\u540e\u91cd\u88c5&#xff1a;<\/li>\n<li>\u6301\u7eed\u76d1\u63a7&#xff1a;\u5b9a\u671f\u68c0\u67e5\u9632\u706b\u5899\u548c\u8fdb\u7a0b&#xff1a;<span class=\"token function\">sudo<\/span> ufw status<br \/>\n<span class=\"token function\">ps<\/span> <span class=\"token parameter variable\">-aux<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> netools\n <\/li>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u4fee\u6539\u5bc6\u7801\u3001\u5f3a\u5316\u7cfb\u7edf\u5b89\u5168\u3001\u6e05\u7406\u5a01\u80c1\u548c\u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406&#xff0c;\u6211\u4eec\u663e\u8457\u63d0\u5347\u4e86\u5b9e\u9a8c\u5ba4\u7535\u8111\u7684\u5b89\u5168\u6027\u3002\u7279\u522b\u5730&#xff0c;\u89c4\u8303\u8f6f\u4ef6\u7ba1\u7406\u662f\u9632\u6b62\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u75c5\u6bd2\u7684\u6838\u5fc3\u63aa\u65bd&#xff0c;\u7ed3\u5408\u5bb9\u5668\u5316\u548c\u4e25\u683c\u653f\u7b56&#xff0c;\u80fd\u6709\u6548\u964d\u4f4e\u672a\u6765\u98ce\u9669\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u603b\u7ed3\u4e86\u5927\u5b66\u5b9e\u9a8c\u5ba4 Linux \u7535\u8111\u611f\u67d3\u6316\u77ff\u75c5\u6bd2\u540e\u7684\u5b89\u5168\u52a0\u56fa\u63aa\u65bd\uff0c\u91cd\u70b9\u4ecb\u7ecd\u7528\u6237\u5bc6\u7801\u7ba1\u7406\u3001\u516c\u94a5\u8ba4\u8bc1\u3001\u7cfb\u7edf\u5b89\u5168\u5f3a\u5316\u3001\u5a01\u80c1\u6e05\u7406\u53ca\u8f6f\u4ef6\u7ba1\u7406\u89c4\u8303\u5316\uff0c\u7279\u522b\u5f3a\u8c03\u9632\u6b62\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u5a01\u80c1\u7684\u7b56\u7565\u3002\u9002\u5408\u5b9e\u9a8c\u5ba4\u7528\u6237\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u53c2\u8003\u3002_\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u8bb0\u5f55<\/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":[58,3846,61,43,44],"topic":[],"class_list":{"0":"post-42087","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-server","7":"tag-linux","9":"tag-61","10":"tag-43","11":"tag-44"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \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\/42087.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u603b\u7ed3\u4e86\u5927\u5b66\u5b9e\u9a8c\u5ba4 Linux \u7535\u8111\u611f\u67d3\u6316\u77ff\u75c5\u6bd2\u540e\u7684\u5b89\u5168\u52a0\u56fa\u63aa\u65bd\uff0c\u91cd\u70b9\u4ecb\u7ecd\u7528\u6237\u5bc6\u7801\u7ba1\u7406\u3001\u516c\u94a5\u8ba4\u8bc1\u3001\u7cfb\u7edf\u5b89\u5168\u5f3a\u5316\u3001\u5a01\u80c1\u6e05\u7406\u53ca\u8f6f\u4ef6\u7ba1\u7406\u89c4\u8303\u5316\uff0c\u7279\u522b\u5f3a\u8c03\u9632\u6b62\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u5a01\u80c1\u7684\u7b56\u7565\u3002\u9002\u5408\u5b9e\u9a8c\u5ba4\u7528\u6237\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u53c2\u8003\u3002_\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u8bb0\u5f55\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42087.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-06T10:15:44+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\/42087.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42087.html\",\"name\":\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-06T10:15:44+00:00\",\"dateModified\":\"2025-06-06T10:15:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42087.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42087.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42087.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\"}]},{\"@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\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \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\/42087.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u603b\u7ed3\u4e86\u5927\u5b66\u5b9e\u9a8c\u5ba4 Linux \u7535\u8111\u611f\u67d3\u6316\u77ff\u75c5\u6bd2\u540e\u7684\u5b89\u5168\u52a0\u56fa\u63aa\u65bd\uff0c\u91cd\u70b9\u4ecb\u7ecd\u7528\u6237\u5bc6\u7801\u7ba1\u7406\u3001\u516c\u94a5\u8ba4\u8bc1\u3001\u7cfb\u7edf\u5b89\u5168\u5f3a\u5316\u3001\u5a01\u80c1\u6e05\u7406\u53ca\u8f6f\u4ef6\u7ba1\u7406\u89c4\u8303\u5316\uff0c\u7279\u522b\u5f3a\u8c03\u9632\u6b62\u4e0d\u6b63\u89c4\u8f6f\u4ef6\u5f15\u5165\u5a01\u80c1\u7684\u7b56\u7565\u3002\u9002\u5408\u5b9e\u9a8c\u5ba4\u7528\u6237\u548c\u7cfb\u7edf\u7ba1\u7406\u5458\u53c2\u8003\u3002_\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa\u8bb0\u5f55","og_url":"https:\/\/www.wsisp.com\/helps\/42087.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-06T10:15:44+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\/42087.html","url":"https:\/\/www.wsisp.com\/helps\/42087.html","name":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-06T10:15:44+00:00","dateModified":"2025-06-06T10:15:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42087.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42087.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42087.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u8fd0\u7ef4\u7b14\u8bb0\uff1a\u670d\u52a1\u5668\u5b89\u5168\u52a0\u56fa"}]},{"@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\/42087","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=42087"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42087\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42087"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}