{"id":318,"date":"2023-04-09T15:23:36","date_gmt":"2023-04-09T07:23:36","guid":{"rendered":"https:\/\/www.guger.top\/?p=318"},"modified":"2023-04-09T15:23:36","modified_gmt":"2023-04-09T07:23:36","slug":"%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%ad%e6%af%92%e7%bb%8f%e5%8e%86","status":"publish","type":"post","link":"https:\/\/www.guger.top\/index.php\/2023\/04\/09\/%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%ad%e6%af%92%e7%bb%8f%e5%8e%86\/","title":{"rendered":"\u8bb0\u5f55\u4e00\u4e0b\u670d\u52a1\u5668\u4e2d\u6bd2\u7ecf\u5386"},"content":{"rendered":"<h1>\u6982\u8ff0<\/h1>\n<p>\u6700\u8fd1\u4e0a\u73ed\u5fd9\uff0c\u597d\u4e45\u6ca1\u6253\u5f00\u670d\u52a1\u5668\u540e\u53f0\u68c0\u67e5\u4e86\u3002\u7ec8\u4e8e\u5468\u672b\u6709\u7a7a\u770b\u4e00\u4e0b\uff0c\u53d1\u73b0cpu\u5360\u7528\u5f88\u5927\uff0c\u867d\u7136\u8dd1\u7740\u4e00\u4e9b\u4e1a\u52a1\uff0c\u4f46\u662f\u8fdc\u4e0d\u5230\u8dd1\u6ee1\u7684\u5730\u6b65\u3002\u4e8e\u662f\u68c0\u67e5\u3002\u8fdb\u5165\u540e\u53f0\u9996\u5148\u53d1\u73b0\u4e86\u6709\u4eba\u66b4\u529b\u7834\u89e3\u6211\u7684ssh\u3002<\/p>\n<pre><code class=\"language-ssh\">Last failed login: Sun Apr  9 13:15:13 CST 2023 from 165.154.43.143 on ssh:notty\nThere were 24684 failed login attempts since the last successful login.\nLast login: Sun Mar 26 11:09:00 2023 from 27.184.*.*<\/code><\/pre>\n<p>\u7136\u540e\u7528top\u547d\u4ee4\u67e5\u4e00\u4e0b<\/p>\n<pre><code>MiB Mem :   3731.4 total,    107.1 free,   3174.7 used,    449.6 buff\/cache\nMiB Swap:   4096.0 total,   2400.5 free,   1695.5 used.    335.7 avail Mem \n\n    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                              \n2955029 postgres  20   0 2438508   2.3g      4 S  99.0  62.9 511:55.04 kswapd0                              \n   1842 redis     20   0   65172   6648    232 S   0.3   0.2  60:10.76 redis-server                         \n2990956 root      20   0   65444   4364   3732 R   0.3   0.1   0:00.02 top                                  \n      1 root      20   0  181068   3912   2200 S   0.0   0.1   5:54.46 systemd                              \n      2 root      20   0       0      0      0 S   0.0   0.0   0:00.29 kthreadd  <\/code><\/pre>\n<p>\u521a\u5f00\u59cb\u4e00\u67e5\uff0c\u54e6\u53f2\u6b63\u5e38\u547d\u4ee4\uff0c\u731c\u60f3\u53ef\u80fd\u662f\u670d\u52a1\u5668\u5361\u6b7b\u4e86\u5427\uff0c\u91cd\u542f\u5e94\u8be5\u4f1a\u597d\u3002\u7136\u800c\u597d\u4e86\u6ca1\u4e24\u5929\u5462<br \/>\n<img decoding=\"async\" src=\"https:\/\/cache.image.guger.top\/2023\/04\/09\/6432652020e5a.png\" alt=\"\u75c5\u6bd2\u590d\u53d1\" \/><br \/>\n\u53c8\u5f00\u59cb\u4e86\u3002\u540e\u6765\u67e5\u8be2\u53ef\u80fd\u662f\u6316\u77ff\u75c5\u6bd2\u3002\u90a3\u53ea\u80fd\u60f3\u529e\u6cd5\u6740\u6bd2\u4e86\u3002\u5148\u5e86\u5e78\u4e00\u4e0b\u4ed6\u7528\u7684\u4e0d\u662froot\u8d26\u6237\u7684\u6743\u9650\uff0c\u53ea\u662f\u5e95\u4e0b\u5f53\u65f6\u914d\u7f6e\u6570\u636e\u5e93\u7684\u7528\u6237\u3002\u628a\u7528\u6237\u5148\u7981\u6b62\u6389\u3002\u7136\u540e\u5f00\u59cb\u6740\u6bd2\u3002<br \/>\n\u9996\u5148\u67e5\u627e\u75c5\u6bd2\u4f4d\u7f6e<\/p>\n<pre><code># find -name &quot;kswapd0&quot;\n.\/tmp\/.X2m-unix\/.rsync\/a\/kswapd0<\/code><\/pre>\n<p>\u627e\u5230\u75c5\u6bd2\u76ee\u5f55\u4e86\u5c31\u5220\u6389\u5c31\u597d\u3002\u4f46\u662f\u4e3a\u5565\u7981\u6b62\u540e\u4f1a\u81ea\u542f\u5462\u3002\u7ecf\u8fc7\u67e5\u8be2\u7528\u5230\u4e86\u8ba1\u5212\u4efb\u52a1\u811a\u672c\u3002\u811a\u672c\u4f4d\u7f6e\u5728<\/p>\n<pre><code>\/var\/spool\/cron\/\n# cat \/var\/spool\/cron\/postgres \n5 6 * * 0 \/var\/lib\/pgsql\/.configrc5\/a\/upd&gt;\/dev\/null 2&gt;&amp;1\n@reboot \/var\/lib\/pgsql\/.configrc5\/a\/upd&gt;\/dev\/null 2&gt;&amp;1\n5 8 * * 0 \/var\/lib\/pgsql\/.configrc5\/b\/sync&gt;\/dev\/null 2&gt;&amp;1\n@reboot \/var\/lib\/pgsql\/.configrc5\/b\/sync&gt;\/dev\/null 2&gt;&amp;1\n0 0 *\/3 * * \/tmp\/.X2m-unix\/.rsync\/c\/aptitude&gt;\/dev\/null 2&gt;&amp;1<\/code><\/pre>\n<p>\u884c\u5427\uff0c\u8ba1\u5212\u4efb\u52a1\u8bbe\u8ba1\u7684\u8fd8\u633a\u5468\u5bc6\u7684<br \/>\n\u7136\u540e\u5220\u9664\u6389\u8ba1\u5212\u4efb\u52a1\u548c\u76f8\u5173\u6587\u4ef6\u3002<br \/>\n\u5f85\u7eed\u89c2\u5bdf\u73b0\u8c61\u3002\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 \u6700\u8fd1\u4e0a\u73ed\u5fd9\uff0c\u597d\u4e45\u6ca1\u6253\u5f00\u670d\u52a1\u5668\u540e\u53f0\u68c0\u67e5\u4e86\u3002\u7ec8\u4e8e\u5468\u672b\u6709\u7a7a\u770b\u4e00\u4e0b\uff0c\u53d1\u73b0cpu\u5360\u7528\u5f88\u5927\uff0c\u867d\u7136\u8dd1\u7740\u4e00\u4e9b\u4e1a\u52a1\uff0c\u4f46\u662f\u8fdc\u4e0d\u5230\u8dd1\u6ee1\u7684\u5730\u6b65\u3002\u4e8e\u662f &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":""},"categories":[32,13,22],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","hentry","category-linux","category-vps","category-22"],"_links":{"self":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":0,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}