{"id":1026,"date":"2021-03-17T03:34:24","date_gmt":"2021-03-16T19:34:24","guid":{"rendered":"https:\/\/byy3.com\/?p=1026"},"modified":"2021-03-17T18:40:52","modified_gmt":"2021-03-17T10:40:52","slug":"linux%e8%bf%90%e8%a1%8c%e5%9c%a8android%e6%89%8b%e6%9c%ba%e6%88%96android%e7%94%b5%e8%a7%86%e6%a3%92%e4%b8%8b","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=1026","title":{"rendered":"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b"},"content":{"rendered":"<p>\u6700\u8fd1\u5bfb\u601d\u7740\u5f04\u4e00\u53f0\u4f4e\u529f\u8017\u00a0<code>linux<\/code>\u00a0\u670d\u52a1\u5668\u7528\uff0c\u53ea\u8fd0\u884c\u4e00\u4e9b\u5c0f\u7a0b\u5e8f\uff0c\u4f8b\u5982\u00a0<code>Python<\/code> \u5199\u7684\u722c\u866b\u6216\u8005\u5b9a\u65f6\u4efb\u52a1\u3002\u7f51\u4e0a\u770b\u4e86\u4e00\u5708\uff0c\u4ec0\u4e48\u6811\u8393\u6d3e\u5440\u5565\u7684\uff0c\u4e00\u5957\u4e0b\u6765\u8981\u4e24\u4e09\u767e\u4e86\uff0c\u6709\u70b9\u4e0d\u5212\u7b97\u3002\u7a81\u7136\u60f3\u5230\u6211\u8fd8\u6709\u4e00android\u7535\u89c6\uff0c\u95f2\u7f6e\u7740\u3002\u770b\u4e86\u4e00\u4e0b\u5b83\u7684\u914d\u7f6e\uff0cac \u7684 wifi + 1.6GHz 4\u6838\u7684A9 cpu\uff0c\u5f88\u5f3a\u5566\uff01\uff08\u6bd4\u6811\u8393\u6d3e\u5f3a\uff09<\/p>\n<p>\u88c5\u4e2a\u00a0<code>Ubuntu core<\/code>\uff01<\/p>\n<p>\u672c\u5b89\u88c5\u65b9\u6cd5\u57fa\u4e8e\u5f00\u6e90\u9879\u76ee\u00a0<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/sourceforge.net\/projects\/linuxonandroid\/files\/?source=navbar\" rel=\"nofollow\">Linux on Android<\/a>\uff0c\u8be5\u9879\u76ee\u8ba9\u4f60\u80fd\u591f\u5728\u5b89\u5353\u624b\u673a\u4e0a\u8fd0\u884c\u5f88\u591a Linux \u53d1\u884c\u7248\u3002<\/p>\n<p>\u5f53\u7136\u4e86\u672c\u7bc7\u6587\u7ae0\u53ea\u8bb2\u89e3\u5982\u4f55\u5b89\u88c5\u00a0<code>Ubuntu 13.10 core<\/code>\uff0c\u4e5f\u5c31\u662f\u53ea\u6709\u547d\u4ee4\u884c\u7684\u7248\u672c\uff08\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u4e0d\u9700\u8981\u56fe\u5f62\u754c\u9762\uff0c\u6700\u5927\u5316\u6027\u80fd\uff09<\/p>\n<p><strong>\u6ce8\uff1a\u6b64\u65b9\u6cd5\u7406\u5e94\u9002\u7528\u4e8e android \u7248\u672c\u5927\u4e8e4.2.2\u7684\u624b\u673a\uff0c\u5e76\u4e14\u5fc5\u987b\u8981 <code>ROOT<\/code>\u00a0\uff01<\/strong><\/p>\n<p><strong>\u6ce82: \u5982\u679c\u4f60\u8fd9\u624b\u673a\u53ea\u7528\u4f5c\u670d\u52a1\u5668\u7684\u8bdd\uff0c\u5728\u6761\u4ef6\u5141\u8bb8\u7684\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f60\u518d\u628a\u624b\u673a\u7cfb\u7edf\u5237\u6210AOSP\uff08\u5b89\u5353\u5b98\u65b9\u5f00\u6e90\u9879\u76ee\uff0c\u65e0\u4efb\u4f55\u6346\u7ed1\u3001\u540e\u53f0\u8f6f\u4ef6\uff0c\u6700\u5927\u9650\u5ea6\u91ca\u653e\u4f60\u8001\u624b\u673a\u7684\u6027\u80fd\uff09\uff0c<\/strong><\/p>\n<p><strong>\u6ce83?: \uff08\u6ca1\u60f3\u5230\u5427\uff0c\u8fd8\u7279\u4e48\u6709\u6ce83\u3002\u3002\uff09\u5982\u679c\u4f60\u53ea\u662f\u8f7b\u5ea6\u6298\u817e\u4e00\u65cf\uff0c\u5f3a\u70c8\u5efa\u8bae\u4e0d\u8981\u5237AOSP\uff0c\u4e0d\u7136\u4e2d\u9014\u653e\u5f03\u4e86\uff0c\u5c31\u4e0d\u80fd\u770b\u4e0b\u9762\u7684\u6559\u7a0b\u4e86<\/strong><\/p>\n<h2 id=\"item-1-2\">\u51c6\u5907<\/h2>\n<p>\u6211\u4eec\u9700\u8981\u4e0b\u8f7d\u7684\u6587\u4ef6\u6709\u8fd9\u4e48\u51e0\u4e2a\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6587\u4ef6\u540d<\/th>\n<th>\u4f5c\u7528<\/th>\n<th>\u4e0b\u8f7d\u5730\u5740<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ubuntu.img<\/td>\n<td>Ubuntu \u955c\u50cf<\/td>\n<td><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/sourceforge.net\/projects\/linuxonandroid\/files\/Ubuntu\/13.10\/Core\/ubuntu-13.10.CORE.ext4.v1.zip.torrent\/download\" rel=\"nofollow\">core \u79cd\u5b50\u6587\u4ef6<\/a><\/td>\n<\/tr>\n<tr>\n<td>ubuntu.sh<\/td>\n<td>\u5b89\u88c5 Ubuntu \u7684\u811a\u672c\u6587\u4ef6<\/td>\n<td><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pan.baidu.com\/s\/1i60YqlZ\" rel=\"nofollow\"><span class=\"one-pan-tip one-pan-tip-error\">\u767e\u5ea6\u4e91<\/span><\/a>\u00a0\u5bc6\u7801:\u00a0<code>td75<\/code><\/td>\n<\/tr>\n<tr>\n<td>androidterm.apk<\/td>\n<td>\u80fd\u5728\u5b89\u5353\u4e0a\u6572\u547d\u4ee4\u884c\u7684\u5e94\u7528<\/td>\n<td><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pan.baidu.com\/s\/1d282ce\" rel=\"nofollow\"><span class=\"one-pan-tip one-pan-tip-error\">\u767e\u5ea6\u4e91<\/span><\/a>\u00a0\u5bc6\u7801:\u00a0<code>crzy<\/code><\/td>\n<\/tr>\n<tr>\n<td>busybox.apk<\/td>\n<td>\u589e\u52a0\u66f4\u591a\u547d\u4ee4\u884c\u547d\u4ee4<\/td>\n<td><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pan.baidu.com\/s\/1dgnOfk\" rel=\"nofollow\"><span class=\"one-pan-tip one-pan-tip-error\">\u767e\u5ea6\u4e91<\/span><\/a>\u00a0\u5bc6\u7801\uff1a<code>tizn<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f53\u7136\u8fd9\u4e9b\u6211\u4e5f\u90fd\u653e\u5728\u4e86\u767e\u5ea6\u76d8\u91cc\u9762\uff0c\u4f60\u53ef\u4ee5<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pan.baidu.com\/s\/1huozt1E\" rel=\"nofollow\"><span class=\"one-pan-tip one-pan-tip-error\">\u6253\u5305\u4e0b\u8f7d<\/span><\/a>\u00a0\u5bc6\u7801\uff1a<code>tiut<\/code>\u3002<\/p>\n<p>\u4e0b\u8f7d\u597d\u540e\uff0c\u628a\u00a0<code>androidterm.apk<\/code>\u00a0\u548c\u00a0<code>busybox.apk<\/code>\u00a0\u5b89\u88c5\u5230\u624b\u673a\u4e0a\uff0c\u7136\u540e\u5728\u624b\u673a\u5b58\u50a8(\u975e\u5916\u7f6e\u5185\u5b58\u5361)\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u00a0<code>ubuntu<\/code>\u00a0\uff0c\u628a\u00a0<code>ubuntu.img<\/code>\u00a0\u548c\u00a0<code>ubuntu.sh<\/code>\u00a0\u90fd\u590d\u5236\u8fdb\u53bb\u3002<\/p>\n<h2 id=\"item-1-3\">\u5b89\u88c5<\/h2>\n<p>\u51c6\u5907\u5de5\u4f5c\u90fd\u5df2\u7ecf\u5b8c\u6210\uff0c\u5f00\u59cb\u5b89\u88c5\u5427\uff01<\/p>\n<ol>\n<li>Busybox<br \/>\n\u5148\u6253\u5f00\u00a0<code>busybox<\/code>\u00a0\u5f39\u51fa\u7684\u7b2c\u4e00\u4e2a\u7a97\u53e3\u70b9\u53c9\u5173\u6389\uff0c\u7136\u540e\u5728\u4e3b\u754c\u9762\u4e2d\u9009\u62e9\u5b89\u88c5\u7248\u672c\uff1a<code>1.26.2<\/code>\u00a0\u6216\u66f4\u9ad8\uff0c\u5b89\u88c5\u4f4d\u7f6e\u9009\u62e9\u4e3a\uff1a<code>\/system\/bin<\/code>\u00a0\uff0c\u6700\u540e\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u00a0<code>Install<\/code>\u00a0\uff08\u671f\u95f4\u4f1a\u5f39\u51fa\u8bf7\u6c42 ROOT \u6388\u6743\uff0c\u8bf7\u9009\u62e9\u5141\u8bb8\uff09\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u5373\u53ef\uff1b<\/li>\n<li>Androidterm<br \/>\n\u7b49 Busybox \u5b89\u88c5\u597d\u540e\uff0c\u6211\u4eec\u5c31\u6253\u5f00\u00a0<code>Terminal<\/code>(\u4e5f\u53eb \u7ec8\u7aef) \u8fd9\u4e2a App\uff0c\u51fa\u73b0\u5728\u6211\u4eec\u773c\u524d\u7684\u662f\u547d\u4ee4\u884c\u754c\u9762\uff0c\u6211\u4eec\u952e\u5165\u00a0<code>cd \/sdcard\/ubuntu<\/code>\u00a0\u70b9\u51fb\u952e\u76d8\u4e0a\u7684\u56de\u8f66\u6309\u94ae\uff08\u6216\u8005\u662f \u786e\u8ba4\uff09\uff0c\u4ed6\u5c06\u4f1a\u5207\u6362\u76ee\u5f55\u5230\u6211\u4eec\u4e4b\u524d\u5b58\u653e\u00a0<code>ubuntu.img<\/code>\u00a0\u548c\u00a0<code>ubuntu.sh<\/code>\u00a0\u7684\u6587\u4ef6\u76ee\u5f55\u4e0b\u3002\u7136\u540e\u8f93\u5165\u00a0<code>su<\/code>\u00a0\u5e76\u786e\u5b9a\uff0c\u5c06\u4f1a\u5207\u6362\u4e3a ROOT \u7528\u6237\uff0c\u63a5\u7740\u952e\u5165\u00a0<code>sh .\/ubuntu.sh<\/code>\u00a0\u5373\u53ef\u5f00\u59cb\u5b89\u88c5 Ubuntu \u4e86\u3002<\/li>\n<\/ol>\n<p>\u5b89\u88c5\u7684\u65f6\u5019\u4f1a\u8ba9\u4f60\u8f93\u5165\u65b0\u5efa\u7684 ubuntu root \u7528\u6237\u5bc6\u7801\uff0c\u5e76\u518d\u6b21\u8f93\u5165\u4ee5\u786e\u8ba4\uff0c\u7136\u540e\u4f1a\u95ee\u4f60\u662f\u5426\u5f00\u542f VNC \u670d\u52a1\uff0c\u6211\u6ca1\u6709\u56fe\u5f62\u754c\u9762\uff0c\u5219\u8f93\u5165 n \u5e76\u786e\u5b9a\uff0c\u63a5\u7740\u4ed6\u53c8\u4f1a\u95ee\u4f60\uff0c\u662f\u5426\u5f00\u542f ssh \u670d\u52a1\uff0c\u8fd9\u4e2a\u5fc5\u987b\u8981\u554a\uff01\uff01 \u8f93\u5165 y \u5e76\u786e\u5b9a\uff0c\u6700\u540e\u4f1a\u95ee\u4f60\u662f\u5426\u5c06\u521a\u624d\u7684\u8f93\u5165\u4fdd\u5b58\u4e3a\u9ed8\u8ba4\uff0c\u8f93\u5165 y \u70b9\u786e\u5b9a\u5373\u53ef\u3002<\/p>\n<p>\u7b49\u547d\u4ee4\u884c\u5f00\u5934\u7684\u90e8\u5206\u53d8\u6210\uff1aroot@localhost \u65f6\uff0c\u5c31\u8bf4\u660e\u5b89\u88c5\u5e76\u542f\u52a8\u5b8c\u6210\u5566\uff01<\/p>\n<h2 id=\"item-1-4\">\u4f7f\u7528<\/h2>\n<p>\u5728\u4f7f\u7528\u524d\uff0c\u8981\u786e\u4fdd\u4f60\u7684\u624b\u673a\u662f\u8fde\u63a5\u4e86 WiFi \u7f51\u7edc\u7684\uff08\u4e0d\u7136\u6709\u5565\u7528\u5462\uff09\uff0c\u7136\u540e\u5728\u624b\u673a\u7684\u547d\u4ee4\u884c\u4e2d\uff0c\u8f93\u5165\u00a0<code>ifconfig<\/code>\u00a0\uff0c\u770b\u91cc\u9762\u80fd\u770b\u5230\u4f60\u624b\u673a\u7684 IP \u5730\u5740\uff0c\u4f60\u5728\u5176\u4ed6\u8bbe\u5907\u4e0a\uff0c\u7528 root \u7528\u6237 ssh \u8fde\u63a5\u8fd9\u4e2a IP \u5c31\u884c\u4e86\uff01<\/p>\n<h2 id=\"item-1-5\">\u6ce8\u610f<\/h2>\n<p>\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u662f\u4e0d\u5141\u8bb8\u673a\u5668\u81ea\u52a8\u6302\u6389\u7684\uff0c\u6240\u4ee5\uff0c\u4f60\u9700\u8981\u5c06\u00a0<code>terminal<\/code>\u00a0\u8fd9\u4e2a\u7a0b\u5e8f\u9501\u4f4f\uff0c\u4e0d\u8ba9\u7cfb\u7edf\u81ea\u52a8\u5173\u95ed\u5b83\uff0c\u5e76\u4fdd\u6301\u7740\u4e3a\u624b\u673a\u5145\u7535\u7684\u72b6\u6001\uff0c\u8fd9\u6837\uff0c\u4e00\u4e2a\u81ea\u5e26 ups \u7684\u4f4e\u529f\u8017\u670d\u52a1\u5668\u5c31\u642d\u5efa\u6210\u529f\u4e86\u3002<\/p>\n<h2 id=\"item-1-6\">\u540e\u8bb0<\/h2>\n<p>\u53ef\u53c2\u8003\u811a\u672chttps:\/\/github.com\/szTed\/android-linux-deploy<\/p>\n<p><code>\u957f\u671f\u66f4\u65b0<\/code>\uff0c\u540e\u8bb0\u5219\u662f\u7528\u4f5c\u540e\u671f\u4f18\u5316\u4ee5\u53ca\u95ee\u9898\u89e3\u51b3\u65b9\u6848\u63d0\u4f9b\u7684\u4e00\u4e2a\u677f\u5757<\/p>\n<h3>- \u6539 ARM \u4e13\u7528\u6e90<\/h3>\n<p><strong>Ubuntu\u6539\u6e90<\/strong>\u600e\u4e48\u64cd\u4f5c\u4e0d\u7528\u8fd9\u91cc\u8bf4\u660e\u4e86\u5427\uff0c\u4e0b\u9762\u5217\u51fa\u4e24\u4e2a\u6bd4\u8f83\u5feb\u7684\u6e90\uff1a<\/p>\n<p>\u4e2d\u79d1\u5927\u6e90<\/p>\n<pre class=\"hljs awk\"><code>deb http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty main universe restricted multiverse \r\ndeb http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty-security main universe restricted multiverse \r\ndeb http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty-updates main universe restricted multiverse \r\ndeb-src http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty main universe restricted multiverse \r\ndeb-src http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty-security main universe restricted multiverse \r\ndeb-src http:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.ustc.edu.cn\/ubuntu-ports trusty-updates main universe restricted multiverse<\/code><\/pre>\n<p>\u6e05\u534e\u6e90<\/p>\n<pre class=\"hljs awk\"><code>deb https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty main universe restricted multiverse \r\ndeb https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty-security main universe restricted multiverse \r\ndeb https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty-updates main universe restricted multiverse \r\ndeb-src https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty main universe restricted multiverse \r\ndeb-src https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty-security main universe restricted multiverse \r\ndeb-src https:<span class=\"hljs-regexp\">\/\/mi<\/span>rrors.tuna.tsinghua.edu.cn<span class=\"hljs-regexp\">\/ubuntu-ports\/<\/span> trusty-updates main universe restricted multiverse<\/code><\/pre>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1027\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2021\/03\/2021031710344176.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"1176\" height=\"2400\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe\" \/><\/h3>\n<p>\u56e0\u4e3a\u624b\u673aandorid4.2.2\u6bd4\u8f83\u8001\u6240\u4ee5\u4f7f\u7528\u8001\u7248\u672clinuxdeploy-2.2.1-243\u5404\u4e2a\u7248\u672c\u5982https:\/\/github.com\/meefik\/linuxdeploy\/tags<\/p>\n<h3>\u5230\u8fd9\u91cc\u6298\u817e\u4e861\u4e2a\u665a\u4e0a\u7ec8\u4e8e\u641e\u5b9a\u4e86\uff01\u6700\u540e\u89e3\u51b3\u65b9\u6848\uff0c\u56e0\u4e3a\u5916\u7f6esdcard\u4e0d\u80fd\u76f4\u63a5\u8bfb\u53d6\uff0c\u6240\u4ee5\u9700\u8981\u628a\u4e0b\u8f7d\u7684ubuntu.img\u955c\u50cf\u653e\u5728\u624b\u673a\u81ea\u5e26\u7684scard\/ubuntu\/ubuntu.img\u4e0b\uff0c\u5728\u5185\u5b58\u5361\u4e0b\u76f4\u63a5\u65b0\u5efa\u4e00\u4e2aubuntu\u6587\u4ef6\u5939\uff0c\u7136\u540e\u518d\u4f7f\u7528\u5de5\u5177linux deploy\u624b\u673a\u5e94\u7528<\/h3>\n<p>1\uff0candroid\u624b\u673a\u83b7\u5f97root\u6743\u9650\uff0c\u65b9\u6cd5\u7f51\u4e0a\u5343\u767e\u79cd\uff0c\u6211\u91c7\u7528\u4e0b\u8f7d360\u8d85\u7ea7root\uff08\u5f53\u8d1d\u5e94\u7528\u5e02\u573a\u4e0b\u8f7d\uff09<\/p>\n<p>2\uff0candroid\u624b\u673a\u5b89\u88c5linux deploy\u00a0 \/Terminal Emulator(google\u5e94\u7528\u5546\u5e97)\/filemager+\u628a\u4e0b\u8f7d\u7684\u955c\u50cfcopy\u5230sdcard\/ubuntu\/ubuntu.img \/\u5b89\u88c5busybox(goole\u5e94\u7528\u5546\u5e97)<\/p>\n<p>3,\u4e0b\u8f7dubuntu\u7684\u955c\u50cf\u6587\u4ef6ubuntu.img<\/p>\n<p>https:\/\/sourceforge.net\/projects\/linuxonandroid\/files\/Ubuntu\/13.10\/<\/p>\n<p>\u4e0b\u8f7dsmall\u7248\u672c2G\u7684lxde\u684c\u9762\u7528\u6237\u540dubuntu\u5bc6\u7801ubuntu<\/p>\n<p>4\uff0candroid\u624b\u673a\u6253\u5f00usb\u8c03\u8bd5\u6a21\u5f0f\uff08\u5728\u624b\u673a\u8bbe\u7f6e\u5173\u4e8eAboutDevice\u91cc\u9762\u7684\u7248\u672c\u4e0a\u70b9\u51fb5\u4e0b\uff0c\u4f1a\u6253\u5f00\u5f00\u53d1\u8005\u6a21\u5f0f\uff09<\/p>\n<p>5\uff0c\u6253\u5f00\u624b\u673alinux deploy\u70b9\u51fb\u53f3\u4e0a\u89d2\u914d\u7f6e<\/p>\n<p>chroot\/Ubuntu\/Architecture\u9009armhf\/xenial\/source path(\u627e\u4e00\u4e2a\u4e2d\u79d1\u9662android\u7248\u7684\u6e90)\/file\/${EXTERNAL_STORAGE}\/ubuntu\/ubuntu.img\u00a0 \/3500mb\/ext4\/username<\/p>\n<p>\u5176\u4ed6\u90fd\u70b9\u52fe\u7136\u540e\u9ed8\u8ba4<\/p>\n<p>\u542f\u52a8\u6a21\u5f0f\uff1a1\uff0c\u5728terminal\u4e2d\u8f93\u5165su\u00a0 \u7136\u540e\u518d\u6253\u5f00linuxdeploy\u70b9\u51fb\u5f00\u59cb done\u597d\u4e86\uff01<\/p>\n<p>\u63a5\u4e0b\u6765\u518d\u7535\u8111\u4e0b\u8fde\u63a5win+r\u8f93\u5165cmd\u6253\u5f00\u547d\u4ee4\u7a0b\u5e8f\u8f93\u5165ssh root@192.168.1.2\u8f93\u5165\u5bc6\u7801\u8fde\u63a5<\/p>\n<p>\u4fee\u653922\u7aef\u53e3\u901a\u8fc7\u5916\u7f51\u7aef\u53e3\u8f6c\u53d1\u8fde\u63a5\uff0c\u4f7f\u7528top\u67e5\u770b\u72b6\u6001\u3002<\/p>\n<p><b>\u7b2c\u4e8c\u6b65 \u4f7f\u7528BusyBox\u6765\u6269\u5c55\u5b89\u5353\u547d\u4ee4\u548c\u5e94\u7528<\/b><\/p>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5b89\u88c5\u597d\u4e86BusyBox\uff0c\u53ef\u4ee5\u8df3\u8fc7\u8fd9\u6b65<\/p>\n<p>\u6253\u5f00\u5df2\u5b89\u88c5\u7684BusyBox\u5e94\u7528\uff0cSU\u4f1a\u63d0\u793a\u4f60BusyBox\u8bf7\u6c42Root\u6743\u9650\uff0c\u9009\u62e9GRANT\u5141\u8bb8<\/p>\n<p>\u8fdb\u5165\u9875\u9762\uff0c\u9009\u62e9\u53f3\u4e0b\u89d2\u7684INSATALL\u5b89\u88c5\uff0cYES\u786e\u8ba4\u5b89\u88c5<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-38be714e1a1fca502e011bd04dd05840_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic2.zhimg.com\/v2-7700dca39d8233c3a1b3450caf3cad31_b.jpg\" data-original=\"https:\/\/pic1.zhimg.com\/v2-38be714e1a1fca502e011bd04dd05840_r.jpg\" data-actualdata-original=\"https:\/\/pic1.zhimg.com\/v2-38be714e1a1fca502e011bd04dd05840_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe1\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe1\" \/><\/figure>\n<p><b>\u7b2c\u4e09\u6b65 \u4f7f\u7528LinuxDeploy\u8fd0\u884cLinux<\/b><\/p>\n<p>\u5982\u679c\u4f60\u5df2\u7ecf\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5b89\u88c5\u597d\u4e86Linux\uff0c\u53ef\u4ee5\u2026\u2026\u90a3\u4f60\u8fd8\u770b\u8fd9\u7bc7\u6559\u7a0b\u5e72\u561b<\/p>\n<p>\u6253\u5f00LinuxDeploy\uff0c\u754c\u9762\u662f\u4ecb\u6837\u7684<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-5d376899806785b9c0e36f5126032f34_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic2.zhimg.com\/v2-15b6e496ac4cce10b77e9f0a7214b949_b.jpg\" data-original=\"https:\/\/pic1.zhimg.com\/v2-5d376899806785b9c0e36f5126032f34_r.jpg\" data-actualdata-original=\"https:\/\/pic1.zhimg.com\/v2-5d376899806785b9c0e36f5126032f34_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe2\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe2\" \/><\/figure>\n<p>\u5de6\u4e0a\u89d2\u4e09\u6a2a\u662f\u5bf9LinuxDeploy\u7a0b\u5e8f\u7684\u4e00\u4e9b\u914d\u7f6e\uff0c\u53f3\u4e0a\u89d2\u4e09\u70b9\u662f\u5bf9Linux\u8fd0\u884c\u7684\u4e00\u4e9b\u64cd\u4f5c\uff0c\u53f3\u4e0b\u89d2\u4e0b\u8f7d\u56fe\u6807\u662f\u5bf9Linux\u7684\u914d\u7f6e<\/p>\n<p>\u7531\u4e8e\u6211\u4eec\u662f\u9996\u6b21\u5b89\u88c5\uff0c\u9700\u8981\u5148\u914d\u7f6eLinux\uff0c\u70b9\u51fb\u53f3\u4e0b\u89d2 \u9009armf<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic4.zhimg.com\/80\/v2-6504446646884fd9e8fbc9b00ea7b4d3_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic3.zhimg.com\/v2-1a01574775baa1ad8fd37f39987e9c0a_b.jpg\" data-original=\"https:\/\/pic4.zhimg.com\/v2-6504446646884fd9e8fbc9b00ea7b4d3_r.jpg\" data-actualdata-original=\"https:\/\/pic4.zhimg.com\/v2-6504446646884fd9e8fbc9b00ea7b4d3_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe3\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe3\" \/><\/figure>\n<p>\u9009\u62e9\u4f60\u60f3\u4f7f\u7528\u7684\u5bb9\u5668 \u53d1\u884c\u7248\u672c \u67b6\u6784 \u5b89\u88c5\u7c7b\u578b\uff0c\u6700\u65b0\u7684CentOS\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u6253\u4e0d\u5f00SSH\u548cVNC \u614e\u7528<\/p>\n<p>\u4e0d\u77e5\u9053\u8be5\u600e\u4e48\u9009\u7684\u5c31\u50cf\u56fe\u91cc\u4e00\u6837\u8bbe\u7f6e\u5c31\u884c\u4e86<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-2c71b5daf3a7b9647e673b45e57f5c84_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic4.zhimg.com\/v2-7f458ae6a25a7cd2a77134b07176121b_b.jpg\" data-original=\"https:\/\/pic1.zhimg.com\/v2-2c71b5daf3a7b9647e673b45e57f5c84_r.jpg\" data-actualdata-original=\"https:\/\/pic1.zhimg.com\/v2-2c71b5daf3a7b9647e673b45e57f5c84_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe4\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe4\" \/><\/figure>\n<p>\u9009\u62e9\u4f60\u7684\u7528\u6237\u540d \u767b\u9646\u5bc6\u7801 \u533a\u57df\u5efa\u8bae\u5982\u56fe\u9009\u62e9\uff0c\u5426\u5219\u53ef\u80fd\u4e0d\u80fd\u6b63\u786e\u663e\u793a\u6c49\u5b57<\/p>\n<p>\u540c\u6837\u7684\uff0c\u4e0d\u77e5\u9053\u8be5\u600e\u4e48\u9009\u7684\u5c31\u50cf\u56fe\u91cc\u4e00\u6837\u8bbe\u7f6e\u5c31\u884c\u4e86<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-605d7077cc7c6f2c4f5bfb14e1d3083a_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic3.zhimg.com\/v2-3256255750dda51a14b7c5053edc998e_b.jpg\" data-original=\"https:\/\/pic3.zhimg.com\/v2-605d7077cc7c6f2c4f5bfb14e1d3083a_r.jpg\" data-actualdata-original=\"https:\/\/pic3.zhimg.com\/v2-605d7077cc7c6f2c4f5bfb14e1d3083a_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe5\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe5\" \/><\/figure>\n<p>\u4e00\u4e9b\u5176\u4ed6\u9009\u9879<\/p>\n<p>\u8bbe\u7f6e\u5b8c\u6210\u540e\u8fd4\u56de\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u9009\u62e9Install \u5b89\u88c5<\/p>\n<p>\u5982\u679c\u4e4b\u540e\u4f60\u66f4\u6539\u4e86\u4efb\u4f55Linux\u7684\u914d\u7f6e\uff0c\u9700\u8981\u70b9\u51fbConfigure \u914d\u7f6e\u800c\u4e0d\u662f\u5b89\u88c5<\/p>\n<p>SU\u53c8\u63d0\u793a\u9700\u8981Root\u6743\u9650 \u5141\u8bb8<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic2.zhimg.com\/80\/v2-f088001b84b07d5ddc8b7f6f97631d61_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic3.zhimg.com\/v2-d86612a18fc5924447472e416cd04fd6_b.jpg\" data-original=\"https:\/\/pic2.zhimg.com\/v2-f088001b84b07d5ddc8b7f6f97631d61_r.jpg\" data-actualdata-original=\"https:\/\/pic2.zhimg.com\/v2-f088001b84b07d5ddc8b7f6f97631d61_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe6\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe6\" \/><\/figure>\n<p>\u5f00\u59cb\u5b89\u88c5\u4e86\uff0c\u8010\u5fc3\u7b49\u5f85<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic3.zhimg.com\/80\/v2-ec058d0174790eb3c2ac5bff7c7d196e_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic1.zhimg.com\/v2-668ac8a4fd2f145ee0af7e63717cb688_b.jpg\" data-original=\"https:\/\/pic3.zhimg.com\/v2-ec058d0174790eb3c2ac5bff7c7d196e_r.jpg\" data-actualdata-original=\"https:\/\/pic3.zhimg.com\/v2-ec058d0174790eb3c2ac5bff7c7d196e_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe7\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe7\" \/><\/figure>\n<p>\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>\u70b9\u51fbSTART\u542f\u52a8<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic1.zhimg.com\/80\/v2-94b487ecd71688660c765cfad350f9dc_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic2.zhimg.com\/v2-18da4766ad7aff116d9cefdde59a876d_b.jpg\" data-original=\"https:\/\/pic1.zhimg.com\/v2-94b487ecd71688660c765cfad350f9dc_r.jpg\" data-actualdata-original=\"https:\/\/pic1.zhimg.com\/v2-94b487ecd71688660c765cfad350f9dc_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe8\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe8\" \/><\/figure>\n<p>\u542f\u52a8\u5b8c\u6210<\/p>\n<p><b>\u7b2c\u56db\u6b65 \u4f7f\u7528<\/b><\/p>\n<p>\u53ef\u4ee5\u4f7f\u7528\u624b\u673a\u91cc\u7684\u7ec8\u7aef\u6a21\u62df\u5668\u6216\u8005\u901a\u8fc7SSH\u8fde\u63a5\u6765\u64cd\u4f5c\u4f60\u7684Linux<\/p>\n<p>\u53e6\uff1aDeployLinux\u5176\u4ed6\u7684\u4e00\u4e9b\u8bbe\u7f6e<\/p>\n<p>\u70b9\u51fb\u754c\u9762\u7684\u5de6\u4e0a\u89d2\u8fdb\u5165<\/p>\n<p>\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aLinux \u53ef\u4ee5\u67e5\u770b\u53d7\u652f\u6301\u7684Linux \u53ef\u4ee5\u8fdb\u5165\u7ec8\u7aef\u6a21\u62df\u5668<\/p>\n<p>\u70b9\u51fbSettings\u8bbe\u7f6e<\/p>\n<figure data-size=\"normal\"><img decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" src=\"https:\/\/pic4.zhimg.com\/80\/v2-f951849c0eb82a7ae1dab45c1e7533e7_1440w.jpg\" width=\"1080\" data-caption=\"\" data-size=\"normal\" data-rawwidth=\"1080\" data-rawheight=\"1920\" data-default-watermark-src=\"https:\/\/pic4.zhimg.com\/v2-92bd4c8485a862503ced7d331957b88b_b.jpg\" data-original=\"https:\/\/pic4.zhimg.com\/v2-f951849c0eb82a7ae1dab45c1e7533e7_r.jpg\" data-actualdata-original=\"https:\/\/pic4.zhimg.com\/v2-f951849c0eb82a7ae1dab45c1e7533e7_b.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" data-lazy-status=\"ok\" title=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe9\" alt=\"linux\u8fd0\u884c\u5728android\u624b\u673a\u6216android\u7535\u89c6\u68d2\u4e0b\u63d2\u56fe9\" \/><\/figure>\n<p>\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5f00\u5173\u548c\u8c03\u6574\u529f\u80fd<\/p>\n<p>\u4ee5\u4e0b\u662f\u5b89\u88c5\u597d\u4e4b\u540e\u7684\u6548\u679c:<\/p>\n<h3>- Python3 \u5b89\u88c5<\/h3>\n<p>\u6709\u4e86 Python \u8fd9\u670d\u52a1\u5668\u624d\u50cf\u6837\uff0c\u54c8\u54c8\u3002<\/p>\n<p>\u6211\u8fd9\u91cc\u9009\u62e9\u7684\u662f\u5b89\u88c5\u00a0<code>Python3<\/code>\uff0c \u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<pre class=\"bash hljs\"><code class=\"bash\"><span class=\"hljs-comment\"># \u5b89\u88c5 python3<\/span>\r\nsudo apt-get install python3 \r\n\r\n<span class=\"hljs-comment\"># \u5b89\u88c5 python3 \u5bf9\u5e94\u7684 pip<\/span>\r\nsudo apt-get install python3-pip<\/code><\/pre>\n<h3>- crontab \u4efb\u52a1<\/h3>\n<p><code>\u5e94\u7528\u573a\u666f\uff1a<\/code>\u6bcf\u5929\u81ea\u52a8\u7b7e\u5230\u7684\u722c\u866b\u7a0b\u5e8f\u3002<\/p>\n<p>\u7ecf\u8fc7\u53cd\u590d\u6d4b\u8bd5\uff0c\u597d\u50cf\u8fd9\u4e2a\u7248\u672c\u4e2d\u7684<code>crontab<\/code>\uff08\u901a\u8fc7\u00a0<code>sudo apt-get install cron<\/code>\u00a0\u5b89\u88c5\uff09\u65e0\u6cd5\u6b63\u5e38\u6267\u884c\u4efb\u52a1\uff0c\u5728\u8fdb\u7a0b\u5217\u8868(<code>ps -e | grep cron<\/code>)\u4e2d\u4e5f\u770b\u4e0d\u5230\u5176\u8e2a\u5f71\u3002\u6240\u4ee5\u653e\u5f03\u4e4b\uff0c\u7528\u00a0<code>python<\/code>\u00a0\u6765\u89e3\u51b3\uff08\u5982\u679c\u4f60\u6709\u5176\u4ed6\u89e3\u51b3\u65b9\u6cd5\uff0c\u8bf7\u4e0d\u60dc\u8d50\u6559\uff09\uff1a<\/p>\n<p>\u4e0b\u9762\u4f8b\u5b50\u662f\u6bcf\u79d2\u6253\u5370\u4e00\u6b21 hello world \u5230\u6807\u51c6\u8f93\u51fa<\/p>\n<p><strong>hello.py<\/strong><\/p>\n<pre class=\"python hljs\"><code class=\"python\"><span class=\"hljs-comment\"># -*- coding: UTF-8 -*-<\/span>\r\n<span class=\"hljs-keyword\">import<\/span> threading\r\n\r\n<span class=\"hljs-comment\"># \u4efb\u52a1\u6267\u884c\u95f4\u9694\u65f6\u95f4\uff0c\u4e0b\u9762\u662f 1s \u4e5f\u5c31\u6bcf\u79d2\u6267\u884c\u4e00\u6b21<\/span>\r\nINTERVAL_TIME = <span class=\"hljs-number\">1<\/span>\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title\">task<\/span>():<\/span>\r\n <span class=\"hljs-comment\"># \u5728\u8fd9\u91cc\u5199\u4e0b\u4f60\u8981\u6267\u884c\u7684\u547d\u4ee4,\u4f8b\u5982\u6253\u5370 HelloWorld<\/span>\r\n print(<span class=\"hljs-string\">'Hello World!\\n'<\/span>)\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title\">cron<\/span>():<\/span>\r\n task()\r\n threading.Timer(INTERVAL_TIME, cron).start()\r\n\r\n<span class=\"hljs-comment\"># \u8c03\u7528 cron \u51fd\u6570\uff0c\u5373\u5f00\u59cb\u4efb\u52a1<\/span>\r\ncron()<\/code><\/pre>\n<p>\u6267\u884c\u7684\u8bdd\u5c31\u8fd9\u6837\uff1a<\/p>\n<pre class=\"bash hljs\"><code class=\"bash\"><span class=\"hljs-comment\"># \u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4 python2.7 \u6267\u884c<\/span>\r\npython hello.py\r\n\r\n<span class=\"hljs-comment\"># \u4f7f\u7528\u65b0\u88c5\u7684 python3 \u6267\u884c<\/span>\r\npython hello.py<\/code><\/pre>\n<p>\u6211\u4eec\u5c31\u80fd\u770b\u89c1\u63a7\u5236\u53f0\u6bcf\u79d2\u90fd\u6253\u5370\u51fa\u5b57\u7b26\u4e86\u3002<\/p>\n<p><strong>\u8fdb\u9636\uff1a<\/strong>\u8ba9\u811a\u672c\u5728\u540e\u53f0\u6267\u884c\uff0c_\u5373\u4f7f\u6211\u4eec\u5173\u95ed\u5f53\u524d shell\uff0c\u5b83\u4e5f\u6267\u884c_<\/p>\n<pre class=\"bash hljs\"><code class=\"bash\"><span class=\"hljs-comment\"># \u5f53\u7136\u8fd9\u53e5\u6267\u884c\u540e\uff0c\u9664\u4e86\u8fd4\u56de\u4e00\u4e2a pID \u5565\u90fd\u6ca1\u6709\u7684\uff0c\u5982\u679c\u4f60\u4ee5\u540e\u7684\u811a\u672c\u8981\u8f93\u51fa\u4fe1\u606f\uff0c<\/span>\r\n<span class=\"hljs-comment\"># \u5c31\u53ea\u9700\u8981\u5c06\u4fe1\u606f\u5199\u5165\u6307\u5b9a\u7684 log \u6587\u4ef6\u4e2d\u5373\u53ef<\/span>\r\nnohup python .\/hello.py &amp;<\/code><\/pre>\n<p>\u4ee5\u4e0a\u547d\u4ee4\u6267\u884c\u540e\u4f1a\u8fd4\u56de\u4e00\u4e2a pID\uff0c\u5982\u679c\u4f60\u60f3\u7ed3\u675f\u8fd9\u4e2a\u540e\u53f0\u7a0b\u5e8f\uff0c\u53ea\u9700\u8981\u8fd9\u6837<\/p>\n<pre class=\"bash hljs\"><code class=\"bash\"><span class=\"hljs-built_in\">kill<\/span>\u00a0\u5bf9\u5e94\u7684pID<\/code><\/pre>\n<p>\u5982\u679c pID \u8bb0\u4e0d\u5f97\u4e86\uff0c\u4e0b\u9762\u65b9\u6cd5\u80fd\u5e2e\u52a9\u4f60\uff1a<\/p>\n<pre class=\"bash hljs\"><code class=\"bash\"><span class=\"hljs-comment\"># \u5982\u679c\u662f\u7528 python \u6267\u884c\u7684\u540e\u53f0\u7a0b\u5e8f\uff0c\u5c31\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/span>\r\nps -e|grep python<\/code><\/pre>\n<p>\u5c31\u80fd\u83b7\u5f97\u5bf9\u5e94\u7684\u5217\u8868\uff0c\u5217\u8868\u7b2c\u4e00\u5217\u5c31\u662f pID\uff0c kill \u6389\u4f60\u60f3\u5173\u7684\u540e\u53f0\u7a0b\u5e8f\u5373\u53ef<\/p>\n<h3>- \u4e2d\u6587\u4e71\u7801<\/h3>\n<p><code>\u5e94\u7528\u573a\u666f\uff1a<\/code>\u662f\u4e2a\u4e2d\u56fd\u4eba\u5c31\u53ef\u80fd\u78b0\u5230\u3002\u3002\u3002<\/p>\n<p>\u55ef\uff0c\u8fd9\u4e2a\u95ee\u9898\u6211\u73b0\u5728\u7528\u7684\u65b9\u5f0f\u662f\uff1a\u4e0d\u7528\u4e2d\u6587?\u3002<\/p>\n<p>\u7406\u7531\u662f\uff1a<\/p>\n<ol>\n<li>\u5bf9\u4e2d\u6587\u8f93\u51fa\u8981\u6c42\u4e0d\u90a3\u4e48\u5f3a\u70c8<\/li>\n<li>\u6b63\u5219\u5339\u914d\u4e2d\u53ef\u4ee5\u7565\u8fc7\u4e2d\u6587\uff0c\u727a\u7272\u4e00\u4e01\u70b9\u6027\u80fd\u7b97\u4e0d\u4e86\u5565\u4e8b\u513f<\/li>\n<li>\u652f\u6301\u4e2d\u6587\u7684\u8bdd\u8981\u88c5\u4e00\u5927\u5806\u5305\uff0c\u79c9\u627f\u80fd\u4e0d\u88c5\u5219\u4e0d\u88c5\u7684\u5fc3\u6001\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5bfb\u601d\u7740\u5f04\u4e00\u53f0\u4f4e\u529f\u8017\u00a0linux\u00a0\u670d\u52a1\u5668\u7528\uff0c\u53ea\u8fd0\u884c\u4e00\u4e9b\u5c0f\u7a0b\u5e8f\uff0c\u4f8b\u5982\u00a0Python \u5199\u7684\u722c\u866b\u6216\u8005\u5b9a\u65f6\u4efb\u52a1\u3002\u7f51\u4e0a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[26,564,565],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-linux-on-android"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1026"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1026\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}