{"id":193,"date":"2021-07-06T02:19:00","date_gmt":"2021-07-06T02:19:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=193"},"modified":"2021-07-06T02:19:00","modified_gmt":"2021-07-06T02:19:00","slug":"193","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/07\/06\/193\/","title":{"rendered":"\u65e7\u624b\u673a\u70c2\u624b\u673a\u4e0d\u8981\u6362\u4e0d\u9508\u94a2\u8138\u76c6\uff0c\u5b89\u88c5Linux Deploy\u505a\u79fb\u52a8\u670d\u52a1\u5668"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2836586659.png\" alt=\"snapdragon-processor_chip_angled_9_opt_16.png\" title=\"snapdragon-processor_chip_angled_9_opt_16.png\"><\/p>\n<h3>OPPO R1C\uff08R8205\/\u7535\u4fe14G\uff09<\/h3>\n<p>\u7cbe\u81f4\u94bb\u77f3\u955c\u9762\uff0c\u8d85\u8f7b\u8584\u673a\u8eab\u6210\u5c31\u8d85\u51fa\u671f\u5f85\u7684\u7cbe\u81f4\u3002\u95ea\u62cd\u3001\u53cc\u91cd\u66dd\u5149\u3001\u539f\u753b\u5f15\u64ce\uff0c\u4e3a\u62cd\u7167\u5a31\u4e50\u5e26\u6765\u5168\u65b0\u4f53\u9a8c\u3002\u914d\u5907\u9876\u7ea7\u516b\u6838\u5904\u7406\u5668\uff0c\u9ad8\u6027\u80fd\uff0c\u4f4e\u529f\u8017\uff0c\u5feb\u901f\u6d41\u7545\u3002<\/p>\n<h2>\u65e7\u624b\u673a\u70c2\u624b\u673a\u4e0d\u8981\u6362\u4e0d\u9508\u94a2\u8138\u76c6\uff0c\u7edf\u7edf\u90fd\u53ef\u4ee5\u6362\u5c0f\u9e21<\/h2>\n<p><a href=\"https:\/\/lyvba.com:51888\/product\/4.html\"><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/782900753.jpg\" alt=\"\u5c0f\u9e21.jpg\" title=\"\u5c0f\u9e21.jpg\"><\/a><br \/><a href=\"https:\/\/wwe.lanzoui.com\/i2qN9r27c0d\">\u70b9\u51fb\u4e0b\u8f7d\u8f6f\u4ef6\u5305(\u514d\u8d39)<\/a><\/p>\n<h3>Linux Deploy \u5b89\u5353\u8f6f\u4ef6 \u5b89\u88c5\u6b65\u9aa4<\/h3>\n<ul>\n<li>\u8f6f\u4ef6\u7b80\u4ecb\uff1a\u5b89\u5353\u5e73\u53f0\u865a\u62df\u673a\uff08chroot\u8fd0\u884clinux\u7684\u5bb9\u5668\uff09<\/li>\n<li>\u8f6f\u4ef6\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/meefik\/linuxdeploy\/releases\">https:\/\/github.com\/meefik\/linuxdeploy\/releases<\/a>  \uff08\u672c\u6587\u4f7f\u7528  3_\u5b89\u88c5Linux_Deploy\u9002\u7528\u5b89\u53534.4.apk \uff09<\/li>\n<\/ul>\n<hr \/>\n<ul>\n<li>\u5b89\u88c5  0_\u865a\u62df\u8fd4\u56de\u952e.apk        \u6361\u6765\u7684\u624b\u673a\u5149\u611f\u5e94\u8fd4\u56de\u952e\u548cHome\u952e\u574f\u4e86\uff0c\u91cd\u7f6e\u624b\u673a\u4e5f\u6ca1\u7528\uff0c\u6240\u4ee5\u5b89\u88c5\u4e86\u865a\u62df\u8fd4\u56de\u952e\u3002<\/li>\n<li>\u5b89\u88c5  1_\u5b89\u5353360\u8d85\u7ea7ROOT.apk   \u5b89\u5353\u7cfb\u7edf\u8981ROOT\u624d\u80fd\u4f7f\u7528\uff0c\u6240\u4ee5\u63a8\u8350\u627e\u4e2a\u65e7\u624b\u673a\uff0c\u5148\u91cd\u7f6e\u624b\u673a\uff0c\u683c\u5f0f\u5316\u5185\u7f6e\u5b58\u50a8\u5668<\/li>\n<li>\u5b89\u88c5  2_\u5b89\u88c5BusyBox 1.31.1.apk    \u5b89\u88c5Linux deploy\u4e4b\u524d\u5f97\u9996\u5148\u5b89\u88c5Busybox\uff0c\u5b83\u96c6\u6210\u4e86Linux\u7684\u5f88\u591a\u547d\u4ee4\u3002<\/li>\n<li>\u5b89\u88c5  3_\u5b89\u88c5Linux_Deploy\u9002\u7528\u5b89\u53534.4.apk     \u6361\u6765\u7684\u624b\u673a\u5b89\u53534.4\uff0c\u9009\u4e86\u8fd9\u4e2a\u5b89\u88c5\u53ef\u4ee5\u7528<\/li>\n<li>\u914d\u7f6e  4_linux\u5c5e\u6027\u8bbe\u7f6e.png    \u9996\u5148\u70b9\u5f00\u5de6\u4fa7\u83dc\u5355\uff0c\u70b9\u51fb\u201c\u914d\u7f6e\u6587\u4ef6\u201d\uff0c\u9ed8\u8ba4 linux \u3002<\/li>\n<\/ul>\n<p>\u7136\u540e\u70b9\u51fb\u201c\u8bbe\u7f6e\u201d\uff0c\u3010\u9501\u5b9awifi\u3011\uff0c\u3010CPU\u5524\u9192\u3011\uff0c\u3010\u8054\u7f51\u66f4\u65b0\u3011\u52fe\u4e0a\uff0c\u3010PATH\u53d8\u91cf\u3011\u6700\u91cd\u8981\uff0c\u70b9\u51fb\u5e76\u586b\u4e0a\/system\/xbin\uff0c\u8fd9\u6837\u624d\u80fd\u5173\u8054Busybox\u3002\u7136\u540e\u70b9\u51fb\u4e0b\u9762\u7684\u3010\u66f4\u65b0\u73af\u5883\u3011\u3002<\/p>\n<p>\u518d\u70b9\u5f00\u53f3\u4fa7\u83dc\u5355\uff0c\u70b9\u3010\u914d\u7f6e\u3011\uff0c\u5982\u56fe\u5148\u5c5e\u6027\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u53c2\u8003\u6211\u7684\u8bbe\u7f6e\uff0c\u8fd8\u6709\u52fe\u9009 SSH \u8fdc\u7a0b\u63a7\u5236<br \/><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2043950399.png\" alt=\"4_linux\u5c5e\u6027\u8bbe\u7f6e.png\" title=\"4_linux\u5c5e\u6027\u8bbe\u7f6e.png\">   <br \/> \u518d\u70b9\u5f00\u53f3\u4fa7\u83dc\u5355  \u70b9\u3010\u5b89\u88c5\u3011, \u6309\u63d0\u793a\u5b8c\u6210\u540e\u70b9\u25b2\u3010\u542f\u52a8\u3011<\/p>\n<hr \/>\n<p>\u7535\u8111\u6216\u8005\u624b\u673a\u4f7f\u7528 SSH \u5ba2\u6237\u7aef\u8fde\u5230\u624b\u673alinux\u7cfb\u7edf   ssh root@192.168.1.120<\/p>\n<p>\u9996\u5148\u5148\u5b89\u88c5\u5fc5\u8981\u8f6f\u4ef6<\/p>\n<pre><code>apt update -y  &amp;&amp;  apt install wget curl vim  htop tmux fish<\/code><\/pre>\n<ul>\n<li>\u5b89\u88c5  5_SSH_Client.apk \u5728\u65e7\u624b\u673a\u6216\u8005\u5176\u4ed6\u624b\u673a\u53ef\u4ee5\u7528\u6765\u767b\u9646\u7ba1\u7406 \u624b\u673alinux\u7cfb\u7edf<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/3771745574.png\" alt=\"6_SSH_htop.png\" title=\"6_SSH_htop.png\"><\/p>\n<hr \/>\n<h3>\u9876\u7ea7\u516b\u6838\u5904\u7406\u5668\uff0c\u9ad8\u6027\u80fd\uff0c\u4f4e\u529f\u8017\uff0c\u5feb\u901f\u6d41\u7545\uff0c\u8fd8\u8981\u4ec0\u4e48\u7532\u9aa8\u6587<\/h3>\n<pre><code>tmux -u  # \u5f00\u542f\u547d\u4ee4\u884c\u591a\u7a97\u53e3\u548c\u591a\u7a0b\u5e8f\u7ba1\u7406\nhtop     # \u67e5\u770b CPU \u548c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u548c\u7cfb\u7edf\u72b6\u6001\n\n# tmux \u952e\u76d8\u64cd\u4f5c: \u5148 Ctrl+B\uff0c\u91ca\u653e\u540e\u518d  Shift+5\uff0c\u53ef\u4ee5\u5f00\u542f\u4e00\u4e2a\u5206\u7a97\u53e3\n# ctrl+d  \u5173\u95ed\u5b50\u7a97\u53e3\uff1b \u5148 Ctrl+B \u91ca\u653e\u540e \u65b9\u5411\u952e \u2190 \u5207\u6362\u5206\u7a97\u53e3\n# \u628atmux\u4fdd\u6301\u5230\u540e\u53f0\u4e0d\u5173\u95ed  \u5148 Ctrl+B \u91ca\u653e\u540e\u6309 d ; \u4e0b\u6b21\u6062\u590d\u4f7f\u7528  tmux a\n\ndf -h   # \u67e5\u770b\u7cfb\u7edf\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\n\n# \u8fd9\u4e9b\u57fa\u7840\u547d\u4ee4\uff0c\u4e4b\u540e\u5f00\u542f\u670d\u52a1\u4f1a\u7528\u5230<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2122303198.png\" alt=\"tmux_htop.png\" title=\"tmux_htop.png\"><\/p>\n<h2>\u5b89\u88c5 Nginx + php  + mysql \uff0c\u914d\u7f6e WordPress \u535a\u5ba2<\/h2>\n<pre><code># \u5b89\u88c5 Nginx + php\napt install nginx supervisor git\n\napt install php7.3 php7.3-fpm php7.3-sqlite3 php7.3-xml php7.3-zip php7.3-pgsql php7.3-mbstring \\r\n    php7.3-bcmath php7.3-json php7.3-mysql php7.3-gd php7.3-cli php7.3-curl php7.3-cgi\n\n# \u4e0b\u8f7d Nginx + php \u914d\u7f6e\u6587\u4ef6\u548c\u8fdb\u884c\u8bbe\u7f6e\ngit clone https:\/\/github.com\/hongwenjun\/nginx-php.git\n\ncd nginx-php\ncp .\/default  \/etc\/nginx\/sites-enabled\/default\ncp .\/supervisord.conf   \/etc\/supervisord.conf\n\ncp .\/start.sh  \/start.sh\nchmod +x  \/start.sh\n\necho \"&lt;?php phpinfo(); ?&gt;\"  &gt; \/var\/www\/html\/index.php\n\n#  \u8bbe\u7f6e\u5b8c\u6210 \u8f93\u5165  \/start.sh     \u5f00\u542f\u670d\u52a1<\/code><\/pre>\n<p>\u8bf7\u53c2\u8003 <a href=\"https:\/\/github.com\/hongwenjun\/nginx-php\/blob\/main\/Dockerfile\">Dockerfile<\/a> \u914d\u7f6e<\/p>\n<pre><code># \u5b89\u88c5 mysql (debian\u4f7f\u7528 mariadb-server\uff0c\u7528\u8d77\u6765\u4e00\u6837)\n\napt install mariadb-server\n\nusermod -a -G aid_inet,aid_net_raw mysql\n\nservice mysql start\n\nmysql -u root -p                  # \u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801\uff0c\u4e0d\u7528\u5bc6\u7801\nset password for root@localhost = password('\u8bbe\u7f6e\u5bc6\u7801');\n\nCREATE DATABASE  wordpress;        # \u521b\u5efa\u4e00\u4e2a\u53ebwordpress\u7684\u6570\u636e\u5e93\uff0c\u6ce8\u610f\u5206\u53f7\uff0c\u8bed\u6cd5\uff0c\u4e0d\u7136\u4f1a\u51fa\u9519\nUSE wordpress;                     # \u9009\u4e2dwordpress\u6570\u636e\u5e93\n\nservice mysql restart\n<\/code><\/pre>\n<pre><code># \u5b89\u88c5\u914d\u7f6e WordPress \u535a\u5ba2\ncd \/var\/www\/html\ncurl https:\/\/cn.wordpress.org\/latest-zh_CN.tar.gz | tar -zx\nchown -R www-data:www-data  wordpress<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/07\/2520446340.png\" alt=\"lanmp.png\" title=\"lanmp.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OPPO R1C\uff08R8205\/\u7535\u4fe14G\uff09 \u7cbe\u81f4\u94bb\u77f3\u955c\u9762\uff0c\u8d85\u8f7b\u8584\u673a\u8eab\u6210\u5c31\u8d85\u51fa\u671f\u5f85\u7684\u7cbe\u81f4\u3002\u95ea\u62cd\u3001\u53cc\u91cd\u66dd\u5149 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-linux","category-moment"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}