{"id":3967,"date":"2021-11-25T22:57:34","date_gmt":"2021-11-26T06:57:34","guid":{"rendered":"https:\/\/www.xh86.me\/?p=3967"},"modified":"2021-11-25T23:12:04","modified_gmt":"2021-11-26T07:12:04","slug":"%e6%95%88%e7%8e%87%e6%8f%90%e5%8d%87%e5%a4%9a%e5%80%8d%ef%bc%8c-%e6%8e%a8%e8%8d%90%e5%80%bc%e5%be%97%e6%94%b6%e8%97%8f40-%e4%b8%aa%e5%91%bd%e4%bb%a4%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=3967","title":{"rendered":"\u6548\u7387\u63d0\u5347\u591a\u500d\uff0c \u63a8\u8350\u503c\u5f97\u6536\u85cf40 \u4e2a\u547d\u4ee4\u603b\u7ed3"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<p style=\"text-align: center;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"text-align: center; margin-bottom: 10px;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/11\/wxsync-2021-11-50360758334350a927a544cb3a78b614.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/11\/wxsync-2021-11-50360758334350a927a544cb3a78b614.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.7142857142857143\" data-type=\"jpeg\" data-w=\"658\" \/><\/div><\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>1 \u5220\u96640\u5b57\u8282\u6587\u4ef6<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet_outer\">find -type f -size 0 -exec rm -rf {} ;<\/span><\/code><\/pre>\n<\/section>\n<section style=\"margin: 0px 0px 1.2em !important;\"><strong><span style=\"font-size: 15px;\">2 \u67e5\u770b\u8fdb\u7a0b<\/span><\/strong><\/section>\n<section style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u6309\u5185\u5b58\u4ece\u5927\u5230\u5c0f\u6392\u5217<\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"perl\"><code><span class=\"code-snippet_outer\">PS -e -o \"%C : %p : %z : %a\"|sort -k5 -nr<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>3 \u6309 CPU \u5229\u7528\u7387\u4ece\u5927\u5230\u5c0f\u6392\u5217<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"perl\"><code><span class=\"code-snippet_outer\">ps -e -o \"%C : %p : %z : %a\"|sort -nr<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>4 \u6253\u5370 cache \u91cc\u7684URL<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">grep\u00a0-r\u00a0-a\u00a0jpg\u00a0\/data\/cache\/*\u00a0|\u00a0strings\u00a0|\u00a0grep\u00a0\"http:\"\u00a0|\u00a0awk\u00a0-F'http:'\u00a0'{print\u00a0\"http:\"$2;}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><strong><span style=\"font-size: 15px;\">5 \u67e5\u770b http \u7684\u5e76\u53d1\u8bf7\u6c42\u6570\u53ca\u5176 TCP \u8fde\u63a5\u72b6\u6001\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">netstat -n | awk '\/^tcp\/ {++S[$NF]} END {for(a in S) print a, S[a]}'<\/span><\/code><\/pre>\n<\/section>\n<section style=\"line-height: 1.75em; margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">6 <\/span><code style=\"font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">sed -i '\/Root\/s\/no\/yes\/' \/etc\/ssh\/sshd_config<\/span><\/code><span style=\"font-size: 15px;\"> sed \u5728\u8fd9\u4e2a\u6587\u91cc Root \u7684\u4e00\u884c\uff0c\u5339\u914d Root \u4e00\u884c\uff0c\u5c06 no \u66ff\u6362\u6210 yes\u3002<\/span><\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>7 \u5982\u4f55\u6740\u6389 MySQL \u8fdb\u7a0b<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"perl\"><code><span class=\"code-snippet_outer\">ps aux |grep mysql |grep -v grep  |awk '{print $2}' |xargs kill -9 (\u4ece\u4e2d\u4e86\u89e3\u5230awk\u7684\u7528\u9014)<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">killall -TERM mysqld<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">kill -9 `cat \/usr\/local\/apache2\/logs\/httpd.pid`   \u8bd5\u8bd5\u67e5\u6740\u8fdb\u7a0bPID<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>8 \u663e\u793a\u8fd0\u884c 3 \u7ea7\u522b\u5f00\u542f\u7684\u670d\u52a1:<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">ls \/etc\/rc3.d\/S* |cut -c 15-   (\u4ece\u4e2d\u4e86\u89e3\u5230cut\u7684\u7528\u9014\uff0c\u622a\u53d6\u6570\u636e)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>9 \u5982\u4f55\u5728\u7f16\u5199 SHELL \u663e\u793a\u591a\u4e2a\u4fe1\u606f\uff0c\u7528 EOF<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"diff\"><code><span class=\"code-snippet_outer\">cat &lt;&lt; EOF<\/span><\/code><code><span class=\"code-snippet_outer\">+--------------------------------------------------------------+<\/span><\/code><code><span class=\"code-snippet_outer\">|       === Welcome to Tunoff services ===                |<\/span><\/code><code><span class=\"code-snippet_outer\">+--------------------------------------------------------------+<\/span><\/code><code><span class=\"code-snippet_outer\">EOF<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>10 for \u7684\u5de7\u7528\uff08\u5982\u7ed9 MySQL \u5efa\u8f6f\u94fe\u63a5\uff09<\/strong><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span class=\"code-snippet_outer\">cd \/usr\/local\/mysql\/bin<\/span><\/code><code><span class=\"code-snippet_outer\">for i in *<\/span><\/code><code><span class=\"code-snippet_outer\">do ln \/usr\/local\/mysql\/bin\/$i \/usr\/bin\/$i<\/span><\/code><code><span class=\"code-snippet_outer\">done<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><strong><span style=\"font-size: 15px;\">11 \u53d6 IP \u5730\u5740<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">ifconfig eth0 |grep \"inet addr:\" |awk '{print $2}'| cut -c 6-  <\/span><\/code><code><span class=\"code-snippet_outer\">\u6216\u8005<\/span><\/code><code><span class=\"code-snippet_outer\">ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>12 <\/strong>\u5185\u5b58\u7684\u5927\u5c0f:<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">free -m |grep \"Mem\" | awk '{print $2}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><strong><span style=\"font-size: 15px;\">13<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">netstat -an -t | grep \":80\" | grep ESTABLISHED | awk '{printf \"%s %sn\",$5,$6}' | sort<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\"><strong>14 <\/strong>\u67e5\u770b Apache \u7684\u5e76\u53d1\u8bf7\u6c42\u6570\u53ca\u5176 TCP \u8fde\u63a5\u72b6\u6001\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">netstat -n | awk '\/^tcp\/ {++S[$NF]} END {for(a in S) print a, S[a]}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"color: #444444;\"><strong><span style=\"font-size: 15px;\">15 <\/span><\/strong><span style=\"font-size: 15px;\">\u56e0\u4e3a\u540c\u4e8b\u8981\u7edf\u8ba1\u4e00\u4e0b\u670d\u52a1\u5668\u4e0b\u9762\u6240\u6709\u7684 jpg \u7684\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u5199\u4e86\u4e2a SHELL \u7ed9\u4ed6\u6765\u7edf\u8ba1\u3002\u539f\u6765\u7528 xargs \u5b9e\u73b0\uff0c\u4f46\u4ed6\u4e00\u6b21\u5904\u7406\u4e00\u90e8\u5206\u3002\u641e\u7684\u6709\u591a\u4e2a\u603b\u548c\u2026\u2026\uff0c\u4e0b\u9762\u7684\u547d\u4ee4\u5c31\u80fd\u89e3\u51b3\u3002<\/span><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code><span class=\"code-snippet_outer\">find \/ -name *.jpg -exec wc -c {} ;|awk '{print $1}'|awk '{a+=$1}END{print a}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px; color: #444444;\">CPU \u7684\u6570\u91cf\uff08\u591a\u6838\u7b97\u591a\u4e2aCPU\uff0c<\/span><code style=\"font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px; color: #444444;\">cat \/proc\/cpuinfo |grep -c processor<\/span><\/code><span style=\"font-size: 15px; color: #444444;\">\uff09\u8d8a\u591a\uff0c\u7cfb\u7edf\u8d1f\u8f7d\u8d8a\u4f4e\uff0c\u6bcf\u79d2\u80fd\u5904\u7406\u7684\u8bf7\u6c42\u6570\u4e5f\u8d8a\u591a\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">16 CPU\u8d1f\u8f7d<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">cat \/proc\/loadavg<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">\u68c0\u67e5\u524d\u4e09\u4e2a\u8f93\u51fa\u503c\u662f\u5426\u8d85\u8fc7\u4e86\u7cfb\u7edf\u903b\u8f91 CPU \u76844\u500d\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">17 CPU\u8d1f\u8f7d<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">mpstat 1 1<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5 %idle \u662f\u5426\u8fc7\u4f4e\uff08\u6bd4\u5982\u5c0f\u4e8e5%\uff09\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">18 \u5185\u5b58\u7a7a\u95f4<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">free<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">\u68c0\u67e5 free \u503c\u662f\u5426\u8fc7\u4f4e\uff0c\u4e5f\u53ef\u4ee5\u7528 <\/span><code style=\"font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\"># cat \/proc\/meminfo<\/span><\/code><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">19 SWAP \u7a7a\u95f4\u00a0 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">free<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5 swap used \u503c\u662f\u5426\u8fc7\u9ad8\uff0c\u5982\u679c swap used \u503c\u8fc7\u9ad8\uff0c\u8fdb\u4e00\u6b65\u68c0\u67e5 swap \u52a8\u4f5c\u662f\u5426\u9891\u7e41\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">vmstat 1 5<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u89c2\u5bdf si \u548c so \u503c\u662f\u5426\u8f83\u5927<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">20 \u78c1\u76d8\u7a7a\u95f4\u00a0\u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">df -h<\/span><\/code><\/pre>\n<\/section>\n<section style=\"line-height: 1.75em; margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px; color: #444444;\">\u68c0\u67e5\u662f\u5426\u6709\u5206\u533a\u4f7f\u7528\u7387\uff08Use%\uff09\u8fc7\u9ad8\uff08\u6bd4\u5982\u8d85\u8fc790%\uff09\u5982\u53d1\u73b0\u67d0\u4e2a\u5206\u533a\u7a7a\u95f4\u63a5\u8fd1\u7528\u5c3d\uff0c\u53ef\u4ee5\u8fdb\u5165\u8be5\u5206\u533a\u7684\u6302\u8f7d\u70b9\uff0c\u7528\u4ee5\u4e0b\u547d\u4ee4\u627e\u51fa\u5360\u7528\u7a7a\u95f4\u6700\u591a\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff1a<\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">du -cks * | sort -rn | head -n 10<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">21 \u78c1\u76d8 I\/O \u8d1f\u8f7d<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">iostat -x 1 2<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; color: #444444;\">\u68c0\u67e5I\/O\u4f7f\u7528\u7387\uff08%util\uff09\u662f\u5426\u8d85\u8fc7 100%<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">22 \u7f51\u7edc\u8d1f\u8f7d<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">sar -n DEV<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">\u68c0\u67e5\u7f51\u7edc\u6d41\u91cf\uff08rxbyt\/s, txbyt\/s\uff09\u662f\u5426\u8fc7\u9ad8<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">23 \u7f51\u7edc\u9519\u8bef<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">netstat -i<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u662f\u5426\u6709\u7f51\u7edc\u9519\u8bef\uff08drop fifo colls carrier\uff09\uff0c\u4e5f\u53ef\u4ee5\u7528\u547d\u4ee4\uff1a# cat \/proc\/net\/dev<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">24 \u7f51\u7edc\u8fde\u63a5\u6570\u76ee<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code><span class=\"code-snippet_outer\">netstat -an | grep -E \u201c^(tcp)\u201d | cut -c 68- | sort | uniq -c | sort -n<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">25 \u8fdb\u7a0b\u603b\u6570\u00a0 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">ps aux | wc -l<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u8fdb\u7a0b\u4e2a\u6570\u662f\u5426\u6b63\u5e38 (\u6bd4\u5982\u8d85\u8fc7250)<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">26 \u53ef\u8fd0\u884c\u8fdb\u7a0b\u6570\u76ee\u00a0 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">vmwtat 1 5<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u5217\u7ed9\u51fa\u7684\u662f\u53ef\u8fd0\u884c\u8fdb\u7a0b\u7684\u6570\u76ee\uff0c\u68c0\u67e5\u5176\u662f\u5426\u8d85\u8fc7\u7cfb\u7edf\u903b\u8f91 CPU \u7684 4 \u500d<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">27\u00a0\u8fdb\u7a0b <\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">top -id 1<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u89c2\u5bdf\u662f\u5426\u6709\u5f02\u5e38\u8fdb\u7a0b\u51fa\u73b0\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">28\u00a0\u7f51\u7edc\u72b6\u6001\uff0c\u68c0\u67e5DNS\uff0c\u7f51\u5173\u7b49\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u8fde\u901a<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">29 \u7528\u6237<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">who | wc -l<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u767b\u5f55\u7528\u6237\u662f\u5426\u8fc7\u591a (\u6bd4\u5982\u8d85\u8fc750\u4e2a) \u00a0 \u4e5f\u53ef\u4ee5\u7528\u547d\u4ee4\uff1a# uptime\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">30 \u7cfb\u7edf\u65e5\u5fd7<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"shell\"><code><span class=\"code-snippet_outer\"># cat \/var\/log\/rflogview\/*errors<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u662f\u5426\u6709\u5f02\u5e38\u9519\u8bef\u8bb0\u5f55 \u00a0 \u4e5f\u53ef\u4ee5\u641c\u5bfb\u4e00\u4e9b\u5f02\u5e38\u5173\u952e\u5b57\uff0c\u4f8b\u5982\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"perl\"><code><span class=\"code-snippet_outer\">grep -i error \/var\/log\/messages<\/span><\/code><code><span class=\"code-snippet_outer\">grep -i fail \/var\/log\/messages<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">31 \u6838\u5fc3\u65e5\u5fd7\u00a0 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">dmesg<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u662f\u5426\u6709\u5f02\u5e38\u9519\u8bef\u8bb0\u5f55\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">32\u00a0\u7cfb\u7edf\u65f6\u95f4 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">date<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u7cfb\u7edf\u65f6\u95f4\u662f\u5426\u6b63\u786e\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">33 \u6253\u5f00\u6587\u4ef6\u6570\u76ee\u00a0 \u00a0<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">lsof\u00a0|\u00a0wc\u00a0-l<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">\u68c0\u67e5\u6253\u5f00\u6587\u4ef6\u603b\u6570\u662f\u5426\u8fc7\u591a\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">34\u00a0\u65e5\u5fd7<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"shell\"><code><span class=\"code-snippet_outer\"># logwatch \u2013print<\/span><\/code><\/pre>\n<\/section>\n<section style=\"text-align: left; line-height: 1.75em; margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">\u914d\u7f6e \/etc\/log.d\/logwatch.conf\uff0c\u5c06 Mailto \u8bbe\u7f6e\u4e3a\u81ea\u5df1\u7684 email \u5730\u5740\uff0c\u542f\u52a8 mail \u670d\u52a1(sendmail\u6216\u8005postfix)\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u6bcf\u5929\u6536\u5230\u65e5\u5fd7\u62a5\u544a\u4e86\u3002<\/span><\/section>\n<section style=\"line-height: 1.75em; margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px; color: #444444;\">\u7f3a\u7701 logwatch \u53ea\u62a5\u544a\u6628\u5929\u7684\u65e5\u5fd7\uff0c\u53ef\u4ee5\u7528 # logwatch \u2013print \u2013range all \u83b7\u5f97\u6240\u6709\u7684\u65e5\u5fd7\u5206\u6790\u7ed3\u679c\u3002<\/span><\/section>\n<section style=\"line-height: 1.75em; margin: 0px 0px 1.2em !important; text-align: left;\"><span style=\"font-size: 15px; color: #444444;\">\u53ef\u4ee5\u7528 # logwatch \u2013print \u2013detail high \u83b7\u5f97\u66f4\u5177\u4f53\u7684\u65e5\u5fd7\u5206\u6790\u7ed3\u679c(\u800c\u4e0d\u4ec5\u4ec5\u662f\u51fa\u9519\u65e5\u5fd7)\u3002<\/span><\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">35 \u6740\u638980\u7aef\u53e3\u76f8\u5173\u7684\u8fdb\u7a0b<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"perl\"><code><span class=\"code-snippet_outer\">lsof -i :80|grep -v \u201cID\u201d|awk \u2018{print \u201ckill -9\u201d,$2}\u2019|sh<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">36 \u6e05\u9664\u50f5\u6b7b\u8fdb\u7a0b<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">ps -eal | awk '{ if ($2 == \"Z\") {print $4}}' | kill -9<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px; color: #444444;\">37 tcpdump \u6293\u5305\uff0c\u7528\u6765\u9632\u6b6280\u7aef\u53e3\u88ab\u4eba\u653b\u51fb\u65f6\u53ef\u4ee5\u5206\u6790\u6570\u636e<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">tcpdump\u00a0-c\u00a010000\u00a0-i\u00a0eth0\u00a0-n\u00a0dst\u00a0port\u00a080\u00a0&gt;\u00a0\/root\/pkts<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">38 \u7136\u540e\u68c0\u67e5IP\u7684\u91cd\u590d\u6570\u5e76\u4ece\u5c0f\u5230\u5927\u6392\u5e8f \u6ce8\u610f \u201c-t +0\u201d \u00a0 \u4e2d\u95f4\u662f\u4e24\u4e2a\u7a7a\u683c<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code><span class=\"code-snippet_outer\"># less pkts | awk {'printf $3\"n\"'} | cut -d. -f 1-4 | sort | uniq -c | awk {'printf $1\" \"$2\"n\"'} | sort -n -t +0<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">39 \u67e5\u770b\u6709\u591a\u5c11\u4e2a\u6d3b\u52a8\u7684 php-cgi \u8fdb\u7a0b<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">netstat -anp | grep php-cgi | grep ^tcp | wc -l<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">40 \u67e5\u770b\u7cfb\u7edf\u81ea\u542f\u52a8\u7684\u670d\u52a1<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">chkconfig --list | awk '{if ($5==\"3:on\") print $1}'<\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin: 0px 0px 1.2em !important;\"><span style=\"font-size: 15px;\">41 kudzu \u67e5\u770b\u7f51\u5361\u578b\u53f7<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">kudzu --probe --class=network<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;\"><span style=\"color: #444444;\">\u5e38\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/span><\/h3>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">1.\u5339\u914d\u4e2d\u6587\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a\u00a0<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">[u4e00-u9fa5]<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u5339\u914d\u4e2d\u6587\u8fd8\u771f\u662f\u4e2a\u5934\u75bc\u7684\u4e8b\uff0c\u6709\u4e86\u8fd9\u4e2a\u8868\u8fbe\u5f0f\u5c31\u597d\u529e\u4e86<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">2.\u5339\u914d\u53cc\u5b57\u8282\u5b57\u7b26(\u5305\u62ec\u6c49\u5b57\u5728\u5185)\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">[^x00-xff]<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\uff08\u4e00\u4e2a\u53cc\u5b57\u8282\u5b57\u7b26\u957f\u5ea6\u8ba12\uff0cASCII\u5b57\u7b26\u8ba11\uff09<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">3.\u5339\u914d\u7a7a\u767d\u884c\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">ns*r<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u5220\u9664\u7a7a\u767d\u884c<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">4.\u5339\u914d HTML \u6807\u8bb0\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">&lt;(S*?)[^&gt;]*&gt;.*?&lt;\/1&gt;|&lt;.*? \/&gt;<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u7f51\u4e0a\u6d41\u4f20\u7684\u7248\u672c\u592a\u7cdf\u7cd5\uff0c\u4e0a\u9762\u8fd9\u4e2a\u4e5f\u4ec5\u4ec5\u80fd\u5339\u914d\u90e8\u5206\uff0c\u5bf9\u4e8e\u590d\u6742\u7684\u5d4c\u5957\u6807\u8bb0\u4f9d\u65e7\u65e0\u80fd\u4e3a\u529b<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">5.\u5339\u914d\u9996\u5c3e\u7a7a\u767d\u5b57\u7b26\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">^s*|s*$<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u53ef\u4ee5\u7528\u6765\u5220\u9664\u884c\u9996\u884c\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26(\u5305\u62ec\u7a7a\u683c\u3001\u5236\u8868\u7b26\u3001\u6362\u9875\u7b26\u7b49\u7b49)\uff0c\u975e\u5e38\u6709\u7528\u7684\u8868\u8fbe\u5f0f<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">6.\u5339\u914dEmail\u5730\u5740\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span class=\"code-snippet_outer\">w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*<\/span><\/code><\/pre>\n<\/section>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u8868\u5355\u9a8c\u8bc1\u65f6\u5f88\u5b9e\u7528<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">7.\u5339\u914d\u7f51\u5740URL\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">[a-zA-z]+:\/\/[^s]*<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u7f51\u4e0a\u6d41\u4f20\u7684\u7248\u672c\u529f\u80fd\u5f88\u6709\u9650\uff0c\u4e0a\u9762\u8fd9\u4e2a\u57fa\u672c\u53ef\u4ee5\u6ee1\u8db3\u9700\u6c42<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">8.\u5339\u914d\u5e10\u53f7\u662f\u5426\u5408\u6cd5(\u5b57\u6bcd\u5f00\u5934\uff0c\u5141\u8bb85-16\u5b57\u8282\uff0c\u5141\u8bb8\u5b57\u6bcd\u6570\u5b57\u4e0b\u5212\u7ebf)\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\">^[a-zA-Z][a-zA-Z0-9_]{4,15}$<\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u8868\u5355\u9a8c\u8bc1\u65f6\u5f88\u5b9e\u7528<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">9.\u5339\u914d\u56fd\u5185\u7535\u8bdd\u53f7\u7801\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">d{3}-d{8}|d{4}-d{7}<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important; text-align: left;\">\u8bc4\u6ce8\uff1a\u5339\u914d\u5f62\u5f0f\u5982 0511-4405222 \u6216 021-87888822<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important; text-align: left;\"><span style=\"font-size: 15px;\">10.\u5339\u914d\u817e\u8bafQQ\u53f7\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">[1-9][0-9]{4,}<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u817e\u8bafQQ\u53f7\u4ece10000\u5f00\u59cb<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">11.\u5339\u914d\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">[1-9]d{5}(?!d)<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u4e2d\u56fd\u90ae\u653f\u7f16\u7801\u4e3a6\u4f4d\u6570\u5b57<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">12.\u5339\u914d\u00d7\u00d7\u00d7\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">d{15}|d{18}<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u4e2d\u56fd\u7684\u00d7\u00d7\u00d7\u4e3a15\u4f4d\u621618\u4f4d<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">13.\u5339\u914dip\u5730\u5740\uff1a<\/span><code style=\"margin-right: 0.15em; margin-left: 0.15em; padding-right: 0.3em; padding-left: 0.3em; font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; white-space: pre-wrap; background-color: #f8f8f8; border-radius: 3px; display: inline; border: 1px solid #eaeaea;\"><span style=\"font-size: 15px;\">d+.d+.d+.d+<\/span><\/code><\/p>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u63d0\u53d6 IP \u5730\u5740\u65f6\u6709\u7528<\/p>\n<\/blockquote>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">14.\u5339\u914d\u7279\u5b9a\u6570\u5b57\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">^[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*$\u3000\u00a0\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u6b63\u6574\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^-[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*$\u00a0\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u8d1f\u6574\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^-?[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*$\u3000\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u6574\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*|<span class=\"code-snippet__number\">0<\/span>$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u975e\u8d1f\u6574\u6570\uff08\u6b63\u6574\u6570\u00a0+\u00a00\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^-[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*|<span class=\"code-snippet__number\">0<\/span>$\u3000\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u975e\u6b63\u6574\u6570\uff08\u8d1f\u6574\u6570\u00a0+\u00a00\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*.d*|<span class=\"code-snippet__number\">0<\/span>.d*[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*$\u3000\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u6b63\u6d6e\u70b9\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^-([<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*.d*|<span class=\"code-snippet__number\">0<\/span>.d*[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*)$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u8d1f\u6d6e\u70b9\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^-?([<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*.d*|<span class=\"code-snippet__number\">0<\/span>.d*[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*|<span class=\"code-snippet__number\">0<\/span>?<span class=\"code-snippet__number\">.0<\/span>+|<span class=\"code-snippet__number\">0<\/span>)$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u6d6e\u70b9\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*.d*|<span class=\"code-snippet__number\">0<\/span>.d*[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*|<span class=\"code-snippet__number\">0<\/span>?<span class=\"code-snippet__number\">.0<\/span>+|<span class=\"code-snippet__number\">0<\/span>$\u3000\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u975e\u8d1f\u6d6e\u70b9\u6570\uff08\u6b63\u6d6e\u70b9\u6570\u00a0+\u00a00\uff09<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^(-([<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*.d*|<span class=\"code-snippet__number\">0<\/span>.d*[<span class=\"code-snippet__number\">1<\/span><span class=\"code-snippet__number\">-9<\/span>]d*))|<span class=\"code-snippet__number\">0<\/span>?<span class=\"code-snippet__number\">.0<\/span>+|<span class=\"code-snippet__number\">0<\/span>$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u975e\u6b63\u6d6e\u70b9\u6570\uff08\u8d1f\u6d6e\u70b9\u6570\u00a0+\u00a00\uff09<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">\u8bc4\u6ce8\uff1a\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u6709\u7528\uff0c\u5177\u4f53\u5e94\u7528\u65f6\u6ce8\u610f\u4fee\u6b63<\/span><\/p>\n<pre style=\"margin-top: 1.2em; margin-bottom: 1.2em; font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em;\"><\/pre>\n<p style=\"white-space: normal; margin-bottom: 1.2em !important;\"><span style=\"font-size: 15px;\">15.\u5339\u914d\u7279\u5b9a\u5b57\u7b26\u4e32\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">^[A-Za-z]+$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[A-Z]+$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7684\u5927\u5199\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[a-z]+$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7684\u5c0f\u5199\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^[A-Za-z0<span class=\"code-snippet__number\">-9<\/span>]+$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u7531\u6570\u5b57\u548c26\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">^w+$\u3000<span class=\"code-snippet__comment\">\/\/\u5339\u914d\u7531\u6570\u5b57\u300126\u4e2a\u82f1\u6587\u5b57\u6bcd\u6216\u8005\u4e0b\u5212\u7ebf\u7ec4\u6210\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/code><\/pre>\n<\/section>\n<blockquote style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding-top: 0px; padding-right: 1em; padding-left: 1em; border-left-width: 4px; border-left-color: #dddddd; color: #777777; white-space: normal; quotes: none;\">\n<p style=\"margin-bottom: 1.2em !important;\">\u8bc4\u6ce8\uff1a\u6700\u57fa\u672c\u4e5f\u662f\u6700\u5e38\u7528\u7684\u4e00\u4e9b\u8868\u8fbe\u5f0f<\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5220\u96640\u5b57\u8282\u6587\u4ef6 find -type f -size 0 -exec rm -rf {} ; 2 \u67e5\u770b\u8fdb\u7a0b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-3967","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3967"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3967\/revisions"}],"predecessor-version":[{"id":4102,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3967\/revisions\/4102"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}