{"id":1691,"date":"2019-05-16T23:27:10","date_gmt":"2019-05-16T15:27:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1691"},"modified":"2019-05-27T23:42:41","modified_gmt":"2019-05-27T15:42:41","slug":"killall","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/killall","title":{"rendered":"killall\u547d\u4ee4 – \u4f7f\u7528\u8fdb\u7a0b\u540d\u79f0\u6765\u6740\u6b7b\u4e00\u7ec4\u8fdb\u7a0b"},"content":{"rendered":"\n

killall\u547d\u4ee4\u4f7f\u7528\u8fdb\u7a0b\u7684\u540d\u79f0\u6765\u6740\u6b7b\u8fdb\u7a0b\uff0c\u4f7f\u7528\u6b64\u6307\u4ee4\u53ef\u4ee5\u6740\u6b7b\u4e00\u7ec4\u540c\u540d\u8fdb\u7a0b\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528kill\u547d\u4ee4\u6740\u6b7b\u6307\u5b9a\u8fdb\u7a0bPID\u7684\u8fdb\u7a0b\uff0c\u5982\u679c\u8981\u627e\u5230\u6211\u4eec\u9700\u8981\u6740\u6b7b\u7684\u8fdb\u7a0b\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5728\u4e4b\u524d\u4f7f\u7528ps\u7b49\u547d\u4ee4\u518d\u914d\u5408grep\u6765\u67e5\u627e\u8fdb\u7a0b\uff0c\u800ckillall\u628a\u8fd9\u4e24\u4e2a\u8fc7\u7a0b\u5408\u4e8c\u4e3a\u4e00\uff0c\u662f\u4e00\u4e2a\u5f88\u597d\u7528\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n

\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528kill\u547d\u4ee4\u6740\u6b7b\u6307\u5b9a\u8fdb\u7a0bPID\u7684\u8fdb\u7a0b\uff0c\u5982\u679c\u8981\u627e\u5230\u6211\u4eec\u9700\u8981\u6740\u6b7b\u7684\u8fdb\u7a0b\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5728\u4e4b\u524d\u4f7f\u7528ps\u7b49\u547d\u4ee4\u518d\u914d\u5408grep\u6765\u67e5\u627e\u8fdb\u7a0b\uff0c\u800ckillall\u628a\u8fd9\u4e24\u4e2a\u8fc7\u7a0b\u5408\u4e8c\u4e3a\u4e00\uff0c\u662f\u4e00\u4e2a\u5f88\u597d\u7528\u7684\u547d\u4ee4\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f<\/strong>\uff1akillall [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>\uff1a<\/p>\n\n\n\n
-e<\/td>\u5bf9\u957f\u540d\u79f0\u8fdb\u884c\u7cbe\u786e\u5339\u914d<\/td><\/tr>
-l<\/td>\u6253\u5370\u6240\u6709\u5df2\u77e5\u4fe1\u53f7\u5217\u8868<\/td><\/tr>
-p<\/td>\u6740\u6b7b\u8fdb\u7a0b\u6240\u5c5e\u7684\u8fdb\u7a0b\u7ec4<\/td><\/tr>
-i<\/td>\u4ea4\u4e92\u5f0f\u6740\u6b7b\u8fdb\u7a0b\uff0c\u6740\u6b7b\u8fdb\u7a0b\u524d\u9700\u8981\u8fdb\u884c\u786e\u8ba4<\/td><\/tr>
-r<\/td>\u4f7f\u7528\u6b63\u89c4\u8868\u8fbe\u5f0f\u5339\u914d\u8981\u6740\u6b7b\u7684\u8fdb\u7a0b\u540d\u79f0<\/td><\/tr>
-s<\/td>\u7528\u6307\u5b9a\u7684\u8fdb\u7a0b\u53f7\u4ee3\u66ff\u9ed8\u8ba4\u4fe1\u53f7\u201cSIGTERM\u201d<\/td><\/tr>
-u<\/td>\u6740\u6b7b\u6307\u5b9a\u7528\u6237\u7684\u8fdb\u7a0b<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6740\u6b7bhttpd\u6240\u6709\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# killall -9 httpd<\/pre>\n\n\n\n

\u4f7f\u7528-l\u53c2\u6570\u6253\u5370\u6240\u6709\u5df2\u77e5\u4fe1\u53f7\u5217\u8868:<\/p>\n\n\n\n

[root@linuxcool ~]# killall -l<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

killall\u547d\u4ee4\u4f7f\u7528\u8fdb\u7a0b\u7684\u540d\u79f0\u6765\u6740\u6b7b\u8fdb\u7a0b\uff0c\u4f7f\u7528\u6b64\u6307\u4ee4\u53ef\u4ee5\u6740\u6b7b\u4e00\u7ec4\u540c\u540d\u8fdb\u7a0b\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528kill\u547d\u4ee4\u6740\u6b7b\u6307\u5b9a\u8fdb […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1691"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1691"}],"version-history":[{"count":14,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1691\/revisions"}],"predecessor-version":[{"id":2765,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1691\/revisions\/2765"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}