{"id":439191,"date":"2021-04-14T18:23:37","date_gmt":"2021-04-14T10:23:37","guid":{"rendered":"http:\/\/4563.org\/?p=439191"},"modified":"2021-04-14T18:23:37","modified_gmt":"2021-04-14T10:23:37","slug":"%e8%af%b7%e6%95%99%e7%94%a8-uwsgi-%e5%90%af%e5%8a%a8-django-%e9%a1%b9%e7%9b%ae%e9%81%87%e5%88%b0%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=439191","title":{"rendered":"\u8bf7\u6559\u7528 uWSGI \u542f\u52a8 Django \u9879\u76ee\u9047\u5230\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u7528 uWSGI \u542f\u52a8 Django \u9879\u76ee\u9047\u5230\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuqiccr <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7b2c\u4e00\u6b21\u4f7f\u7528 uwsgi\uff0c\u4ee5\u524d\u4e00\u76f4\u7528\u7684 runserver \u542f\u52a8\u3002\u3002\u3002<br \/> \u5982\u56fe\u4e00\u662f\u6211\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u56fe\u4e8c\u662f\u6211\u7684 uwsgi.ini \u7684\u914d\u7f6e\uff0c<br \/> \u542f\u52a8\u4e4b\u540e\u65e5\u5fd7\u91cc\u62a5\u9519\uff1achdir: no such file or directory [core\/uwsgi.c]\uff0c\u5982\u56fe\u4e09\u3002<br \/>\u4e0d\u77e5\u9053\u54ea\u91cc\u51fa\u4e86\u95ee\u9898\uff0c\u7f51\u4e0a\u7684\u65b9\u6848\u90fd\u8bd5\u8fc7\u4e86\u4e5f\u6ca1\u80fd\u89e3\u51b3\uff0c\u6c42\u5927\u4f6c\u6307\u5bfc      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5754033\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruanimal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u8bf4\u8def\u5f84\u4e0d\u5bf9\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754034\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xuqiccr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ruanimal #1 \u8fd9\u4e2a\u6211\u770b\u51fa\u6765\u4e86\uff0c\u4f46\u662f\u7f51\u4e0a\u627e\u7684\u6559\u7a0b\u90fd\u8bd5\u4e86\u4e00\u4e0b\uff0c\u8fd8\u662f\u4e00\u76f4\u627e\u4e0d\u7740\u8def\u5f84\uff0c\u592a\u83dc\u4e86\u6211                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754035\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sugarkeek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             chdir \u662f\u9879\u76ee\u7684\u7edd\u5bf9\u8def\u5f84\u5427\uff0c\u4f60 cd \u8fdb\u9879\u76ee pwd \u6267\u884c\u4e00\u4e0b\uff0c\u770b\u770b\u7edd\u5bf9\u8def\u5f84                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754036\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maocat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuqiccr \u9879\u76ee\u76ee\u5f55\u548c uwsgi \u4e0b\u7684 chdir \u4e0d\u662f\u4e00\u4e2a\u8def\u5f84\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754037\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maocat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @maocat \u4f60\u7684\u9879\u76ee\u5728~\/projects, uwsgi \u5728 \/data\/webapps                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754038\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : est <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             chdir = %d..<\/p>\n<p>\u8fd9\u6837\u53ef\u4ee5\u81ea\u52a8\u8bbe\u7f6e\u5f53\u524d\u8def\u5f84\u4e3a uwsgi.ini \u7684\u4e0a\u4e00\u7ea7\u76ee\u5f55\u3002<\/p>\n<p>\u5982\u679c\u76ee\u5f55\u5c42\u7ea7\u591a\u6216\u8005\u5c11\uff0c\u5c31 %d..\/.. \u6216\u8005\u76f4\u63a5 %d                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754039\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xuqiccr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @maocat ~projects \u662f\u6211\u672c\u5730\u7684\u622a\u56fe\uff0c\/data \u662f\u5728\u670d\u52a1\u5668\u4e0a\u7684\uff0c\u8fd9\u4e2a\u6709\u6b67\u4e49\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5754040\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xuqiccr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @est                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u7528 uWSGI \u542f\u52a8 Djan&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/439191"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=439191"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/439191\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=439191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=439191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=439191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}