{"id":5264,"date":"2019-10-24T10:45:34","date_gmt":"2019-10-24T02:45:34","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5264"},"modified":"2019-10-27T19:38:03","modified_gmt":"2019-10-27T11:38:03","slug":"pkill","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pkill","title":{"rendered":"pkill\u547d\u4ee4 – \u6309\u7167\u8fdb\u7a0b\u540d\u6740\u6b7b\u8fdb\u7a0b"},"content":{"rendered":"\n

pkill\u547d\u4ee4\u53ef\u4ee5\u6309\u7167\u8fdb\u7a0b\u540d\u6740\u6b7b\u8fdb\u7a0b\u3002pkill\u548ckillall\u5e94\u7528\u65b9\u6cd5\u5dee\u4e0d\u591a\uff0c\u4e5f\u662f\u76f4\u63a5\u6740\u6b7b\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u3002\u5982\u679c\u60f3\u6740\u6389\u5355\u4e2a\u8fdb\u7a0b\uff0c\u8bf7\u7528kill\u6765\u6740\u6389\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-o<\/td>\u4ec5\u5411\u627e\u5230\u7684\u6700\u5c0f\uff08\u8d77\u59cb\uff09\u8fdb\u7a0b\u53f7\u53d1\u9001\u4fe1\u53f7<\/td><\/tr>
-n<\/td>\u4ec5\u5411\u627e\u5230\u7684\u6700\u5927\uff08\u7ed3\u675f\uff09\u8fdb\u7a0b\u53f7\u53d1\u9001\u4fe1\u53f7<\/td><\/tr>
-P<\/td>\u6307\u5b9a\u7236\u8fdb\u7a0b\u53f7\u53d1\u9001\u4fe1\u53f7<\/td><\/tr>
-g<\/td>\u6307\u5b9a\u8fdb\u7a0b\u7ec4<\/td><\/tr>
-t<\/td>\u6307\u5b9a\u5f00\u542f\u8fdb\u7a0b\u7684\u7ec8\u7aef<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4ec5\u5411\u627e\u5230\u7684\u6700\u5c0f\uff08\u8d77\u59cb\uff09\u8fdb\u7a0b\u53f7\u53d1\u9001\u4fe1\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pkill -o<\/pre>\n\n\n\n

\u4ec5\u5411\u627e\u5230\u7684\u6700\u5927\uff08\u7ed3\u675f\uff09\u8fdb\u7a0b\u53f7\u53d1\u9001\u4fe1\u53f7\uff1a<\/p>\n\n\n\n

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

\u6740\u6b7bApache\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pkill httpd<\/pre>\n","protected":false},"excerpt":{"rendered":"

pkill\u547d\u4ee4\u53ef\u4ee5\u6309\u7167\u8fdb\u7a0b\u540d\u6740\u6b7b\u8fdb\u7a0b\u3002pkill\u548ckillall\u5e94\u7528\u65b9\u6cd5\u5dee\u4e0d\u591a\uff0c\u4e5f\u662f\u76f4\u63a5\u6740\u6b7b\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u3002\u5982\u679c […]<\/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\/5264"}],"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=5264"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5264\/revisions"}],"predecessor-version":[{"id":5275,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5264\/revisions\/5275"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}