{"id":4149,"date":"2019-07-25T23:47:04","date_gmt":"2019-07-25T15:47:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4149"},"modified":"2019-07-25T23:47:06","modified_gmt":"2019-07-25T15:47:06","slug":"skill","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/skill","title":{"rendered":"skill\u547d\u4ee4 – \u9001\u8baf\u53f7\u7ed9\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f"},"content":{"rendered":"\n

skill\u547d\u4ee4\u9001\u4e2a\u8baf\u53f7\u7ed9\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f\uff0c\u9884\u8bbe\u7684\u8baf\u606f\u4e3a TERM (\u4e2d\u65ad)\uff0c\u8f83\u5e38\u4f7f\u7528\u7684\u8baf\u606f\u4e3a HUP\u3001INT\u3001KILL\u3001STOP\u3001CONT \u548c 0\u3002<\/p>\n\n\n\n

\u8baf\u606f\u6709\u4e09\u79cd\u5199\u6cd5\uff1a\u5206\u522b\u4e3a -9\u3001-SIGKILL\u3001-KILL\uff0c\u53ef\u4ee5\u4f7f\u7528 -l \u6216 -L \u5df2\u5217\u51fa\u53ef\u4f7f\u7528\u7684\u8baf\u606f\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>skill [\u8baf\u53f7\u540d\u79f0] [\u9009\u62e9\u7a0b\u5e8f\u7684\u89c4\u5219]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-v<\/td>\u8be6\u7ec6\u8f93\u51fa\/ \u5217\u51fa\u6240\u9009\u62e9\u7a0b\u5e8f\u7684\u8d44\u8baf <\/td><\/tr>
-n<\/td>\u6ca1\u6709\u52a8\u4f5c\/ \u663e\u793a\u7a0b\u5e8f\u4ee3\u53f7 <\/td><\/tr>
-t<\/td>\u7ec8\u7aef\u673a\u4ee3\u53f7 <\/td><\/tr>
-u<\/td>\u4f7f\u7528\u8005\u540d\u79f0 <\/td><\/tr>
-w<\/td>\u667a\u80fd\u8b66\u544a\u8baf\u606f\/ \u5c1a\u672a\u5b8c\u6210 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u505c\u6b62\u6240\u6709\u5728 PTY \u88c5\u7f6e\u4e0a\u7684\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# skill -KILL -v pts\/* <\/pre>\n\n\n\n

\u505c\u6b62\u4e09\u4e2a\u4f7f\u7528\u8005 user1\u3001user2\u3001user3\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# skill -STOP user1 user2 user3<\/pre>\n\n\n\n

\u51bb\u7ed316514\u53f7\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# skill -STOP 16514<\/pre>\n\n\n\n

\u51bb\u7ed3oracle\u8fdb\u7a0b:<\/p>\n\n\n\n

[root@linuxcool ~]# skill -STOP oracle<\/pre>\n\n\n\n

\u5524\u9192\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# skill -CONT 16514 <\/pre>\n","protected":false},"excerpt":{"rendered":"

skill\u547d\u4ee4\u9001\u4e2a\u8baf\u53f7\u7ed9\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f\uff0c\u9884\u8bbe\u7684\u8baf\u606f\u4e3a TERM (\u4e2d\u65ad)\uff0c\u8f83\u5e38\u4f7f\u7528\u7684\u8baf\u606f\u4e3a HUP\u3001INT\u3001K […]<\/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\/4149"}],"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=4149"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4149\/revisions"}],"predecessor-version":[{"id":4228,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4149\/revisions\/4228"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}