{"id":223819,"date":"2012-06-22T11:41:30","date_gmt":"2012-06-22T03:41:30","guid":{"rendered":"http:\/\/blog.yangzhe1991.org\/?p=223819"},"modified":"2014-03-14T20:02:36","modified_gmt":"2014-03-14T12:02:36","slug":"nodejs","status":"publish","type":"post","link":"https:\/\/yangzhe1991.org\/blog\/2012\/06\/nodejs\/","title":{"rendered":"\u73a9\u4e86\u4e0bnodejs"},"content":{"rendered":"<p>\u4e00\u76f4\u60f3\u73a9\u73a9nodejs\uff0c\u4f46\u6ca1\u6240\u8c13\u7684\u9700\u6c42\u3002\u6628\u5929\u7a81\u7136\u60f3\u5230<a href=\"http:\/\/www.matrix67.com\">matrix67\u9996\u9875<\/a>\u4e0a\u90a3\u4e2a\u70b9\u9635\u633a\u597d\u73a9\u7684\uff0c\u53ef\u4ee5\u968f\u4fbf\u70b9\uff0c\u6240\u6709\u4eba\u662f\u540c\u6b65\u7684\uff0c\u524d\u53f0\u5f53\u7136\u662fjs\uff0c\u540e\u53f0\u5176\u5b9enodejs\u5199\u8fd9\u4e2a\u5f88\u65b9\u4fbf\u3002\u4e8e\u662f\u5c31<a href=\"http:\/\/yangzhe1991.org\">\u5c71\u5be8\u6210\u4e86\u8fd9\u4e2a\u6837\u5b50<\/a>\u3002<\/p>\n<p><!--more--><\/p>\n<p>nodejs\u5230\u5e95\u9002\u5408\u5e72\u5565\u6211\u4e5f\u4e0d\u77e5\u9053\uff0c\u8ddfphp+nginx\/httpd\u6bd4\u4f18\u52bf\u5728\u54ea\u6211\u4e5f\u4e0d\u77e5\u9053\u3002\u4f3c\u4e4ejs\u7684\u51fd\u6570\u5f0f\u7f16\u7a0b\u7b97\u4f18\u52bf\uff1f\u4f46\u603b\u89c9\u5f97js\u5e76\u4e0d\u7b97\u4e00\u4e2a\u8bbe\u8ba1\u7684\u5f88\u597d\u7684\u8bed\u8a00\u3002nodejs\u53ef\u4ee5\u7406\u89e3\u4e3a\u6574\u4e2a\u7a0b\u5e8f\u65e2\u662f\u670d\u52a1\u5668\u53c8\u6709\u4e1a\u52a1\u903b\u8f91\uff0c\u8fd9\u6837\u9020\u6210\u8fd9\u4e2a\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u53d8\u91cf\u662f\u6240\u6709\u8bbf\u95ee\u5171\u4eab\u7684\uff0c\u76f8\u5f53\u4e8e\u4e00\u4e2amemcached\uff1f\u4e5f\u8bb8\u6548\u7387\u7565\u4f4e\uff1f\u53cd\u6b63\u70b9\u683c01\u6570\u636e\u6ca1\u5fc5\u8981\u5b58\u5728\u6570\u636e\u5e93\uff0cmemcached\u663e\u7136\u4e5f\u6ca1\u8fd9\u4e2a\u65b9\u4fbf\u3002\u4f46\u56e0\u4e3a\u662f\u72ec\u7acb\u7684\u670d\u52a1\u5668\uff0c\u5fc5\u987b\u7ed1\u5b9a\u5230\u8ddf80\u4e0d\u4e00\u6837\u7684\u7aef\u53e3\uff0c\u4e8e\u662f\u5f00\u59cb\u8c03\u4e86\u534a\u5929$.get\u6216\u8005$.ajax\u90fd\u4e0dsuccess\uff0c\u540e\u6765\u641c\u4e86\u534a\u5929\u604d\u7136\u5927\u609flocalhost\u548clocalhost:8080\u7b97\u8de8\u57df\u2026\u2026\u636e\u8bf4jquery\u4e5f\u6709\u8de8\u57df\u7684\u65b9\u6cd5\uff0c\u6ca1\u7814\u7a76\u2026\u2026\u53cd\u6b63\u6628\u665a\u6211\u7684\u89e3\u51b3\u65b9\u6848\u662f\u628ahtml\u8f7d\u5165\u5230nodejs\u4e2d\u76f4\u63a5\u75288080\u7aef\u53e3binary\u5730\u8fd4\u56dehtml\uff0c\u7136\u540e\u56e0\u4e3a\u61d2\u5f97\u518d\u5355\u72ec\u5199\u8fd4\u56dejquery.js\u6587\u4ef6\u7684\u90e8\u5206\uff0c\u6240\u4ee5\u76f4\u63a5\u628a\u6574\u4e2ajquery.js\u590d\u5236\u5230html\u91cc\u90fd\u7531nodejs\u4e00\u6b21\u6027\u8fd4\u56de\u2026\u2026<\/p>\n<p>\u4ece\u6548\u7387\u4e0a\u770b\uff0c\u5bbe\u9986\u7f51\u901f\u592a\u6e23\uff0c\u4e0d\u77e5\u9053\u76f8\u5e94\u5feb\u4e0d\u5feb\u3002\u5f53\u7136\u8ddf\u5ec9\u4ef7VPS\u4e5f\u6709\u5173\u7cfb\u3002\u603b\u4f53\u4e0a\u8fd8\u662f\u80fd\u63a5\u53d7\u7684\u3002\u6ca1\u5199\u81ea\u52a8\u5237\u65b0\uff0c\u867d\u7136\u5c31\u4e00\u884c\u4ee3\u7801\uff0c\u4f46\u662f\u592a\u61d2\u3002\u3002\u53cd\u6b63\u540c\u65f6\u5728\u7ebf\u7684\u4eba\u4e0d\u4f1a\u5f88\u591a\uff0c\u800c\u4e14\u968f\u4fbf\u70b9\u4e00\u4e2a\u683c\u5b50\u6240\u6709\u683c\u5b50\u5c31\u90fd\u80fd\u540c\u6b65\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u60f3\u73a9\u73a9nodejs\uff0c\u4f46\u6ca1\u6240\u8c13\u7684\u9700\u6c42\u3002\u6628\u5929\u7a81\u7136\u60f3\u5230matrix67\u9996\u9875\u4e0a\u90a3\u4e2a\u70b9\u9635\u633a\u597d\u73a9\u7684\uff0c\u53ef\u4ee5\u968f\u4fbf\u70b9\uff0c\u6240\u6709\u4eba [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/posts\/223819"}],"collection":[{"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/comments?post=223819"}],"version-history":[{"count":1,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/posts\/223819\/revisions"}],"predecessor-version":[{"id":224647,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/posts\/223819\/revisions\/224647"}],"wp:attachment":[{"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/media?parent=223819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/categories?post=223819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangzhe1991.org\/blog\/wp-json\/wp\/v2\/tags?post=223819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}