{"id":39085,"date":"2023-02-08T10:08:48","date_gmt":"2023-02-08T02:08:48","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=39085"},"modified":"2023-02-08T10:08:48","modified_gmt":"2023-02-08T02:08:48","slug":"run-linuxcommand-backend","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/run-linuxcommand-backend.html","title":{"rendered":"\u5982\u4f55\u5728\u540e\u53f0\u8fd0\u884c Linux \u547d\u4ee4\u5e76\u4e14\u5c06\u8fdb\u7a0b\u8131\u79bb\u7ec8\u7aef"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5f53\u4e00\u4e2a\u8fdb\u7a0b\u4e0e\u7ec8\u7aef\u5173\u8054\u5728\u4e00\u8d77\u65f6\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e24\u79cd\u95ee\u9898\uff1a1. \u4f60\u7684\u63a7\u5236\u7ec8\u7aef\u5145\u6ee1\u4e86\u5f88\u591a\u8f93\u51fa\u6570\u636e\u6216\u8005\u9519\u8bef\u53ca\u8bca\u65ad\u4fe1\u606f 2. \u5982\u679c\u53d1\u751f\u7ec8\u7aef\u5173\u95ed\u7684\u60c5\u51b5\uff0c\u8fdb\u7a0b\u8fde\u540c\u5b83\u7684\u5b50\u8fdb\u7a0b\u90fd\u5c06\u4f1a\u7ec8\u6b62\u3002\u4e3a\u4e86\u89e3\u51b3\u4e0a\u9762\u4e24\u4e2a\u95ee\u9898\uff0c\u4f60\u9700\u8981\u4ece\u4e00\u4e2a\u63a7\u5236\u7ec8\u7aef\u5b8c\u5168\u8131\u79bb\u4e00\u4e2a\u8fdb\u7a0b\u3002\u5728\u6211\u4eec\u5b9e\u9645\u4e0a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u4e4b\u524d\uff0c\u8ba9\u6211\u4eec\u5148\u7b80\u8981\u7684\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u5982\u4f55\u5728\u540e\u53f0\u8fd0\u884c\u4e00\u4e2a\u8fdb\u7a0b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5982\u4f55\u5728\u540e\u53f0\u5f00\u59cb\u4e00\u4e2a Linux \u8fdb\u7a0b\u6216\u8005\u547d\u4ee4\u884c<\/strong><\/div>\n \u5982\u679c\u4e00\u4e2a\u8fdb\u7a0b\u5df2\u7ecf\u8fd0\u884c\uff0c\u4f8b\u5982tar \u547d\u4ee4\u884c\u7684\u4f8b\u5b50\uff0c\u7b80\u5355\u7684\u6309\u4e0b Ctrl+Z \u5c31\u53ef\u4ee5\u505c\u6b62\u5b83\uff08\u8fd9\u91cc\u8bf4\u7684“\u505c\u6b62”\uff0c\u4e0d\u662f\u7ec8\u6b62\uff0c\u800c\u662f“\u6682\u505c”\u7684\u610f\u601d\uff09\uff0c\u7136\u540e\u8f93\u5165\u547d\u4ee4 bg \u5c31\u53ef\u4ee5\u7ee7\u7eed\u4ee5\u4e00\u4e2a\u4efb\u52a1\u5728\u540e\u53f0\u8fd0\u884c\u4e86\u3002<\/p>\n \u5728\u540e\u53f0\u8fd0\u884c Linux \u547d\u4ee4<\/strong><\/span><\/div>\n \u4f60\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165 jobs \u67e5\u770b\u6240\u6709\u7684\u540e\u53f0\u4efb\u52a1\u3002\u4f46\u662f\uff0c\u6807\u51c6\u8f93\u5165\uff08STDIN\uff09\u3001\u6807\u51c6\u8f93\u51fa\uff08STDOUT\uff09\u548c\u6807\u51c6\u9519\u8bef\uff08STDERR\uff09\u4f9d\u65e7\u63ba\u6742\u5230\u63a7\u5236\u53f0\u4e2d\u3002<\/p>\n $ tar -czf home.tar.gz .\r\n$ bg\r\n$ jobs<\/pre>\n |