{"id":247132,"date":"2020-12-22T10:56:53","date_gmt":"2020-12-22T02:56:53","guid":{"rendered":"http:\/\/4563.org\/?p=247132"},"modified":"2020-12-22T10:56:53","modified_gmt":"2020-12-22T02:56:53","slug":"%e5%9f%ba%e4%ba%8e-openresty-%e5%bc%80%e5%8f%91%e7%9a%84-web-%e6%a1%86%e6%9e%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=247132","title":{"rendered":"\u57fa\u4e8e openresty \u5f00\u53d1\u7684 web \u6846\u67b6"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u57fa\u4e8e openresty \u5f00\u53d1\u7684 web \u6846\u67b6               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fxjson <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5927\u5bb6\u770b\u770b\u600e\u4e48\u6837 github.com\/fanqingxuan\/openresty-demo<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4810529\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kidlj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u633a\u597d\u7684\uff0c\u65b0\u5e74\u7b2c\u4e00\u8d5e\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810530\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xcstream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8d5e\u4e00\u4e2a\uff0c \u867d\u7136 lua \u8bed\u8a00\u4e0d\u662f\u5f88\u4f1a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810531\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nonduality <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u591a\u5e74\u524d\u89c1\u8fc7\u7c7b\u4f3c\u7684\uff0c\u4f46\u4f3c\u4e4e\u5b8c\u5168\u706b\u4e0d\u8d77\u6765\uff0c\u4e0d\u5355\u662f\u56e0\u4e3a Lua \u8bed\u8a00\u6bd4\u8f83\u5c0f\u4f17\uff0c\u8fd8\u56e0\u4e3a\u6ca1\u6cd5\u505a\u5230\u50cf RoR \u6216 Django \u90a3\u6837\u597d\u7528\u5427\u3002\u7406\u8bba\u4e0a\uff0c\u50cf RoR \u5e26\u52a8 Ruby \u8bed\u8a00\u706b\u8d77\u6765\u662f\u53ef\u4ee5\u505a\u5230\u7684\uff0c\u53ef\u6ca1\u6709\u4e00\u4e2a web \u6846\u67b6\u5e2e Lua \u505a\u5230\u8fd9\u4e00\u70b9\u3002\u6240\u4ee5\u6211\u7684\u770b\u6cd5\u662f\uff0c\u5c3d\u91cf\u505a\u5f97\u8ddf Django \u3001RoR \u90a3\u4e48\u65b9\u4fbf\u597d\u7528\uff0c\u5e76\u4e14\u6700\u5927\u7a0b\u5ea6\u96c6\u6210\u597d\u5404\u79cd\u5185\u7f6e\u5de5\u5177\uff08\u8ddf Lua \u7684\u54f2\u5b66\u53cd\u9053\u800c\u884c\uff09\uff0c\u964d\u4f4e\u7528\u6237\u7684\u9009\u62e9\u56f0\u96be\u75c7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810532\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxjson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nonduality \u8c22\u8c22\u5efa\u8bae\uff0c\u4e0d\u559c\u6b22\u96c6\u5927\u6210\u7684\u6846\u67b6\uff0c\u5c31\u559c\u6b22\u7b80\u5355\u591f\u7528\uff0c\u6ca1\u90a3\u4e48\u82b1\u91cc\u80e1\u54e8\u7684\uff0c\u6bd4\u5982 flask,sinatra \u7b49\u8f7b\u91cf\u7ea7\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810533\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nonduality <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fxjson Django \u3001RoR \u90a3\u79cd Web \u6846\u67b6\u54ea\u91cc\u53eb\u505a\u82b1\u91cc\u80e1\u54e8\uff1f\u5f97\u53eb\u65b9\u4fbf\u5feb\u6377\uff0c\u4e0a\u624b\u5c31\u7528\uff0c\u91cc\u5934\u7684\u7ec4\u4ef6\u5e76\u975e\u591a\u4f59\u548c\u82b1\u91cc\u80e1\u54e8\u7684\u3002\u4e8b\u5b9e\u4e0a\uff0c\u7528 Flask \u8981\u4e0d\u505c\u9009\u578b\u548c\u914d\u7f6e\u4e00\u5806\u7ec4\u4ef6\uff0c\u7ed3\u679c\u4e5f\u4e0d\u6bd4 Django \u8f7b\uff0c\u76f8\u53cd\u4e00\u5806\u7ec4\u4ef6\u54c1\u8d28\u53c2\u5dee\u4e0d\u9f50\uff0c\u8bf4\u4e0d\u5b9a\u6bd4 Django \u8fd8\u7cdf\u7cd5\uff08\u6709\u53e5\u8bdd\u53eb\u505a\uff1a\u4f60\u8bf4 Flask \u6bd4 Django \u8f7b\u6211\u627f\u8ba4\uff0c\u4f46\u8bf4\u57fa\u4e8e Flask \u7684\u9879\u76ee\u6bd4\u57fa\u4e8e Django \u9879\u76ee\u8f7b\u5c31\u4e0d\u80fd\u63a5\u53d7\u4e86\uff09\u3002<\/p>\n<p>\u65e2\u7136\u4f60\u79c9\u6301\u8fd9\u4e2a\u7406\u5ff5\uff0c\u6211\u4f30\u8ba1\u4f60\u8fd9\u4e2a\u6846\u67b6\u8ddf\u4ee5\u5f80\u6211\u89c1\u8fc7\u7684\u4e24\u4e2a Lua Web \u6846\u67b6\uff08\u5176\u4e2d\u4e00\u4e2a\u662f\u57fa\u4e8e OpenResty \uff09\u90a3\u6837\uff0c\u4e0d\u4f1a\u6709\u591a\u5c11\u4eba\u7528\uff0c\u6bd5\u7adf OpenRestiy \u8fd0\u884c\u9ad8\u6548\u662f\u4e00\u65b9\u9762\uff0c\u5f00\u53d1\u4fbf\u6377\u7b80\u5355\u7684\u7a0b\u5ea6\u53c8\u662f\u91cd\u8981\u7684\u8003\u91cf\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u53ea\u662f\u60f3\u81ea\u4e2a\u73a9\u7968\u4e00\u628a\uff0c\u5e76\u4e0d\u5728\u4e4e\u522b\u4eba\u4f7f\u7528\u4e0e\u5426\uff0c\u90a3\u81ea\u662f\u6089\u542c\u5c0a\u4fbf\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810534\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nonduality <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\uff0c\u6211\u5bf9\u5f00\u53d1 OpenResty \u7684\u7ae0\u4ea6\u6625\u86ee\u4f69\u670d\u7684\uff0c\u4ed6\u641e OpenResty \u6070\u6070\u8ddf Lua \u7684\u54f2\u5b66\uff08\u8ffd\u6c42\u7b80\u5355\u8f7b\u4fbf\uff0c\u4e0d\u81ea\u5e26\u6807\u51c6\u5e93\uff0c\u8ddf Python \u76f8\u53cd\uff09\u53cd\u9053\u800c\u884c\uff0c\u628a\u4e00\u5806\u7ec4\u4ef6\u90fd\u52a0\u5230 OpenResty \u91cc\u5934\uff0c\u8fde\u5404\u4e2a\u5e73\u53f0\u7684\u4e8c\u8fdb\u5236\u5305\u90fd\u9884\u5148\u7f16\u8bd1\u597d\uff0c\u7528\u6237\u4e0a\u6765\u5c31\u53ef\u4ee5\u7528\uff0c\u8fd9\u624d\u662f\u5b83\u80fd\u8fc5\u901f\u6253\u5f00\u7528\u6237\u57fa\u7840\u7684\u6839\u672c\u3002\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u57fa\u4e8e Lua \u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6 Torch7 \u975e\u5e38\u725b\u63b0\uff0c\u53ef\u5230\u5e95\u88ab\u629b\u5f03\u4e86\uff0c\u57fa\u4e8e Python \u7684\u540e\u7ee7\u8005 PyTorch \u8d8a\u6765\u8d8a\u725b\uff0c\u6210\u4e3a\u552f\u4e8c\u7684\u4e3b\u6d41\u673a\u5668\u5b66\u4e60\u6846\u67b6\uff0c\u539f\u56e0\u4f55\u5728\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810535\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coolesting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             lua \u5c31\u662f\u7cbe\u7b80\u7248\u7684 ruby\uff0c\u5f00\u59cb\u5199 ruby \u65f6\u8212\u670d\uff0c\u89c1\u4e86 lua \u4e4b\u540e\u89c9\u5f97\u5b83 \u66f4\u52a0\u6e05\u723d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810536\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxjson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @coolesting ruby \u9b54\u6cd5\u7cd6\u592a\u591a\u4e86\uff0c\u505a\u5927\u9879\u76ee\u4e0d\u6613\u638c\u63a7\uff0c\u505a\u5c0f\u9879\u76ee\u53c8\u611f\u89c9\u5927\u6750\u5c0f\u7528\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4810537\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coolesting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fxjson \u4e0d\u7528 R0R\uff0c\u7528\u8f7b\u91cf\u7ea7\u7684\uff0c\u5c0f\u9879\u76ee\u8dd1\u8d77\u6765\u5f88\u723d\uff0c\u3002\u4f46\u56e0\u4e3a\u8bed\u6cd5\u7cd6\u591a\uff0c\u6bcf\u4e2a\u4eba\u90fd\u5199\u4e00\u4e2a\u98ce\u683c\uff0c\u4ee5\u540e\u7ef4\u62a4\u7684\u4eba\u5f88\u5934\u75bc\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e openresty \u5f00\u53d1\u7684 &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\/247132"}],"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=247132"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/247132\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247132"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}