{"id":86700,"date":"2026-07-29T04:16:18","date_gmt":"2026-07-28T20:16:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86700.html"},"modified":"2026-07-29T04:16:18","modified_gmt":"2026-07-28T20:16:18","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%90%8e%e5%8f%b0%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f%e6%8c%87%e5%8d%97%ef%bc%88%e5%8c%85%e5%90%ab-python-%e4%b8%8e-sh-%e8%84%9a%e6%9c%ac%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86700.html","title":{"rendered":"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09"},"content":{"rendered":"<p>\u5728\u8fd0\u884c .sh \u811a\u672c\u4e4b\u524d\u7684\u91cd\u8981\u524d\u63d0&#xff1a;\u5982\u679c\u76f4\u63a5\u8fd0\u884c .sh \u811a\u672c\u65f6\u9047\u5230\u201c\u6743\u9650\u62d2\u7edd (Permission denied)\u201d\u7684\u62a5\u9519&#xff0c;\u9700\u8981\u5148\u7ed9\u811a\u672c\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650\u3002\u6307\u4ee4\u662f&#xff1a;chmod &#043;x \u4f60\u7684\u811a\u672c\u540d.sh<\/p>\n<h2>\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528 nohup&#xff08;\u9002\u5408\u8dd1\u8017\u65f6\u8f83\u957f\u7684\u5355\u6b21\u4efb\u52a1&#xff0c;\u4e00\u952e\u63d0\u4ea4\u4e0d\u9700\u8981\u770b\u5b9e\u65f6\u754c\u9762&#xff09;<\/h2>\n<p>\u6838\u5fc3\u903b\u8f91&#xff1a;\u5728\u8fd0\u884c\u547d\u4ee4\u524d\u52a0 nohup&#xff0c;\u5728\u672b\u5c3e\u52a0 &gt; \u65e5\u5fd7\u540d.log 2&gt;&amp;1 &amp;\u3002\u65e0\u8bba\u662f\u8dd1 Python \u8fd8\u662f Shell \u811a\u672c&#xff0c;\u8fd9\u5957\u6a21\u677f\u5b8c\u5168\u901a\u7528\u3002<\/p>\n<li>\u542f\u52a8\u540e\u53f0\u4efb\u52a1<\/li>\n<p>Python \u811a\u672c\u4f8b\u5b50&#xff1a;<\/p>\n<p>nohup python train_reamot<span class=\"token punctuation\">.<\/span>py <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&#8211;<\/span>model qwen2<span class=\"token punctuation\">.<\/span><span class=\"token number\">5<\/span><span class=\"token operator\">&#8211;<\/span>vl <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&#8211;<\/span>batch_size <span class=\"token number\">4<\/span> <span class=\"token operator\">&gt;<\/span> train_output<span class=\"token punctuation\">.<\/span>log <span class=\"token number\">2<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&amp;<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>.sh \u811a\u672c\u4f8b\u5b50&#xff08;\u4e24\u79cd\u5199\u6cd5\u7686\u53ef&#xff09;&#xff1a;<\/p>\n<p>\u5199\u6cd5 A&#xff08;\u63a8\u8350&#xff09;&#xff1a;nohup bash run_experiments<span class=\"token punctuation\">.<\/span>sh <span class=\"token operator\">&gt;<\/span> exp_output<span class=\"token punctuation\">.<\/span>log <span class=\"token number\">2<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&amp;<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>\u5199\u6cd5 B&#xff08;\u9700\u63d0\u524d\u8d4b\u4e88\u6743\u9650&#xff09;&#xff1a;nohup <span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>run_experiments<span class=\"token punctuation\">.<\/span>sh <span class=\"token operator\">&gt;<\/span> exp_output<span class=\"token punctuation\">.<\/span>log <span class=\"token number\">2<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&amp;<\/span><span class=\"token number\">1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<li>\u67e5\u770b\u8fd0\u884c\u8fdb\u5ea6<br \/>\n\u6307\u4ee4&#xff1a;tail -f [\u65e5\u5fd7\u6587\u4ef6\u540d].log<br \/>\n\u4f8b\u5b50&#xff1a;tail -f train_output.log<br \/>\n\u8bf4\u660e&#xff1a;\u8fd9\u4f1a\u5b9e\u65f6\u5237\u65b0\u5e76\u663e\u793a\u4ee3\u7801\u91cc\u7684\u8f93\u51fa\u3002\u60f3\u9000\u51fa\u67e5\u770b\u753b\u9762&#xff0c;\u6309 Ctrl &#043; C \u5373\u53ef&#xff08;\u8bf7\u653e\u5fc3&#xff0c;\u8fd9\u7edd\u5bf9\u4e0d\u4f1a\u505c\u6389\u540e\u53f0\u6b63\u5728\u8dd1\u7684\u7a0b\u5e8f&#xff09;\u3002<\/li>\n<li>\u7ec8\u6b62\u540e\u53f0\u7a0b\u5e8f<br \/>\n\u6307\u4ee4&#xff1a;\u5148\u67e5\u8fdb\u7a0b\u53f7 ps -ef | grep \u4f60\u7684\u811a\u672c\u540d&#xff0c;\u7136\u540e\u5f3a\u6740 kill -9 [\u8fdb\u7a0b\u53f7]\u3002<br \/>\n\u4f8b\u5b50&#xff1a;\u8f93\u5165 ps -ef | grep run_experiments \u67e5\u5230\u8fdb\u7a0b\u53f7\u662f 12345 \u540e&#xff0c;\u8f93\u5165 kill -9 12345 \u5373\u53ef\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\u3002<\/li>\n<hr \/>\n<h2>\u65b9\u6cd5\u4e8c&#xff1a;\u4f7f\u7528 tmux&#xff08;\u9002\u5408\u591a\u4efb\u52a1\u5e76\u884c\u3001\u9700\u8981\u65f6\u5e38\u5207\u56de\u6765\u770b\u8fdb\u5ea6\u6761\u6216\u4ea4\u4e92\u7684\u5f00\u53d1\u73af\u5883&#xff09;<\/h2>\n<p>\u6838\u5fc3\u903b\u8f91&#xff1a;\u5728\u670d\u52a1\u5668\u91cc\u5efa\u4e00\u4e2a\u201c\u865a\u62df\u623f\u95f4\u201d&#xff0c;\u5728\u623f\u95f4\u91cc\u5c31\u50cf\u5e73\u65f6\u4e00\u6837\u8dd1\u4ee3\u7801\u3002\u9000\u51fa\u623f\u95f4\u65f6\u4ee3\u7801\u4f9d\u7136\u5728\u8dd1&#xff0c;\u4e0b\u6b21\u8fdb\u623f\u95f4\u63a5\u7740\u770b\u3002<\/p>\n<li>\u521b\u5efa\u5e76\u8fdb\u5165\u4e00\u4e2a\u65b0\u73af\u5883<br \/>\n\u6307\u4ee4&#xff1a;tmux new -s [\u7ed9\u4efb\u52a1\u8d77\u4e2a\u540d\u5b57]<br \/>\n\u4f8b\u5b50&#xff1a;tmux new -s track_eval<br \/>\n\u8bf4\u660e&#xff1a;\u8f93\u5165\u540e&#xff0c;\u5c4f\u5e55\u5e95\u90e8\u4f1a\u51fa\u73b0\u4e00\u6761\u7eff\u8272\u72b6\u6001\u680f&#xff0c;\u8bf4\u660e\u4f60\u5df2\u7ecf\u8fdb\u5165\u4e86\u5b89\u5168\u73af\u5883\u3002<\/li>\n<li>\u5728\u91cc\u9762\u6b63\u5e38\u8dd1\u4ee3\u7801&#xff08;Python \u548c .sh \u5747\u53ef&#xff09;<br \/>\n\u5728\u8fd9\u4e2a\u73af\u5883\u91cc&#xff0c;\u4f60\u4e0d\u9700\u8981\u52a0 nohup&#xff0c;\u5e73\u5e38\u600e\u4e48\u8dd1\u4ee3\u7801\u73b0\u5728\u5c31\u600e\u4e48\u8dd1\u3002<\/li>\n<p>Python \u811a\u672c\u4f8b\u5b50&#xff1a;<\/p>\n<p>python evaluate<span class=\"token punctuation\">.<\/span>py <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&#8211;<\/span>dataset DRSet<\/p>\n<p>.sh \u811a\u672c\u4f8b\u5b50&#xff1a;<br \/>\nbash run_experiments.sh \u6216\u8005\u76f4\u63a5\u8f93\u5165 .\/run_experiments.sh<\/p>\n<li>\u628a\u7a0b\u5e8f\u6302\u5230\u540e\u53f0&#xff08;\u6700\u5173\u952e\u7684\u4e00\u6b65&#xff09;<br \/>\n\u6307\u4ee4&#xff1a;\u6309\u4f4f\u952e\u76d8\u4e0a\u7684 Ctrl \u548c b \u952e&#xff0c;\u677e\u5f00\u624b\u6307&#xff0c;\u7136\u540e\u518d\u5355\u72ec\u6309\u5b57\u6bcd d \u952e\u3002<br \/>\n\u8bf4\u660e&#xff1a;\u6b64\u65f6\u4f60\u4f1a\u9000\u56de\u5230\u6700\u521d\u7684\u666e\u901a\u7ec8\u7aef\u754c\u9762\u3002\u5373\u4f7f\u4f60\u73b0\u5728\u65ad\u5f00 SSH \u8fde\u63a5\u3001\u5173\u673a\u4e0b\u73ed&#xff0c;\u521a\u624d\u8fd0\u884c\u7684 .py \u6216 .sh \u811a\u672c\u4f9d\u7136\u5728\u670d\u52a1\u5668\u540e\u53f0\u7a33\u7a33\u6267\u884c\u3002<\/li>\n<li>\u6062\u590d\u4e4b\u524d\u7684\u754c\u9762<br \/>\n\u6307\u4ee4&#xff1a;tmux a -t [\u4efb\u52a1\u540d\u5b57]<br \/>\n\u4f8b\u5b50&#xff1a;tmux a -t track_eval<br \/>\n\u8bf4\u660e&#xff1a;\u7b2c\u4e8c\u5929\u91cd\u65b0\u8fde\u4e0a\u670d\u52a1\u5668\u540e\u8f93\u5165\u8be5\u6307\u4ee4&#xff0c;\u5c31\u80fd\u77ac\u95f4\u56de\u5230\u6628\u5929\u7684\u754c\u9762&#xff0c;\u8fdb\u5ea6\u6761\u548c\u6253\u5370\u51fa\u6765\u7684\u62a5\u9519\u4fe1\u606f\u90fd\u5728\u3002\u5f53\u8fd9\u4e2a\u4efb\u52a1\u5f7b\u5e95\u7ed3\u675f&#xff0c;\u4f60\u4e0d\u518d\u9700\u8981\u8fd9\u4e2a\u73af\u5883\u65f6&#xff0c;\u5728\u754c\u9762\u91cc\u8f93\u5165 exit \u5373\u53ef\u5f7b\u5e95\u9500\u6bc1\u5b83\u3002<\/li>\n<hr \/>\n<p>\u603b\u7ed3\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u4f60\u5df2\u7ecf\u5199\u597d\u4e86\u6700\u7ec8\u7684\u8bad\u7ec3\u811a\u672c&#xff0c;\u53ea\u9700\u8981\u5b83\u9ed8\u9ed8\u8dd1\u51fa\u7ed3\u679c&#xff0c;\u7528 nohup \u6700\u7b80\u5355\u6e05\u723d\u3002<\/li>\n<li>\u5982\u679c\u662f\u65e5\u5e38\u9700\u8981\u53cd\u590d\u8c03\u8bd5\u6846\u67b6\u3001\u540c\u65f6\u8dd1\u591a\u4e2a\u4e0d\u540c\u7684\u5b9e\u9a8c\u5bf9\u6bd4&#xff0c;\u7528 tmux \u5efa\u7acb\u51e0\u4e2a\u4e0d\u540c\u7684\u7a97\u53e3\u6765\u7ba1\u7406\u4f1a\u5927\u5e45\u63d0\u5347\u6548\u7387\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8fd0\u884c .sh \u811a\u672c\u4e4b\u524d\u7684\u91cd\u8981\u524d\u63d0&#xff1a;\u5982\u679c\u76f4\u63a5\u8fd0\u884c .sh \u811a\u672c\u65f6\u9047\u5230\u201c\u6743\u9650\u62d2\u7edd (Permission denied)\u201d\u7684\u62a5\u9519&#xff0c;\u9700\u8981\u5148\u7ed9\u811a\u672c\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650\u3002\u6307\u4ee4\u662f&#xff1a;chmod x \u4f60\u7684\u811a\u672c\u540d.sh\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528 nohup&#xff08;\u9002\u5408\u8dd1\u8017\u65f6\u8f83\u957f\u7684\u5355\u6b21\u4efb\u52a1&#xff0c;\u4e00\u952e\u63d0\u4ea4\u4e0d\u9700\u8981\u770b\u5b9e\u65f6\u754c\u9762&#xff09;<br \/>\n\u6838\u5fc3\u903b\u8f91&#xff1a;\u5728\u8fd0\u884c\u547d\u4ee4\u524d\u52a0 nohup&#xff0c;\u5728\u672b\u5c3e\u52a0 &gt; \u65e5\u5fd7\u540d.log 2&gt;&amp;1 <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,81,43],"topic":[],"class_list":["post-86700","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-python","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/86700.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u8fd0\u884c .sh \u811a\u672c\u4e4b\u524d\u7684\u91cd\u8981\u524d\u63d0&#xff1a;\u5982\u679c\u76f4\u63a5\u8fd0\u884c .sh \u811a\u672c\u65f6\u9047\u5230\u201c\u6743\u9650\u62d2\u7edd (Permission denied)\u201d\u7684\u62a5\u9519&#xff0c;\u9700\u8981\u5148\u7ed9\u811a\u672c\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650\u3002\u6307\u4ee4\u662f&#xff1a;chmod x \u4f60\u7684\u811a\u672c\u540d.sh\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528 nohup&#xff08;\u9002\u5408\u8dd1\u8017\u65f6\u8f83\u957f\u7684\u5355\u6b21\u4efb\u52a1&#xff0c;\u4e00\u952e\u63d0\u4ea4\u4e0d\u9700\u8981\u770b\u5b9e\u65f6\u754c\u9762&#xff09; \u6838\u5fc3\u903b\u8f91&#xff1a;\u5728\u8fd0\u884c\u547d\u4ee4\u524d\u52a0 nohup&#xff0c;\u5728\u672b\u5c3e\u52a0 &gt; \u65e5\u5fd7\u540d.log 2&gt;&amp;1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86700.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-28T20:16:18+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86700.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86700.html\",\"name\":\"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-28T20:16:18+00:00\",\"dateModified\":\"2026-07-28T20:16:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86700.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86700.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86700.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/86700.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u8fd0\u884c .sh \u811a\u672c\u4e4b\u524d\u7684\u91cd\u8981\u524d\u63d0&#xff1a;\u5982\u679c\u76f4\u63a5\u8fd0\u884c .sh \u811a\u672c\u65f6\u9047\u5230\u201c\u6743\u9650\u62d2\u7edd (Permission denied)\u201d\u7684\u62a5\u9519&#xff0c;\u9700\u8981\u5148\u7ed9\u811a\u672c\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650\u3002\u6307\u4ee4\u662f&#xff1a;chmod x \u4f60\u7684\u811a\u672c\u540d.sh\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528 nohup&#xff08;\u9002\u5408\u8dd1\u8017\u65f6\u8f83\u957f\u7684\u5355\u6b21\u4efb\u52a1&#xff0c;\u4e00\u952e\u63d0\u4ea4\u4e0d\u9700\u8981\u770b\u5b9e\u65f6\u754c\u9762&#xff09; \u6838\u5fc3\u903b\u8f91&#xff1a;\u5728\u8fd0\u884c\u547d\u4ee4\u524d\u52a0 nohup&#xff0c;\u5728\u672b\u5c3e\u52a0 &gt; \u65e5\u5fd7\u540d.log 2&gt;&amp;1","og_url":"https:\/\/www.wsisp.com\/helps\/86700.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-28T20:16:18+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86700.html","url":"https:\/\/www.wsisp.com\/helps\/86700.html","name":"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-28T20:16:18+00:00","dateModified":"2026-07-28T20:16:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86700.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86700.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86700.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u2014\u2014\u670d\u52a1\u5668\u540e\u53f0\u8fd0\u884c\u7a0b\u5e8f\u6307\u5357\uff08\u5305\u542b Python \u4e0e .sh \u811a\u672c\u5b9e\u6218\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=86700"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86700\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86700"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}