{"id":1642,"date":"2019-05-16T23:21:41","date_gmt":"2019-05-16T15:21:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1642"},"modified":"2022-06-10T15:53:44","modified_gmt":"2022-06-10T07:53:44","slug":"nohup","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/nohup","title":{"rendered":"nohup\u547d\u4ee4 – \u540e\u7aef\u8fd0\u884c\u7a0b\u5e8f"},"content":{"rendered":"\n

nohup\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cno hang up\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u540e\u7aef\u8fd0\u884c\u7a0b\u5e8f\u3002nohup\u547d\u4ee4\u53ef\u4ee5\u5c06\u7a0b\u5e8f\u4ee5\u5ffd\u7565\u6302\u8d77\u4fe1\u53f7\u7684\u65b9\u5f0f\u8fd0\u884c\u8d77\u6765\uff0c\u800c\u88ab\u8fd0\u884c\u7a0b\u5e8f\u7684\u8f93\u51fa\u4fe1\u606f\u4e0d\u4f1a\u663e\u793a\u5230\u5c4f\u5e55\u4e0a\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570<\/strong>\uff1a<\/p>\n\n\n\n

--help<\/td>\u5728\u7ebf\u5e2e\u52a9<\/td><\/tr>
--version<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4ee5\u540e\u7aef\u6a21\u5f0f\u8fd0\u884c\u6307\u5b9a\u811a\u672c\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nohup linux.sh &<\/strong><\/pre>\n\n\n\n

\u4ee5\u540e\u7aef\u6a21\u5f0f\u6267\u884c\u6307\u5b9a\u547d\u4ee4\uff0c\u5e76\u5c06\u8f93\u51fa\u7ed3\u679c\u5199\u5165\u5230\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nohup uptime &> system.txt<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

nohup\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cno hang up\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u540e\u7aef\u8fd0\u884c\u7a0b\u5e8f\u3002nohup\u547d\u4ee4\u53ef\u4ee5\u5c06\u7a0b\u5e8f […]<\/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\/1642"}],"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=1642"}],"version-history":[{"count":16,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1642\/revisions"}],"predecessor-version":[{"id":10258,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1642\/revisions\/10258"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}