{"id":524,"date":"2015-04-13T16:27:00","date_gmt":"2015-04-13T08:27:00","guid":{"rendered":"http:\/\/www.linangran.com\/?p=524"},"modified":"2015-04-13T16:27:00","modified_gmt":"2015-04-13T08:27:00","slug":"%e5%8f%91%e7%8e%b0%e4%b8%80%e4%b8%aa%e6%9c%89%e8%b6%a3%e7%9a%84%e4%b8%9c%e8%a5%bf%ef%bc%9adocker","status":"publish","type":"post","link":"https:\/\/www.linangran.com\/?p=524","title":{"rendered":"\u53d1\u73b0\u4e00\u4e2a\u6709\u8da3\u7684\u4e1c\u897f\uff1aDocker"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\uff0c\u540e\u7aef\u7528\u7684\u662fNginx + \u00a0Python + Django + Gunicorn + Celery + libav\uff0cCelery\u53c8\u4f9d\u8d56RabbitMQ\uff0c\u4e3a\u4e86\u8ba9Celery\u548cGunicorn\u8dd1\u8d77\u6765\u53c8\u7528\u4e86Supervisor\uff0c\u4e1c\u897f\u592a\u591a\u914d\u7f6e\u53c8\u592a\u7e41\u7410\uff0c\u5199\u4ee3\u7801\u8c03\u8bd5\u548c\u90e8\u7f72\u90fd\u662f\u4e00\u4e2a\u6311\u6218\uff0c\u65f6\u95f4\u957f\u4e86\u6015\u662f\u914d\u7f6e\u6587\u4ef6\u548c\u65e5\u5fd7\u7684location\u90fd\u8981\u5fd8\u5149\u5149\u3002\u6211\u7684\u5de5\u4f5c\u73af\u5883\u662fMac\u548cWindows\uff0c\u670d\u52a1\u5668\u5219\u662fUbuntu\u6216\u8005Centos\uff0c\u50cflibav\u8fd9\u79cd\u4e1c\u897f\u57fa\u672c\u4e0a\u7b97\u662fLinux\u72ec\u6709\u7684\uff0cMac\u867d\u7136\u662f*nix like\u4f46\u662f\u6bd5\u7adf\u4e0d\u662fLinux\uff0c\u60f3\u4e86\u534a\u5929\u6700\u540e\u51b3\u5b9a\u653e\u5f03\u5728Mac\u505aCelery worker\u7684\u8c03\u8bd5\uff0c\u6539\u5728Ubuntu\u7684\u670d\u52a1\u5668\u4e0a\u7528\u6700\u539f\u59cb\u7684Log\u6765\u5206\u6790\u8c03\u8bd5\uff0c\u7b80\u76f4\u86cb\u75bc\u5230\u4e0d\u884c\u3002<\/p>\n<p>\u8fd9\u4e24\u5929\u5728\u7f51\u4e0a\u770b\u5230\u4e86Docker\u8fd9\u4e2a\u73a9\u610f\uff0c\u770b\u8d77\u6765\u786e\u5b9e\u4e0d\u9519\uff1a\u5728Linux\u4e0a\u6709\u8fd1\u4e4eNative\u7684\u6027\u80fd\uff0c\u5728\u5176\u5b83\u5e73\u53f0\u4e0a\u5219\u901a\u8fc7\u7c7b\u4f3c\u865a\u62df\u673a\u7684\u673a\u5236\u6765\u6784\u5efa\u8fd0\u884c\u73af\u5883\uff0c\u901a\u8fc7remote debug\u673a\u5236\u548cIDE\u6c9f\u901a\uff0c\u800c\u90e8\u7f72\u5219\u6709\u70b9\u50cf\u62f7\u8d1d\u865a\u62df\u673a\u955c\u50cf\uff1aDocker\u7684\u6bcf\u4e00\u4e2a\u4f18\u52bf\u90fd\u76f4\u51fb\u5f00\u53d1\u90e8\u7f72\u7684\u75db\u70b9\uff0c\u4e0b\u6b21\u90e8\u7f72\u7684\u65f6\u5019\u4e00\u5b9a\u8981\u7528\u4e00\u4e0b\u3002<\/p>\n<p>\u613f\u8ba9\u6211\u6ee1\u6000\u671f\u671b\u7684Docker\uff0c\u4e0d\u8981\u50cfCygwin\u4e00\u6837\u8ba9\u6211\u5931\u671b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5199\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\uff0c\u540e\u7aef\u7528\u7684\u662fNginx + \u00a0Python + Django + Gunicorn + Celery + libav\uff0cCelery\u53c8\u4f9d\u8d56RabbitMQ\uff0c\u4e3a\u4e86\u8ba9Celery\u548cGunicorn\u8dd1\u8d77\u6765\u53c8\u7528\u4e86Supervisor\uff0c\u4e1c\u897f\u592a\u591a\u914d\u7f6e\u53c8\u592a\u7e41\u7410\uff0c\u5199\u4ee3\u7801\u8c03\u8bd5\u548c\u90e8\u7f72\u90fd\u662f\u4e00\u4e2a\u6311\u6218\uff0c\u65f6\u95f4\u957f\u4e86\u6015\u662f\u914d\u7f6e\u6587\u4ef6\u548c\u65e5\u5fd7\u7684location\u90fd\u8981\u5fd8\u5149\u5149\u3002\u6211\u7684\u5de5\u4f5c\u73af\u5883\u662fMac\u548cWindows\uff0c\u670d\u52a1\u5668\u5219\u662fUbuntu\u6216\u8005Centos\uff0c\u50cflibav\u8fd9\u79cd\u4e1c\u897f\u57fa\u672c\u4e0a\u7b97\u662fLinux\u72ec\u6709\u7684\uff0cMac\u867d\u7136\u662f*nix like\u4f46\u662f\u6bd5\u7adf\u4e0d\u662fLinux\uff0c\u60f3\u4e86\u534a\u5929\u6700\u540e\u51b3\u5b9a\u653e\u5f03\u5728Mac\u505aCelery worker\u7684\u8c03\u8bd5\uff0c\u6539\u5728Ubuntu\u7684\u670d\u52a1\u5668\u4e0a\u7528\u6700\u539f\u59cb\u7684Log\u6765\u5206\u6790\u8c03\u8bd5\uff0c\u7b80\u76f4\u86cb\u75bc\u5230\u4e0d\u884c\u3002 \u8fd9\u4e24\u5929\u5728\u7f51\u4e0a\u770b\u5230\u4e86Docker\u8fd9\u4e2a\u73a9\u610f\uff0c\u770b\u8d77\u6765\u786e\u5b9e\u4e0d\u9519\uff1a\u5728Linux\u4e0a\u6709\u8fd1\u4e4eNative\u7684\u6027\u80fd\uff0c\u5728\u5176\u5b83\u5e73\u53f0\u4e0a\u5219\u901a\u8fc7\u7c7b\u4f3c\u865a\u62df\u673a\u7684\u673a\u5236\u6765\u6784\u5efa\u8fd0\u884c\u73af\u5883\uff0c\u901a\u8fc7remote debug\u673a\u5236\u548cIDE\u6c9f\u901a\uff0c\u800c\u90e8\u7f72\u5219\u6709\u70b9\u50cf\u62f7\u8d1d\u865a\u62df\u673a\u955c\u50cf\uff1aDocker\u7684\u6bcf\u4e00\u4e2a\u4f18\u52bf\u90fd\u76f4\u51fb\u5f00\u53d1\u90e8\u7f72\u7684\u75db\u70b9\uff0c\u4e0b\u6b21\u90e8\u7f72\u7684\u65f6\u5019\u4e00\u5b9a\u8981\u7528\u4e00\u4e0b\u3002 \u613f\u8ba9\u6211\u6ee1\u6000\u671f\u671b\u7684Docker\uff0c\u4e0d\u8981\u50cfCygwin\u4e00\u6837\u8ba9\u6211\u5931\u671b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linangran.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":3,"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/www.linangran.com\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/527"}],"wp:attachment":[{"href":"https:\/\/www.linangran.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linangran.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linangran.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}