{"id":48387,"date":"2025-07-30T11:52:42","date_gmt":"2025-07-30T03:52:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/48387.html"},"modified":"2025-07-30T11:52:42","modified_gmt":"2025-07-30T03:52:42","slug":"linux-%e8%bf%9b%e7%a8%8b%e7%ae%a1%e7%90%86%e4%b8%8e%e8%ae%a1%e5%88%92%e4%bb%bb%e5%8a%a1%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/48387.html","title":{"rendered":"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e"},"content":{"rendered":"<h2>Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e<\/h2>\n<h3>\u4e00\u3001\u8fdb\u7a0b\u7ba1\u7406<\/h3>\n<p>\u8fdb\u7a0b\u7ba1\u7406\u7528\u4e8e\u76d1\u63a7\u3001\u63a7\u5236\u7cfb\u7edf\u4e2d\u8fd0\u884c\u7684\u7a0b\u5e8f&#xff08;\u8fdb\u7a0b&#xff09;&#xff0c;\u5305\u62ec\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001\u3001\u8c03\u6574\u4f18\u5148\u7ea7\u3001\u7ec8\u6b62\u5f02\u5e38\u8fdb\u7a0b\u7b49\u3002\u4ee5\u4e0b\u662f\u6838\u5fc3\u547d\u4ee4\u53ca\u64cd\u4f5c\u8bf4\u660e&#xff1a;<\/p>\n<h4>1. \u5e38\u7528\u8fdb\u7a0b\u67e5\u770b\u547d\u4ee4<\/h4>\n<h5>&#xff08;1&#xff09;ps&#xff1a;\u67e5\u770b\u8fdb\u7a0b\u9759\u6001\u4fe1\u606f<\/h5>\n<p>\u529f\u80fd&#xff1a;\u663e\u793a\u7cfb\u7edf\u5f53\u524d\u8fdb\u7a0b\u7684\u5feb\u7167&#xff08;\u9759\u6001\u4fe1\u606f&#xff09;\u3002<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u9009\u9879<\/p>\n<\/td>\n<td>\n<p>\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-a<\/p>\n<\/td>\n<td>\n<p>\u663e\u793a\u5f53\u524d\u7ec8\u7aef\u4e0b\u7684\u6240\u6709\u8fdb\u7a0b&#xff08;\u5305\u62ec\u5176\u4ed6\u7528\u6237&#xff09;&#xff0c;\u4e0e -x \u7ed3\u5408\u663e\u793a\u7cfb\u7edf\u6240\u6709\u8fdb\u7a0b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-u<\/p>\n<\/td>\n<td>\n<p>\u4ee5\u7528\u6237\u4e3a\u4e2d\u5fc3\u7684\u683c\u5f0f\u8f93\u51fa\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-x<\/p>\n<\/td>\n<td>\n<p>\u663e\u793a\u5f53\u524d\u7528\u6237\u6240\u6709\u7ec8\u7aef\u7684\u8fdb\u7a0b&#xff08;\u5305\u62ec\u65e0\u7ec8\u7aef\u7684\u540e\u53f0\u8fdb\u7a0b&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-e<\/p>\n<\/td>\n<td>\n<p>\u663e\u793a\u7cfb\u7edf\u5185\u6240\u6709\u8fdb\u7a0b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-l<\/p>\n<\/td>\n<td>\n<p>\u957f\u683c\u5f0f\u663e\u793a\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-f<\/p>\n<\/td>\n<td>\n<p>\u5b8c\u6574\u683c\u5f0f\u663e\u793a\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e38\u7528\u7528\u6cd5&#xff1a;<\/p>\n<p>ps -aux # \u663e\u793a\u6240\u6709\u8fdb\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f&#xff08;\u7528\u6237\u89c6\u89d2&#xff09;<\/p>\n<p>ps -elf # \u663e\u793a\u6240\u6709\u8fdb\u7a0b\u7684\u5b8c\u6574\u683c\u5f0f&#xff08;\u7cfb\u7edf\u89c6\u89d2&#xff09;<\/p>\n<p>\u8f93\u51fa\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u5b57\u6bb5<\/p>\n<\/td>\n<td>\n<p>\u542b\u4e49<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>USER<\/p>\n<\/td>\n<td>\n<p>\u542f\u52a8\u8fdb\u7a0b\u7684\u7528\u6237\u8d26\u53f7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u552f\u4e00 ID&#xff08;\u7cfb\u7edf\u4e2d\u552f\u4e00&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>%CPU<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528 CPU \u7684\u767e\u5206\u6bd4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>%MEM<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528\u5185\u5b58\u7684\u767e\u5206\u6bd4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VSZ<\/p>\n<\/td>\n<td>\n<p>\u5360\u7528\u865a\u62df\u5185\u5b58&#xff08;swap&#xff09;\u7684\u5927\u5c0f&#xff08;KB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RSS<\/p>\n<\/td>\n<td>\n<p>\u5360\u7528\u7269\u7406\u5185\u5b58\u7684\u5927\u5c0f&#xff08;KB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TTY<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u8fd0\u884c\u7684\u7ec8\u7aef&#xff08;? \u8868\u793a\u65e0\u9700\u7ec8\u7aef&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>STAT<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u72b6\u6001&#xff08;R\u8fd0\u884c\u3001S\u4f11\u7720\u3001Z\u50f5\u6b7b\u3001&lt;\u9ad8\u4f18\u5148\u7ea7\u3001N\u4f4e\u4f18\u5148\u7ea7\u7b49&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>START<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u542f\u52a8\u65f6\u95f4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TIME<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528 CPU \u7684\u603b\u65f6\u95f4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>COMMAND<\/p>\n<\/td>\n<td>\n<p>\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4\u540d\u79f0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&#xff08;2&#xff09;top&#xff1a;\u67e5\u770b\u8fdb\u7a0b\u52a8\u6001\u4fe1\u606f<\/h5>\n<p>\u529f\u80fd&#xff1a;\u5b9e\u65f6\u52a8\u6001\u76d1\u63a7\u8fdb\u7a0b\u72b6\u6001&#xff08;\u9ed8\u8ba4\u6bcf 3 \u79d2\u5237\u65b0\u4e00\u6b21&#xff09;\u3002<\/p>\n<p>\u754c\u9762\u6838\u5fc3\u6307\u6807\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u9876\u90e8\u7cfb\u7edf\u4fe1\u606f&#xff1a;\n<ul>\n<li>load average: 0.1, 0.5, 1.0&#xff1a;CPU 1 \u5206\u949f\u30015 \u5206\u949f\u300115 \u5206\u949f\u5185\u7684\u5e73\u5747\u8d1f\u8f7d&#xff08;\u8d85\u8fc7 CPU \u6838\u5fc3\u6570 2 \u500d\u8868\u793a\u9ad8\u8d1f\u8f7d&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Task&#xff08;\u8fdb\u7a0b\u7edf\u8ba1&#xff09;&#xff1a;\n<ul>\n<li>total&#xff1a;\u603b\u8fdb\u7a0b\u6570&#xff1b;running&#xff1a;\u8fd0\u884c\u4e2d&#xff1b;sleeping&#xff1a;\u4f11\u7720&#xff1b;stopped&#xff1a;\u505c\u6b62&#xff1b;zombie&#xff1a;\u50f5\u6b7b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>% CPU&#xff08;CPU \u5360\u7528&#xff09;&#xff1a;\n<ul>\n<li>us&#xff1a;\u7528\u6237\u8fdb\u7a0b\u5360\u7528&#xff1b;sy&#xff1a;\u7cfb\u7edf\u8fdb\u7a0b\u5360\u7528&#xff1b;ni&#xff1a;\u8c03\u6574\u8fc7\u4f18\u5148\u7ea7\u7684\u7528\u6237\u8fdb\u7a0b&#xff1b;id&#xff1a;\u7a7a\u95f2 CPU&#xff1b;wa&#xff1a;I\/O \u7b49\u5f85&#xff1b;hi\/si&#xff1a;\u786c \/ \u8f6f\u4e2d\u65ad&#xff1b;st&#xff1a;\u865a\u62df\u5316\u5360\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Mem\/Swap&#xff1a;\u7269\u7406\u5185\u5b58 \/ \u4ea4\u6362\u7a7a\u95f4\u7684\u4f7f\u7528\u60c5\u51b5&#xff08;\u603b\u5bb9\u91cf\u3001\u5df2\u7528\u3001\u7a7a\u95f2&#xff09;\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u8fdb\u7a0b\u5217\u8868\u5b57\u6bb5&#xff1a;<\/li>\n<\/ul>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u5b57\u6bb5<\/p>\n<\/td>\n<td>\n<p>\u542b\u4e49<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PID<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b ID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>USER<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5c5e\u4e3b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PR<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u4f18\u5148\u7ea7&#xff08;\u5185\u6838\u52a8\u6001\u8c03\u6574&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>NI<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b nice \u503c&#xff08;-20~19&#xff0c;\u503c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>VIRT<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528\u7684\u865a\u62df\u5185\u5b58\u603b\u91cf&#xff08;KB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>RES<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528\u7684\u7269\u7406\u5185\u5b58\u603b\u91cf&#xff08;KB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SHR<\/p>\n<\/td>\n<td>\n<p>\u4e0e\u5176\u4ed6\u8fdb\u7a0b\u5171\u4eab\u7684\u5185\u5b58\u91cf&#xff08;KB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>S<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u72b6\u6001&#xff08;D\u4e0d\u53ef\u4e2d\u65ad\u4f11\u7720\u3001R\u8fd0\u884c\u3001S\u4f11\u7720\u3001T\u505c\u6b62\u3001Z\u50f5\u6b7b&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>%CPU\/%MEM<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u5360\u7528 CPU \/ \u5185\u5b58\u7684\u767e\u5206\u6bd4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TIME&#043;<\/p>\n<\/td>\n<td>\n<p>\u8fdb\u7a0b\u542f\u52a8\u540e\u5360\u7528\u7684 CPU \u603b\u65f6\u95f4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>COMMAND<\/p>\n<\/td>\n<td>\n<p>\u542f\u52a8\u8fdb\u7a0b\u7684\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&#xff08;3&#xff09;<span style=\"background-color:null\">pgrep -l &lt;\u8fdb\u7a0b\u540d&gt;&#xff1a;<\/span>\u6309\u540d\u79f0\u67e5\u8be2\u8fdb\u7a0b<\/h5>\n<p>\u529f\u80fd&#xff1a;\u6839\u636e\u8fdb\u7a0b\u540d\u67e5\u627e\u5bf9\u5e94\u7684\u8fdb\u7a0b ID&#xff08;PID&#xff09;\u548c\u540d\u79f0\u3002<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>pgrep -l systemd # \u67e5\u627e\u540d\u4e3asshd\u7684\u8fdb\u7a0b&#xff0c;\u8f93\u51fa\u683c\u5f0f&#xff1a;PID \u8fdb\u7a0b\u540d<\/p>\n<h5>&#xff08;4&#xff09;pstree&#xff1a;\u67e5\u770b\u8fdb\u7a0b\u6811\u5f62\u7ed3\u6784<\/h5>\n<p>\u529f\u80fd&#xff1a;\u4ee5\u6811\u5f62\u56fe\u5c55\u793a\u8fdb\u7a0b\u95f4\u7684\u7236\u5b50\u5173\u7cfb\u3002<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u9009\u9879<\/p>\n<\/td>\n<td>\n<p>\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-p<\/p>\n<\/td>\n<td>\n<p>\u540c\u65f6\u663e\u793a\u8fdb\u7a0b PID<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-u<\/p>\n<\/td>\n<td>\n<p>\u663e\u793a\u8fdb\u7a0b\u6240\u5c5e\u7528\u6237<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-a<\/p>\n<\/td>\n<td>\n<p>\u663e\u793a\u5b8c\u6574\u7684\u547d\u4ee4\u884c\u4fe1\u606f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>pstree -pu # \u663e\u793a\u8fdb\u7a0b\u6811\u3001PID\u53ca\u6240\u5c5e\u7528\u6237<\/p>\n<h4>2. \u8fdb\u7a0b\u63a7\u5236\u64cd\u4f5c<\/h4>\n<h5>&#xff08;1&#xff09;\u8fdb\u7a0b\u542f\u52a8\u65b9\u5f0f<\/h5>\n<ul>\n<li>\u524d\u53f0\u542f\u52a8&#xff1a;\u547d\u4ee4\u76f4\u63a5\u5728\u5f53\u524d\u7ec8\u7aef\u8fd0\u884c&#xff08;\u9ed8\u8ba4\u65b9\u5f0f&#xff09;&#xff0c;\u4f8b\u5982&#xff1a;<\/li>\n<\/ul>\n<p>ls \/home # \u524d\u53f0\u6267\u884c&#xff0c;\u6267\u884c\u671f\u95f4\u7ec8\u7aef\u88ab\u5360\u7528<\/p>\n<ul>\n<li>\u540e\u53f0\u542f\u52a8&#xff1a;\u547d\u4ee4\u540e\u52a0 &amp;&#xff0c;\u8fdb\u7a0b\u5728\u540e\u53f0\u8fd0\u884c&#xff0c;\u7ec8\u7aef\u53ef\u7ee7\u7eed\u4f7f\u7528&#xff1a;<\/li>\n<\/ul>\n<p>route &amp; # \u540e\u53f0\u6267\u884croute\u547d\u4ee4<\/p>\n<h5>&#xff08;2&#xff09;\u8fdb\u7a0b\u6302\u8d77\u4e0e\u6062\u590d<\/h5>\n<ul>\n<li>\u6302\u8d77\u5f53\u524d\u8fdb\u7a0b&#xff1a;\u524d\u53f0\u8fdb\u7a0b\u8fd0\u884c\u65f6&#xff0c;\u6309 Ctrl &#043; Z \u53ef\u5c06\u5176\u6302\u8d77&#xff08;\u8f6c\u5165\u540e\u53f0\u5e76\u505c\u6b62\u6267\u884c&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>top # \u524d\u53f0\u8fd0\u884ctop&#xff0c;\u6309Ctrl&#043;Z\u6302\u8d77<\/p>\n<ul>\n<li>\u67e5\u770b\u540e\u53f0\u8fdb\u7a0b&#xff1a;<\/li>\n<\/ul>\n<p>jobs -l # \u5217\u51fa\u540e\u53f0\u8fdb\u7a0b&#xff08;-l\u663e\u793aPID&#xff09;<\/p>\n<ul>\n<li>\u6062\u590d\u540e\u53f0\u8fdb\u7a0b&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li><span style=\"background-color:null\">bg &lt;\u4efb\u52a1\u53f7&gt;<\/span>&#xff1a;\u5c06\u540e\u53f0\u6302\u8d77\u7684\u8fdb\u7a0b\u6062\u590d\u8fd0\u884c&#xff08;\u7ee7\u7eed\u5728\u540e\u53f0&#xff09;&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>bg 1 # \u6062\u590d\u4efb\u52a1\u53f7\u4e3a1\u7684\u540e\u53f0\u8fdb\u7a0b<\/p>\n<ul>\n<li>\n<ul>\n<li><span style=\"background-color:null\">fg &lt;\u4efb\u52a1\u53f7&gt;<\/span>&#xff1a;\u5c06\u540e\u53f0\u8fdb\u7a0b\u8c03\u56de\u524d\u53f0\u8fd0\u884c&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>fg 1 # \u5c06\u4efb\u52a1\u53f7\u4e3a1\u7684\u8fdb\u7a0b\u8c03\u81f3\u524d\u53f0<\/p>\n<h4>3. \u8fdb\u7a0b\u7ec8\u6b62\u4e0e\u4f18\u5148\u7ea7\u8c03\u6574<\/h4>\n<h5>&#xff08;1&#xff09;<span style=\"background-color:null\">kill &lt;\u8fdb\u7a0b\u53f7&gt;<\/span>&#xff1a;\u901a\u8fc7 PID \u7ec8\u6b62\u8fdb\u7a0b<\/h5>\n<p>\u529f\u80fd&#xff1a;\u5411\u6307\u5b9a PID \u7684\u8fdb\u7a0b\u53d1\u9001\u7ec8\u6b62\u4fe1\u53f7&#xff08;\u9ed8\u8ba4\u4fe1\u53f7\u4e3a 15&#xff0c;\u6b63\u5e38\u7ec8\u6b62&#xff09;\u3002<\/p>\n<ul>\n<li>\u5f3a\u5236\u7ec8\u6b62&#xff08;\u4fe1\u53f7 9&#xff0c;\u65e0\u6cd5\u5ffd\u7565&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>kill -9 1234 # \u5f3a\u5236\u7ec8\u6b62PID\u4e3a1234\u7684\u8fdb\u7a0b<\/p>\n<h5>&#xff08;2&#xff09;pkill &lt;\u6761\u4ef6&gt;&#xff1a;\u6309\u6761\u4ef6\u7ec8\u6b62\u8fdb\u7a0b<\/h5>\n<p>\u529f\u80fd&#xff1a;\u6839\u636e\u8fdb\u7a0b\u540d\u3001\u7528\u6237\u3001\u7ec8\u7aef\u7b49\u5c5e\u6027\u7ec8\u6b62\u8fdb\u7a0b\u3002<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u9009\u9879<\/p>\n<\/td>\n<td>\n<p>\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-U &lt;\u7528\u6237\u540d&gt;<\/p>\n<\/td>\n<td>\n<p>\u7ec8\u6b62\u6307\u5b9a\u7528\u6237\u7684\u8fdb\u7a0b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-t &lt;\u7ec8\u7aef&gt;<\/p>\n<\/td>\n<td>\n<p>\u7ec8\u6b62\u6307\u5b9a\u7ec8\u7aef\u7684\u8fdb\u7a0b<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>pkill -U zhangsan # \u7ec8\u6b62\u7528\u6237zhangsan\u7684\u6240\u6709\u8fdb\u7a0b<br \/>\npkill -9 sshd # \u5f3a\u5236\u7ec8\u6b62\u6240\u6709\u540d\u4e3asshd\u7684\u8fdb\u7a0b<\/p>\n<h5>&#xff08;3&#xff09;killall &lt;\u8fdb\u7a0b\u540d&gt;&#xff1a;\u6309\u540d\u79f0\u7ec8\u6b62\u6240\u6709\u540c\u540d\u8fdb\u7a0b<\/h5>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>killall -9 httpd # \u5f3a\u5236\u7ec8\u6b62\u6240\u6709httpd\u8fdb\u7a0b<\/p>\n<h5>&#xff08;4&#xff09;renice&#xff1a;\u8c03\u6574\u8fdb\u7a0b\u4f18\u5148\u7ea7<\/h5>\n<p>\u529f\u80fd&#xff1a;\u4fee\u6539\u8fdb\u7a0b\u7684 nice \u503c&#xff08;-20~19&#xff0c;<span style=\"color:#fe2c24\">\u503c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8<\/span>&#xff09;\u3002<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>renice -5 1234 # \u5c06PID\u4e3a1234\u7684\u8fdb\u7a0bnice\u503c\u6539\u4e3a-5&#xff08;\u63d0\u9ad8\u4f18\u5148\u7ea7&#xff09;<\/p>\n<h3>\u4e8c\u3001\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e<\/h3>\n<p><span style=\"background-color:null\">\u8ba1\u5212\u4efb\u52a1\u7528\u4e8e\u81ea\u52a8\u6267\u884c\u5468\u671f\u6027\u6216\u4e00\u6b21\u6027\u4efb\u52a1&#xff08;\u5982\u5907\u4efd\u3001\u76d1\u63a7\u7b49&#xff09;&#xff0c;\u6838\u5fc3\u5de5\u5177\u4e3a at&#xff08;\u4e00\u6b21\u6027&#xff09;\u548c crontab&#xff08;\u5468\u671f\u6027&#xff09;\u3002<\/span><\/p>\n<h4>1. \u4e00\u6b21\u6027\u8ba1\u5212\u4efb\u52a1&#xff08;at&#xff09;<\/h4>\n<h5>&#xff08;1&#xff09;\u8bbe\u7f6e\u4e00\u6b21\u6027\u4efb\u52a1<\/h5>\n<p>\u8bed\u6cd5&#xff1a;<span style=\"background-color:null\">at &lt;\u65f6\u95f4&gt; [\u65e5\u671f]&#xff0c;\u8fdb\u5165\u7f16\u8f91\u754c\u9762\u8f93\u5165\u547d\u4ee4&#xff0c;\u6309 Ctrl &#043; D \u4fdd\u5b58\u9000\u51fa\u3002<\/span><\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>at 23:30 2025-07-31 # \u8bbe\u7f6e2025\u5e747\u670831\u65e523:30\u6267\u884c\u4efb\u52a1<\/p>\n<p>at&gt; ls \/ &gt; \/tmp\/dir_list # \u4efb\u52a1\u5185\u5bb9&#xff1a;\u5c06\/\u76ee\u5f55\u5217\u8868\u5199\u5165\/tmp\/dir_list<\/p>\n<p>at&gt; &lt;EOT&gt; # \u6309Ctrl&#043;D\u7ed3\u675f\u7f16\u8f91<\/p>\n<h5>&#xff08;2&#xff09;\u7ba1\u7406at\u4efb\u52a1<\/h5>\n<ul>\n<li>\u67e5\u770b\u5f85\u6267\u884c\u4efb\u52a1&#xff1a;<\/li>\n<\/ul>\n<p>atq # \u5217\u51fa\u6240\u6709at\u4efb\u52a1&#xff08;\u683c\u5f0f&#xff1a;\u4efb\u52a1\u53f7 \u6267\u884c\u65f6\u95f4 \u7528\u6237\u540d&#xff09;<\/p>\n<ul>\n<li>\u67e5\u770b\u4efb\u52a1\u8be6\u60c5&#xff1a;<\/li>\n<\/ul>\n<p>at -c 1 # \u67e5\u770b\u4efb\u52a1\u53f7\u4e3a1\u7684\u5177\u4f53\u5185\u5bb9<\/p>\n<ul>\n<li>\u5220\u9664\u4efb\u52a1&#xff1a;<\/li>\n<\/ul>\n<p>atrm 1 # \u5220\u9664\u4efb\u52a1\u53f7\u4e3a1\u7684at\u4efb\u52a1<\/p>\n<h4>2. \u5468\u671f\u6027\u8ba1\u5212\u4efb\u52a1&#xff08;crontab&#xff09;<\/h4>\n<h5>&#xff08;1&#xff09;\u57fa\u672c\u8bed\u6cd5<\/h5>\n<p>\u901a\u8fc7 crontab -e \u7f16\u8f91\u4efb\u52a1&#xff0c;\u683c\u5f0f\u4e3a&#xff1a;<\/p>\n<p><span style=\"background-color:null\">\u5206 \u65f6 \u65e5 \u6708 \u5468 \u547d\u4ee4<\/span><\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u65f6\u95f4\u5b57\u6bb5<\/p>\n<\/td>\n<td>\n<p>\u53d6\u503c\u8303\u56f4<\/p>\n<\/td>\n<td>\n<p>\u7279\u6b8a\u7b26\u53f7<\/p>\n<\/td>\n<td>\n<p>\u542b\u4e49<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5206<\/p>\n<\/td>\n<td>\n<p>0~59<\/p>\n<\/td>\n<td>\n<p>,<\/p>\n<\/td>\n<td>\n<p>\u679a\u4e3e&#xff08;\u598210,20\u8868\u793a 10 \u5206\u548c 20 \u5206&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u65f6<\/p>\n<\/td>\n<td>\n<p>0~23<\/p>\n<\/td>\n<td>\n<p>&#8211;<\/p>\n<\/td>\n<td>\n<p>\u8303\u56f4&#xff08;\u59829-17\u8868\u793a 9 \u70b9\u5230 17 \u70b9&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u65e5<\/p>\n<\/td>\n<td>\n<p>1~31<\/p>\n<\/td>\n<td>\n<p>*\/n<\/p>\n<\/td>\n<td>\n<p>\u95f4\u9694&#xff08;\u5982*\/2\u8868\u793a\u6bcf 2 \u5929&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u6708<\/p>\n<\/td>\n<td>\n<p>1~12<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5468<\/p>\n<\/td>\n<td>\n<p>0~7&#xff08;0\/7 \u4e3a\u5468\u65e5&#xff09;<\/p>\n<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&#xff08;2&#xff09;crontab \u547d\u4ee4\u9009\u9879<\/h5>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u9009\u9879<\/p>\n<\/td>\n<td>\n<p>\u8bf4\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-e<\/p>\n<\/td>\n<td>\n<p>\u7f16\u8f91\u5f53\u524d\u7528\u6237\u7684\u8ba1\u5212\u4efb\u52a1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-u &lt;\u7528\u6237&gt;<\/p>\n<\/td>\n<td>\n<p>\u6307\u5b9a\u7528\u6237&#xff08;\u4ec5 root \u53ef\u7528&#xff09;&#xff0c;\u5982 crontab -u zhangsan -e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-l<\/p>\n<\/td>\n<td>\n<p>\u5217\u51fa\u5f53\u524d\u7528\u6237\u7684\u8ba1\u5212\u4efb\u52a1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-r<\/p>\n<\/td>\n<td>\n<p>\u5220\u9664\u5f53\u524d\u7528\u6237\u7684\u6240\u6709\u8ba1\u5212\u4efb\u52a1<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>&#xff08;3&#xff09;\u914d\u7f6e\u793a\u4f8b<\/h5>\n<p># \u6bcf\u5929\u51cc\u66683\u70b9\u6267\u884c\u5907\u4efd\u811a\u672c<\/p>\n<p>0 3 * * * \/root\/backup.sh<\/p>\n<p># \u6bcf\u5468\u4e00\u3001\u4e09\u3001\u4e94\u768418:30\u6267\u884c\u65e5\u5fd7\u6e05\u7406<\/p>\n<p>30 18 * * 1,3,5 \/usr\/bin\/clean_logs.sh<\/p>\n<p># \u6bcf\u67081\u65e5\u548c15\u65e5\u76840\u70b9&#xff0c;\u6bcf\u5c0f\u65f6\u6267\u884c\u4e00\u6b21\u76d1\u63a7\u811a\u672c<\/p>\n<p>0 *\/1 1,15 * * \/usr\/local\/monitor.sh<\/p>\n<h5>&#xff08;4&#xff09;\u4efb\u52a1\u6587\u4ef6\u5b58\u653e<\/h5>\n<ul>\n<li>\u7cfb\u7edf\u7ea7\u4efb\u52a1&#xff1a;\/etc\/crontab&#xff08;\u9700 root \u7f16\u8f91&#xff09;\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u7528\u6237\u7ea7\u4efb\u52a1&#xff1a;\/var\/spool\/cron\/&lt;\u7528\u6237\u540d&gt;&#xff08;\u81ea\u52a8\u751f\u6210&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u8f91&#xff09;\u3002<\/li>\n<\/ul>\n<h5>&#xff08;5&#xff09;\u670d\u52a1\u7ba1\u7406<\/h5>\n<p>crontab \u4f9d\u8d56 crond \u670d\u52a1&#xff0c;\u9700\u786e\u4fdd\u5176\u8fd0\u884c&#xff1a;<\/p>\n<p>systemctl restart crond # \u91cd\u542f\u670d\u52a1<\/p>\n<p>systemctl enable crond # \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/p>\n<h4>3. \u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\u5173\u673a\u5f71\u54cd&#xff1a;at \u548c crontab \u4efb\u52a1\u5747\u4f9d\u8d56\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u3002\u82e5\u7cfb\u7edf\u5728\u4efb\u52a1\u9884\u5b9a\u65f6\u95f4\u5173\u673a&#xff0c;at \u4efb\u52a1\u4f1a\u5931\u6548&#xff0c;crontab \u4efb\u52a1\u4f1a\u8df3\u8fc7\u8be5\u6b21\u6267\u884c&#xff0c;\u540e\u7eed\u5468\u671f\u7ee7\u7eed\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u547d\u4ee4\u8def\u5f84&#xff1a;\u8ba1\u5212\u4efb\u52a1\u4e2d\u5efa\u8bae\u4f7f\u7528\u547d\u4ee4\u7edd\u5bf9\u8def\u5f84&#xff08;\u5982 \/usr\/bin\/ls \u800c\u975e ls&#xff09;&#xff0c;\u907f\u514d\u73af\u5883\u53d8\u91cf\u95ee\u9898\u3002<\/li>\n<\/ul>\n<ul>\n<li>\u65e5\u5fd7\u67e5\u770b&#xff1a;\u4efb\u52a1\u6267\u884c\u65e5\u5fd7\u53ef\u901a\u8fc7 \/var\/log\/cron \u6216 journalctl -u crond \u67e5\u770b\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u5de5\u5177\u548c\u64cd\u4f5c&#xff0c;\u53ef\u5b9e\u73b0\u5bf9 Linux \u8fdb\u7a0b\u7684\u5168\u9762\u7ba1\u7406\u53ca\u81ea\u52a8\u5316\u4efb\u52a1\u8c03\u5ea6&#xff0c;\u9002\u7528\u4e8e\u7cfb\u7edf\u76d1\u63a7\u3001\u5b9a\u671f\u7ef4\u62a4\u7b49\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb166\u6b21\u3002\u6458\u8981\uff1a \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e\u65b9\u6cd5\u3002\u8fdb\u7a0b\u7ba1\u7406\u90e8\u5206\u6db5\u76d6\u5e38\u7528\u547d\u4ee4\uff08ps\u3001top\u3001pgrep\u3001pstree\uff09\u7528\u4e8e\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001\uff0c\u4ee5\u53ca\u8fdb\u7a0b\u63a7\u5236\u64cd\u4f5c\uff08\u540e\u53f0\u542f\u52a8\u3001\u6302\u8d77\/\u6062\u590d\u3001\u7ec8\u6b62\u4e0e\u4f18\u5148\u7ea7\u8c03\u6574\uff09\u3002\u8ba1\u5212\u4efb\u52a1\u90e8\u5206\u5305\u62ec\u4e00\u6b21\u6027\u4efb\u52a1\u5de5\u5177at\uff08\u8bbe\u7f6e\u3001\u67e5\u770b\u3001\u5220\u9664\uff09\u548c\u5468\u671f\u6027\u4efb\u52a1\u5de5\u5177crontab\uff08\u8bed\u6cd5\u3001\u914d\u7f6e\u793a\u4f8b\u3001\u670d\u52a1\u7ba1\u7406\uff09\uff0c\u5e76\u5f3a\u8c03\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u548c\u65e5\u5fd7\u67e5\u770b\u7b49\u6ce8\u610f\u4e8b\u9879\u3002\u901a\u8fc7\u8fd9\u4e24\u7c7b\u5de5\u5177\uff0c\u53ef\u6709\u6548\u76d1\u63a7\u7cfb\u7edf\u8fdb\u7a0b\u5e76\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u8c03\u5ea6\uff0c\u9002\u7528\u4e8e\u7cfb\u7edf\u7ef4\u62a4\u4e0e\u76d1\u63a7\u573a\u666f\u3002\uff08150\u5b57\uff09<\/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,43,78,44],"topic":[],"class_list":["post-48387","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-78","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \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\/48387.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb166\u6b21\u3002\u6458\u8981\uff1a \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e\u65b9\u6cd5\u3002\u8fdb\u7a0b\u7ba1\u7406\u90e8\u5206\u6db5\u76d6\u5e38\u7528\u547d\u4ee4\uff08ps\u3001top\u3001pgrep\u3001pstree\uff09\u7528\u4e8e\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001\uff0c\u4ee5\u53ca\u8fdb\u7a0b\u63a7\u5236\u64cd\u4f5c\uff08\u540e\u53f0\u542f\u52a8\u3001\u6302\u8d77\/\u6062\u590d\u3001\u7ec8\u6b62\u4e0e\u4f18\u5148\u7ea7\u8c03\u6574\uff09\u3002\u8ba1\u5212\u4efb\u52a1\u90e8\u5206\u5305\u62ec\u4e00\u6b21\u6027\u4efb\u52a1\u5de5\u5177at\uff08\u8bbe\u7f6e\u3001\u67e5\u770b\u3001\u5220\u9664\uff09\u548c\u5468\u671f\u6027\u4efb\u52a1\u5de5\u5177crontab\uff08\u8bed\u6cd5\u3001\u914d\u7f6e\u793a\u4f8b\u3001\u670d\u52a1\u7ba1\u7406\uff09\uff0c\u5e76\u5f3a\u8c03\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u548c\u65e5\u5fd7\u67e5\u770b\u7b49\u6ce8\u610f\u4e8b\u9879\u3002\u901a\u8fc7\u8fd9\u4e24\u7c7b\u5de5\u5177\uff0c\u53ef\u6709\u6548\u76d1\u63a7\u7cfb\u7edf\u8fdb\u7a0b\u5e76\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u8c03\u5ea6\uff0c\u9002\u7528\u4e8e\u7cfb\u7edf\u7ef4\u62a4\u4e0e\u76d1\u63a7\u573a\u666f\u3002\uff08150\u5b57\uff09\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/48387.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T03:52:42+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48387.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/48387.html\",\"name\":\"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T03:52:42+00:00\",\"dateModified\":\"2025-07-30T03:52:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/48387.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/48387.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48387.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e\"}]},{\"@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 \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \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\/48387.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb166\u6b21\u3002\u6458\u8981\uff1a \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u4e2d\u7684\u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e\u65b9\u6cd5\u3002\u8fdb\u7a0b\u7ba1\u7406\u90e8\u5206\u6db5\u76d6\u5e38\u7528\u547d\u4ee4\uff08ps\u3001top\u3001pgrep\u3001pstree\uff09\u7528\u4e8e\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001\uff0c\u4ee5\u53ca\u8fdb\u7a0b\u63a7\u5236\u64cd\u4f5c\uff08\u540e\u53f0\u542f\u52a8\u3001\u6302\u8d77\/\u6062\u590d\u3001\u7ec8\u6b62\u4e0e\u4f18\u5148\u7ea7\u8c03\u6574\uff09\u3002\u8ba1\u5212\u4efb\u52a1\u90e8\u5206\u5305\u62ec\u4e00\u6b21\u6027\u4efb\u52a1\u5de5\u5177at\uff08\u8bbe\u7f6e\u3001\u67e5\u770b\u3001\u5220\u9664\uff09\u548c\u5468\u671f\u6027\u4efb\u52a1\u5de5\u5177crontab\uff08\u8bed\u6cd5\u3001\u914d\u7f6e\u793a\u4f8b\u3001\u670d\u52a1\u7ba1\u7406\uff09\uff0c\u5e76\u5f3a\u8c03\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u548c\u65e5\u5fd7\u67e5\u770b\u7b49\u6ce8\u610f\u4e8b\u9879\u3002\u901a\u8fc7\u8fd9\u4e24\u7c7b\u5de5\u5177\uff0c\u53ef\u6709\u6548\u76d1\u63a7\u7cfb\u7edf\u8fdb\u7a0b\u5e76\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u8c03\u5ea6\uff0c\u9002\u7528\u4e8e\u7cfb\u7edf\u7ef4\u62a4\u4e0e\u76d1\u63a7\u573a\u666f\u3002\uff08150\u5b57\uff09","og_url":"https:\/\/www.wsisp.com\/helps\/48387.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T03:52:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/48387.html","url":"https:\/\/www.wsisp.com\/helps\/48387.html","name":"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T03:52:42+00:00","dateModified":"2025-07-30T03:52:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/48387.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/48387.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/48387.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u8fdb\u7a0b\u7ba1\u7406\u4e0e\u8ba1\u5212\u4efb\u52a1\u8bbe\u7f6e"}]},{"@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\/48387","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=48387"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48387\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=48387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=48387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=48387"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=48387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}