exe\u5b9a\u5236<\/a>\u6765\u5b58\u653e\u6253\u5305\u540e\u7684\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528mkdir\u547d\u4ee4\u521b\u5efa\u76ee\u5f55\uff0c\u5982\uff1a<\/p>\nmkdir myapp<\/p>\n
3. \u590d\u5236\u6587\u4ef6<\/p>\n
\u5c06\u8f6f\u4ef6\u7684\u6e90\u4ee3\u7801\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\u590d\u5236\u5230myapp\u76ee\u5f55\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528cp\u547d\u4ee4\u590d\u5236\u6587\u4ef6\uff0c\u5982\uff1a<\/p>\n
cp -r \/path\/to\/myapp\/* myapp\/<\/p>\n
4. \u8bbe\u7f6e\u6743\u9650<\/p>\n
\u5728\u590d\u5236\u6587\u4ef6\u4e4b\u540e\uff0c\u9700\u8981\u8bbe\u7f6e\u6587\u4ef6\u7684\u6743\u9650\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u53ef\u4ee5\u6267\u884c\u8f6f\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528chmod\u547d\u4ee4\u8bbe\u7f6e\u6743\u9650\uff0c\u5982\uff1a<\/p>\n
chmod +x myapp\/*<\/p>\n
5. \u6253\u5305\u6587\u4ef6<\/p>\n
\u5728\u5b8c\u6210\u6240\u6709\u7684\u51c6\u5907\u5de5\u4f5c\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u6253\u5305\u6587\u4ef6\u4e86\u3002\u53ef\u4ee5\u4f7f\u7528tar\u547d\u4ee4\u6253\u5305\u6587\u4ef6\uff0c\u5982\uff1a<\/p>\n
tar -czvf myapp.tar.gz myapp\/<\/p>\n
\u5176\u4e2d\uff0c-c\u8868\u793a\u521b\u5efa\u65b0\u7684\u6253\u5305\u6587\u4ef6\uff0c-z\u8868\u793a\u4f7f\u7528gzip\u538b\u7f29\u6587\u4ef6\uff0c-v\u8868\u793a\u663e\u793a\u6253\u5305\u8fc7\u7a0b\uff0c-f\u8868\u793a\u6307\u5b9a\u6253\u5305\u6587\u4ef6\u540d\u79f0\u3002<\/p>\n
\u6253\u5305\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5c06myapp.tar.gz\u6587\u4ef6\u53d1\u5e03\u7ed9\u7528\u6237\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528tar\u547d\u4ee4\u89e3\u538b\u7f29\u6587\u4ef6\uff0c\u5e76\u5b89\u88c5\u8f6f\u4ef6\u3002<\/p>\n
\u603b\u7ed3<\/p>\n
\u6253\u5305\u8f6f\u4ef6\u662fLinux\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u9879\u4efb\u52a1\uff0c\u5b83\u53ef\u4ee5\u5c06\u8f6f\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u6587\u4ef6\uff0c\u65b9\u4fbf\u7528\u6237\u5b89\u88c5\u548c\u4f7f\u7528\u3002\u6253\u5305\u8f6f\u4ef6\u7684\u539f\u7406\u4e3b\u8981\u5305\u62ec\u6253\u5305\u5de5\u5177\u3001\u6253\u5305\u683c\u5f0f\u548c\u6253\u5305\u6d41\u7a0b\u7b49\u65b9\u9762\u3002\u5728\u6253\u5305\u8f6f\u4ef6\u65f6\uff0c\u9700\u8981\u5148\u51c6\u5907\u597d\u8f6f\u4ef6\u7684\u6e90\u4ee3\u7801\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u7b49\uff0c<\/p>\n
<\/figure>\n<\/p>\n\u7136\u540e\u521b\u5efa\u76ee\u5f55\u3001\u590d\u5236\u6587\u4ef6\u3001\u8bbe\u7f6e\u6743\u9650\u548c\u6253\u5305\u6587\u4ef6\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728Linux\u4e2d\uff0c\u6253\u5305\u8f6f\u4ef6\u662f\u4e00\u9879\u975e\u5e38\u91cd\u8981\u7684\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5c06\u8f6f\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u6587\u4ef6\uff0c\u65b9\u4fbf\u7528\u6237\u5b89\u88c5\u548c\u4f7f\u7528\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u6253\u5305\u8f6f\u4ef6\u7684\u539f\u7406\u548c\u8be6\u7ec6\u6b65\u9aa4\u3002\u4e00\u3001\u6253\u5305\u8f6f\u4ef6\u7684\u539f\u7406Linux\u4e2d\u7684\u8f6f\u4ef6\u6253\u5305\uff0c\u4e3b\u8981\u662f\u5c06\u6e90\u4ee3\u7801<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11864,11863,637,12,16],"topic":[],"class_list":["post-6576","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-exezip","tag-windowsrpm","tag-637","tag-12","tag-16"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=6576"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6576\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=6576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=6576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=6576"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=6576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}