{"id":265,"date":"2021-07-21T21:20:44","date_gmt":"2021-07-21T13:20:44","guid":{"rendered":"https:\/\/dasmz.com\/?p=265"},"modified":"2021-07-21T22:17:16","modified_gmt":"2021-07-21T14:17:16","slug":"%e5%9f%ba%e4%ba%8emozilla%e7%9a%84send%ef%bc%8c%e6%90%ad%e5%bb%ba%e7%ae%80%e5%8d%95%e7%9a%84%e6%96%87%e4%bb%b6%e8%b5%84%e6%96%99%e5%88%86%e4%ba%ab%e5%b9%b3%e5%8f%b0%ef%bc%8c%e4%bb%8e%e6%ad%a4%e8%b7%9f","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=265","title":{"rendered":"\u57fa\u4e8eMozilla\u7684send\uff0c\u642d\u5efa\u7b80\u5355\u7684\u6587\u4ef6\u8d44\u6599\u5206\u4eab\u5e73\u53f0\uff0c\u4ece\u6b64\u8ddf\u7528\u5fae\u4fe1\u53d1\u6587\u4ef6\u7684\u884c\u4e3a\u544a\u522b 2021-7-21"},"content":{"rendered":"\n<p>\u9700\u6c42\u63cf\u8ff0<\/p>\n\n\n\n<p>\u65e5\u5e38\uff0c\u9700\u8981\u53d1\u9001\u6587\u4ef6\uff0c\u56fe\u7247\uff0c\u538b\u7f29\u5305\uff0c\u94fe\u63a5\u7b49\u5185\u5bb9\u7ed9\u670b\u53cb\uff0c\u5927\u5bb6\u5e38\u7528\u7684\u80af\u5b9a\u662fQQ\/Wechat\uff0c\u8fd9\u5176\u5b9e\u5982\u540c\u5409\u5229\u516c\u53f8\u8001\u677f\u8bf4\u7684\uff0c\u5176\u5b9e\u5f88\u4e0d\u5177\u5907\u9690\u79c1\uff0c\u800c\u4e14\uff0c\u60f3\u7528\u5fae\u4fe1\u53d1\u9001\u8d85\u8fc7100MB\u7684\u6587\u4ef6\uff0c\u5c31\u76f4\u63a5\u88ab\u62d2\u7edd\uff0c\u65e0\u5948\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\u6709\u4ec0\u4e48\u7b80\u5355\u53ef\u9760\u7684\u5206\u4eab\u8d44\u6599\u7684\u65b9\u5f0f\u5462\uff0c\u54c8\u54c8\uff0cMozilla\u7684send\u7684\u9879\u76ee\u6b63\u9002\u5408\u4f60\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u7684\u8d44\u6e90<\/p>\n\n\n\n<ol><li>\u4e91\u670d\u52a1\u5668 x1<\/li><li>Node.js\u73af\u5883 x1<\/li><li>Git\u53ef\u8bbf\u95ee x1<\/li><\/ol>\n\n\n\n<p>\u5b89\u88c5\u90e8\u7f72\u6b65\u9aa4\u5982\u4e0b<\/p>\n\n\n\n<p>Mozilla\u7684send\u662f\u57fa\u4e8eNode.js 12.x\u5f00\u53d1\u7684\uff0c\u6545\u800c\u9700\u8981\u5148\u5b89\u88c5Node.js<\/p>\n\n\n\n<p>Node.js\u5b98\u65b9\u7f51\u7ad9  <a href=\"https:\/\/nodejs.org\/\">https:\/\/nodejs.org\/<\/a><\/p>\n\n\n\n<p>\u5b89\u88c5Node.js\u76f8\u5bf9\u7b80\u5355\uff0c\u76f4\u63a5\u53c2\u8003Node.js\u5b98\u65b9\u7684Github\u9875\u9762\uff0c\u91cc\u9762\u5305\u542b\u591a\u5e73\u53f0\u7684\u7b80\u5355\u811a\u672c\u5b89\u88c5\u65b9\u5f0f\uff0c\u8fdb\u884c\u5bf9\u5e94\u7cfb\u7edf\u7248\u672c\u7684\u5b89\u88c5 <a href=\"https:\/\/github.com\/nodesource\/distributions\">https:\/\/github.com\/nodesource\/distributions<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u6211\u8fd9\u91cc\u662fDebian 9 \u7cfb\u7edf\uff0c\u5219\u5bf9\u5e94\u5b89\u88c5Node.js 12.X\u7684\u6b65\u9aa4\u4e3a\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# apt-get update\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# apt-get install curl apt-transport-https ca-certificates gnupg2 software-properties-common git wget \nroot@debian:~# curl -fsSL https:\/\/deb.nodesource.com\/setup_12.x | bash -\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# apt-get update\nroot@debian:~# apt-get install -y nodejs\n\nroot@debian:~# nodejs -v\nv12.22.2\nroot@debian:~# \n<\/pre>\n\n\n\n<p>\u5728\u5b89\u88c5\u5b8c\u6210Node.js\u4e4b\u540e\uff0c\u90e8\u7f72Mozilla\/send<\/p>\n\n\n\n<p>\u9879\u76ee\u5730\u5740<a href=\"https:\/\/github.com\/mozilla\/send\">https:\/\/github.com\/mozilla\/send<\/a><\/p>\n\n\n\n<p>\u4e0b\u8f7dsend\u7684\u6e90\u5305\uff0c<a href=\"https:\/\/github.com\/mozilla\/send\/archive\/refs\/tags\/v3.0.22.tar.gz\">https:\/\/github.com\/mozilla\/send\/archive\/refs\/tags\/v3.0.22.tar.gz<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ \u4e0b\u8f7d\uff0c\u89e3\u538b\uff0c\u5b89\u88c5\nroot@debian:~# wget https:\/\/github.com\/mozilla\/send\/archive\/refs\/tags\/v3.0.22.tar.gz\nroot@debian:~# tar -zxvf v3.0.22.tar.gz\nroot@debian:~# cd \/send-3.0.22\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# npm install   \/\/ \u9700\u8981\u6bd4\u8f83\u4e45\u7684\u65f6\u95f4\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# npm audit fix   \/\/ \u6267\u884c\u4e0a\u4e00\u6b65\uff0c\u5982\u679c\u6709\u5931\u8d25\uff0c\u5219\u8fd0\u884c\u8be5\u547d\u4ee4\u8865\u5145\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">\/\/ root@debian:~# npm run prod\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">root@debian:~# \/usr\/bin\/node \/usr\/bin\/npm run prod<\/pre>\n\n\n\n<p>\u56f0\u4e86\uff0c\u5148\u7761\u89c9\uff0c\u672a\u5b8c\u5f85\u7eed&#8230;&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u6c42\u63cf\u8ff0 \u65e5\u5e38\uff0c\u9700\u8981\u53d1\u9001\u6587\u4ef6\uff0c\u56fe\u7247\uff0c\u538b\u7f29\u5305\uff0c\u94fe\u63a5\u7b49\u5185\u5bb9\u7ed9\u670b\u53cb\uff0c\u5927\u5bb6\u5e38\u7528\u7684\u80af\u5b9a\u662fQQ\/Wechat\uff0c\u8fd9\u5176\u5b9e\u5982\u540c\u5409 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/265"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":19,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}