{"id":6301,"date":"2020-01-19T19:38:41","date_gmt":"2020-01-19T11:38:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6301"},"modified":"2023-05-01T18:07:17","modified_gmt":"2023-05-01T10:07:17","slug":"disown","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/disown","title":{"rendered":"disown\u547d\u4ee4 &#8211; \u4eceShell\u7ec8\u7aef\u4e2d\u79fb\u9664\u4f5c\u4e1a"},"content":{"rendered":"\n<p>disown\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u4eceShell\u7ec8\u7aef\u4e2d\u79fb\u9664\u4f5c\u4e1a\uff0c\u662f\u4e00\u4e2abash\u89e3\u91ca\u5668\u7684\u5185\u7f6e\u547d\u4ee4\u3002disown\u547d\u4ee4\u80fd\u591f\u4eceShell\u7ec8\u7aef\u4e2d\u79fb\u9664\u6307\u5b9a\u7684\u4f5c\u4e1a\uff0c\u6b63\u5728\u8fd0\u884c\u7684\u4f5c\u4e1a\u4e5f\u53ef\u4ee5\u88ab\u79fb\u9664\uff0c\u4ea6\u53ef\u4ee5\u5bf9\u4f5c\u4e1a\u8fdb\u884c\u6807\u8bb0\uff0c\u4f7f\u5176\u5728\u5f53\u524dShell\u7ec8\u7aef\u7a97\u53e3\u5173\u95ed\u540e\u4f9d\u7136\u4e0d\u4f1a\u7ed3\u675f\u3002<\/p>\n\n\n\n<p><strong>\u8bed\u6cd5\u683c\u5f0f:<\/strong>  disown [\u53c2\u6570] \u6807\u8bc6\u7b26\u6216\u8fdb\u7a0bPID<\/p>\n\n\n\n<p><strong>\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>-h<\/td><td>\u6807\u8bb0\u4f5c\u4e1a\u4f7f\u5176\u7ed3\u675fShell\u7ec8\u7aef\u7a97\u53e3\u65f6\u4e0d\u9000\u51fa<\/td><\/tr><tr><td>-a<\/td><td>\u79fb\u9664\u6240\u6709\u7684\u4f5c\u4e1a<\/td><\/tr><tr><td>-r<\/td><td>\u79fb\u9664\u8fd0\u884c\u7684\u4f5c\u4e1a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n<p>\u79fb\u9664\u5f53\u524d\u6240\u6709\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>disown -a<\/strong><\/pre>\n\n\n\n<p>\u79fb\u9664\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u72b6\u6001\u7684\u4f5c\u4e1a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>disown -r<\/strong><\/pre>\n\n\n\n<p>\u6807\u8bb0\u6307\u5b9a\u4f5c\u4e1a\u4f7f\u5176\u7ed3\u675fShell\u7ec8\u7aef\u7a97\u53e3\u65f6\u4e0d\u9000\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@linuxcool ~]# <strong>disown -h %2 <\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>disown\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u4eceShell\u7ec8\u7aef\u4e2d\u79fb\u9664\u4f5c\u4e1a\uff0c\u662f\u4e00\u4e2abash\u89e3\u91ca\u5668\u7684\u5185\u7f6e\u547d\u4ee4\u3002disown\u547d\u4ee4\u80fd\u591f\u4ece [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-6301","post","type-post","status-publish","format-standard","hentry","category-system"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6301","targetHints":{"allow":["GET"]}}],"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=6301"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6301\/revisions"}],"predecessor-version":[{"id":12656,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6301\/revisions\/12656"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}