{"id":1101,"date":"2010-05-20T11:41:00","date_gmt":"2010-05-20T03:41:00","guid":{"rendered":"\/?p=1101"},"modified":"2010-05-20T11:41:00","modified_gmt":"2010-05-20T11:41:00","slug":"1101","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/other\/1101.html","title":{"rendered":"XA™\u7684\u65e5\u8bb0 \u8c46\u74e3\u7684\u67b6\u6784"},"content":{"rendered":"
\u8c46\u74e3\u662f\u4e00\u4e2a\u503c\u5f97\u8ba9\u4eba\u656c\u4f69\u7684\u7f51\u7ad9,\u56fd\u5185\u4e3a\u6570\u4e0d\u591a\u7684\u5927\u578b\u7f51\u7ad9\u4e2d,\u5c31\u6280\u672f\u521b\u65b0\u548c\u5206\u4eab\u6765\u8bb2,\u8c46\u74e3\u505a\u7684\u5f88\u4e0d\u9519,\u6211\u4e00\u76f4\u6bd4\u8f83\u5173\u6ce8\u8c46\u74e3.\u8fd9\u662f\u4e00\u7bc7\u8a00\u8c08\u624b\u8bb0\u7c7b\u6587\u7ae0,\u8c46\u74e3\u662f\u4e00\u4e2aPython\u5199\u7684WEB2.0\u7f51\u7ad9,\u5f88\u591a\u5173\u4e8ePython\u4ee5\u53ca\u7f51\u7ad9\u67b6\u6784\u65b9\u9762\u7684\u77e5\u8bc6\u503c\u5f97\u89c1\u8bc6,\u5bf9\u4e8e\u65b0\u624b,Python\u6765\u8bf4.<\/p>\n
\u5173\u952e\u5b57\u5305\u62ec\uff1anginx,lighttpd\uff0cquixote,Memcached,mogile FS,Mako,Gentoo Linux,Xapian,spread<\/p>\n
ps:\u7a83\u4ee5\u4e3a\u7b2c\u4e00\u6bb5\u5173\u4e8e\u8bed\u8a00\u7684\u91c7\u8bbf\uff0c\u76f8\u5f53[csdn]\u5316<\/p>\n
\u4f60\u8981\u662f\u613f\u610f\uff0c\u5c31\u4e70\u4e00\u679d\u4e09\u5757\u94b1\u7684\u73ab\u7470\uff0c\u9001\u7ed9\u6211\u5427\uff0c\u8fd9\u57ce\u5e02\u4e5f\u662f\u602a\u8ba9\u4eba\u4f24\u5fc3\u7684\uff0c\u6211\u60f3\u6b7b\u5fc3\u584c\u5730\u7684\u7231\u4e0a\u4f60”<\/p>\n
\u8fd9\u662f\u4e00\u4e2a\u53eb\u949f\u7ae5\u831c\u7684\u6b4c\u624b\u7684\u6b4c\uff0c\u6211\u5728\u8c46\u74e3\u7f51\u7ad9\u53d1\u73b0\u6709\u4eba\u8bc4\u8bba\uff0c\u624d\u77e5\u9053\u4e86\u8fd9\u9996\u6709\u4e9b\u51c4\u51c9\u7684\u6b4c\u66f2\u3002\u4f60\u51e0\u4e4e\u4e0d\u53ef\u80fd\u4ece\u767e\u5ea6\u7684\u6700\u6d41\u884c\u7684mp3\u7684\u5217\u8868\u4e2d\u627e\u5230\u5b83\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f\u90a3\u4e48\u6709\u540d\uff0c\u4e5f\u8bb8\u662f\u8fd9\u4e2a\u539f\u56e0\uff0c\u5f15\u53d1\u4e86\u6211\u91c7\u8bbf\u8c46\u74e3\u7684\u613f\u671b\u3002\u63a5\u53d7\u6211\u91c7\u8bbf\u7684\u662f\uff0c\u8c46\u74e3\u7f51\u7ad9\u7684\u6280\u672f\u603b\u76d1\u6d2a\u5f3a\u5b81\u5148\u751f\u548c\u4ea7\u54c1\u7ecf\u7406\u5f20\u8d1d\u5b81\u5973\u58eb\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u597d\uff0c\u73b0\u5728\u5f00\u59cb\uff0c\u8c46\u74e3\u662f\u4e00\u4e2a\u975e\u5e38\u8457\u540d\u7684Web2.0\u7f51\u7ad9\uff0c\u4f60\u4eec\u7684\u5f00\u53d1\u8bed\u8a00\u9009\u62e9\u7684\u662fPython\uff0c\u6211\u60f3\u95ee\u7684\u662f\uff0c\u4e3a\u4ec0\u4e48\u9009\u62e9Python\uff1f<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u6211\u4eec\u9009\u62e9Python\u7684\u7406\u7531\u662f\u5b83\u662f\u52a8\u6001\u8bed\u8a00\uff0c\u5177\u6709\u52a8\u6001\u8bed\u8a00\u7684\u4f18\u70b9\uff0c\u6bd4\u5982\u5f00\u53d1\u7279\u522b\u8fc5\u901f\u3002\u6211\u4eec\u505a\u7684\u662f\u4e00\u4e2aWeb2.0\u7684\u7f51\u7ad9\uff0c\u8fd9\u79cd\u7f51\u7ad9\u7684\u7279\u70b9\u5c31\u662falways beta\uff0c\u7528\u6237\u7684\u9700\u6c42\u5728\u968f\u65f6\u53d1\u751f\u53d8\u5316\uff0c\u6211\u4eec\u4e5f\u4e0d\u65ad\u53d1\u73b0\u65b0\u7684\u4ef7\u503c\u3002\u6240\u4ee5\u7f51\u7ad9\u7684\u7ed3\u6784\u548c\u7a0b\u5e8f\u4f1a\u4e0d\u65ad\u53d8\u5316\uff0c\u5982\u679c\u7528Java\u505a\uff0c\u4f60\u7684\u5f00\u53d1\u91cf\u6bd4\u8f83\u5927\uff0c\u4f60\u5c31\u96be\u4ee5\u505a\u51fa\u8fc5\u901f\u5730\u6539\u53d8\u3002Python\u7684\u7279\u70b9\u5c31\u662f\u5f00\u53d1\u8fc5\u901f\uff0c\u4f60\u53ef\u4ee5\u5728\u4e00\u4e24\u4e2a\u5c0f\u65f6\uff0c\u5c31\u505a\u51fa\u4e00\u4e2a\u529f\u80fd\u3002\u6216\u8005\u8bf4\u5df2??\u4e0a\u7ebf\u4e86\uff0c\u7528\u6237\u53cd\u6620\u9700\u8981\u67d0\u4e00\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u6bd4\u8f83\u5feb\u5730\u505a\u51fa\u6765\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u8fd9\u5c31\u662fTDD\uff0c\u654f\u6377\u5f00\u53d1\u7684\u601d\u8def\uff0c\u548c\u4f20\u7edf\u7684\u65b9\u5f0f\u6709\u4e9b\u4e0d\u540c\u3002\u4f46\u662f\u4f1a\u6709\u53e6\u4e00\u65b9\u9762\u7684\u95ee\u9898\uff0cPython\u7684\u7a0b\u5e8f\u5458\u597d\u627e\u5417\uff1f\u5728\u56fd\u5185\u4f1aPython\u7684\u8981\u6bd4\u4f1aJava\u7a0b\u5e8f\u5458\u5c11\u7684\u591a\u3002<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u5bf9\uff0c\u786e\u5b9e\u662f\u3002\u5728\u4e2d\u56fd\u7528Python\u7684\u4eba\u786e\u5b9e\u4e0d\u591a\uff0c\u4e5f\u7ed9\u6211\u4eec\u5bfb\u627e\u5f00\u53d1\u4efb\u4f55\u4eba\u5458\u5e26\u6765\u56f0\u96be\u3002\u4e0d\u8fc7\u4ece\u53e6\u4e00\u65b9\u9762\u8bf4\uff0c\u4e5f\u6709\u597d\u5904\uff0c\u56e0\u4e3a\u6ca1\u6709\u4e00\u4e2a\u5b66\u6821\u53bb\u6559Python\uff0c\u4f1aPython\u7684\u4eba\u90fd\u662f\u81ea\u5df1\u5b66\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u4ed6\u77e5\u9053\u81ea\u5df1\u9700\u8981\u4ec0\u4e48\u6280\u672f\uff0c\u800c\u4e14\u80fd\u591f\u901a\u8fc7\u81ea\u5b66\u638c\u63e1\u5b83\uff0c\u5305\u62ecPython\u7684\u8d44\u6599\u4e2d\u6587\u6bd4\u8f83\u5c11\uff0c\u9700\u8981\u5b66\u4e60\u8005\u63a5\u89e6\u7b2c\u4e00\u624b\u8d44\u6599\uff0c\u8fd9\u90fd\u4f7f\u5f97Python\u7a0b\u5e8f\u5458\u7684\u5e73\u5747\u6c34\u5e73\uff0c\u8981\u6bd4\u4f7f\u7528\u5176\u4ed6\u70ed\u95e8\u8bed\u8a00\u7684\u5e73\u5747\u6c34\u5e73\u8981\u9ad8\u3002\u53e6\u4e00\u65b9\u9762Python\u4e5f\u8d8a\u6765\u8d8a\u6d41\u884c\uff0c\u5728\u56fd\u5916\u6bd4\u8f83\u6d41\u884c\u7684\u52a8\u6001\u8bed\u8a00\u6709Perl,\u548cPython,\u73b0\u5728Python\u5df2\u7ecf\u8d85\u8fc7\u4e86Perl\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u4e0d\u8fc7\uff0c\u5728Web\u5f00\u53d1\u8fd9\u65b9\u9762\u6709\u8bb8\u591a\u9009\u62e9\uff0c\u6bd4\u5982\uff0cJava\uff0c.NET\uff0c\u548cPHP\uff0c\u5728\u8fd9\u4e2a\u683c\u5c40\u91ccPython\u8fd8\u662f\u6bd4\u8f83\u5f31\u52bf\u3002<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u5bf9\uff0c\u5f53\u7136\uff0c\u5b83\u662f\u65b0\u5174\u8bed\u8a00\u3002\u5728\u672a\u6765\uff0c\u6211\u76f8\u4fe1\uff0c\u81f3\u5c11\u5728\u5728Web2.0\u7f51\u7ad9\u5f00\u53d1\u65b9\u9762\uff0c\u5b83\u4f1a\u6709\u81ea\u5df1\u7684\u4e00\u4e2a\u4f4d\u7f6e\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u8fd8\u6709\u95ee\u4e00\u4e2a\u95ee\u9898\uff0cPython\u4e0ePerl\u6bd4\u8f83\u600e\u4e48\u6837\uff1f\u56e0\u4e3aPython\u7684\u9762\u5411\u5bf9\u8c61\u7684\u7279\u6027\u597d\u4e00\u4e9b\uff0c\u4ee3\u7801\u770b\u8d77\u6765\u66f4\u5bb9\u6613\u7406\u89e3\u4e00\u4e9b\u5427\uff0c\u6211\u4ee5\u524d\u662f\u7528 Perl\u5199\u7a0b\u5e8f\u7684\uff0c\u89c9\u5f97Perl\u7684\u7a0b\u5e8f\u4ee3\u7801\u770b\u8d77\u6765\u6bd4\u8f83\u4e71\u3002<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u5bf9\uff0cPerl \u662fwrite once\u98ce\u683c\u7684\uff0c\u4e00\u4e2a\u4eba\u5199\u5b8c\u4e86\uff0c\u8fc7\u4e00\u6bb5\u65f6\u95f4\uff0c\u53ef\u80fd\u81ea\u5df1\u90fd\u4e0d\u80fd\u770b\u61c2\uff0c\u5b83\u786e\u5b9e\u5f88\u5f3a\u5927\uff0c\u4f46\u6bd4\u8f83\u9002\u5408\u5f53\u4f5c\u4e2a\u4eba\u5de5\u5177\u4f7f\u7528\uff0c\u4e0d\u592a\u9002\u5408\u56e2\u961f\u7684\u5f00\u53d1\u3002Python\u7684\u54f2\u5b66\u662f\u89e3\u51b3\u95ee\u9898\u7684\u6700\u597d\u65b9\u5f0f\u53ea\u6709\u4e00\u79cd\uff0c\u8fd9\u6837\u540c\u6837\u7684\u529f\u80fd\uff0c\u6bcf\u4e2a\u4eba\u5199\u51fa\u6765\u7684\u7a0b\u5e8f\u6837\u5b50\u5e94\u8be5\u5dee\u4e0d\u592a\u591a\uff0c\u6bd4\u8f83\u6613\u4e8e\u7406\u89e3\uff0c\u66f4\u9002\u5408\u56e2\u961f\u5f00\u53d1\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898,\uff0c\u6709\u4e00\u79cd\u8bf4\u6cd5\uff0c\u8ba4\u4e3aPython\u6bd4\u8f83\u6162\uff0c\u5728\u6027\u80fd\u65b9\u9762\u4f1a\u4e0d\u4f1a\u6709\u95ee\u9898\uff1f<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u8fd9\u4e2a\u95ee\u9898\u53ef\u4ee5\u5206\u4e24\u4e2a\u65b9\u9762\u8bf4\uff0c\u9996\u5148\uff0c\u8bf4Python\u6162\uff0c\u8fd9\u662f\u548c\u7f16\u8bd1\u8bed\u8a00\u6bd4\uff0c\u6bd4\u5982\u4e0eC,C++\uff0cJava\u6bd4\uff0c\u5728\u52a8\u6001\u8bed\u8a00\u4e2d\uff0c\u5b83\u5e76\u4e0d\u6162\uff0c\u5b83\u6bd4Ruby\u8981\u5feb\uff0c\u5b83\u548cPerl\u6027\u80fd\u76f8\u5f53\u3002\u5982\u679c\u9009\u62e9\u52a8\u6001\u8bed\u8a00\u7684\u8bdd\uff0cPython\u5e76\u4e0d\u662f\u5f88\u6162\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5982\u679c\u505a\u7f51\u7ad9\u5f00\u53d1\uff0c\u8bed\u8a00\u7684\u4e0d\u662f\u901f\u5ea6\u7684\u74f6\u9888\uff0c\u6bd4\u5982\u6211\u628a\u6211\u4eec\u73b0\u5728\u7528Python\u5199\u7684\u7a0b\u5e8f\u5168\u90e8\u7528C\u5199\uff0c\u7a0b\u5e8f\u5f53\u7136\u4f1a\u5feb\u4e00\u70b9\uff0c\u4f46\u662f\u6539\u53d8\u4e0d\u662f\u5f88\u5927\u3002Web\u7f51\u7ad9\u4e00\u822c\u4f1a\u6709\u5f88\u591a\u5bf9IO\u7684\u64cd\u4f5c\uff0c\u6bd4\u5982\u5bf9\u6570\u636e\u5e93\u7684\u8bbf\u95ee\uff0c\u5bf9\u786c\u76d8\u7684\u8bbf\u95ee\u54cd\u5e94\u7528\u6237\u7684\u8bf7\u6c42\uff0c80%\uff0c90%\u4f60\u7684\u65f6\u95f4\u90fd\u82b1\u5728IO\u4e0a\uff0c\u8bed\u8a00\u7684\u901f\u5ea6\uff0c\u76f8\u5bf9\u800c\u8a00\uff0c\u4e0d\u662f\u90a3\u4e48\u91cd\u8981\u3002\u4e5f\u53ef\u4ee5\u8fd9\u6837\u8bf4\uff0c\u7f51\u7ad9\u7684\u6027\u80fd\u4e3b\u8981\u53d6\u51b3\u4e8e\u67b6\u6784\u8bbe\u8ba1\u7684\u662f\u5426\u5408\u7406\u3002\u56e0\u4e3a\u7f51\u7ad9\u9700\u8981\u54cd\u5e94\u5927\u91cf\u7684\u5e76\u53d1\u7684\u8bf7\u6c42\uff0c\u5982\u679c\u4f60\u7684\u8bbe\u8ba1\u7684\u4e0d\u597d\uff0c\u5373\u4f7f\u4f60\u7528C\u5199\u7684\uff0c\u4e5f\u53ef\u80fd\u65e0\u6cd5\u5e94\u4ed8\u3002\u6240\u4ee5\u66f4\u591a\u7684\u8003\u8651\u662f\u5728\u67b6\u6784\u8bbe\u8ba1\u4e0a\uff0c\u8981\u4f7f\u67b6\u6784\u4f53\u7cfb\u4e0d\u4f1a\u4ea7\u751f\u901f\u5ea6\u74f6\u9888\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u90a3\u60a8\u80fd\u7b80\u8981\u5730\u4ecb\u7ecd\u4e00\u4e0b\u8c46\u74e3\u7684\u67b6\u6784\u5417\uff1f<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a\u5173\u4e8e\u8c46\u74e3\u7684\u7cfb\u7edf\u67b6\u6784\u56fe\uff0c\u9996\u5148\u6211\u4eec\u5728Web server\u4e0a\u505a\u4e2a\u5212\u5206\uff0c\u628a\u7f51\u7ad9\u5185\u5bb9\u5206\u4e3a\u52a8\u6001\u5185\u5bb9\u548c\u9759\u6001\u5185\u5bb9\u3002\u5728\u8c46\u74e3\u4e0a\u6240\u6709\u7684html\u90fd\u662f\u52a8\u6001\u5185\u5bb9\uff0c\u56fe\u7247\u90fd\u662f\u9759\u6001\u5185\u5bb9\u3002\u5206\u6210\u4e24\u4e2aWeb \u670d\u52a1\u53ef\u4ee5\u505a\u4e0d\u540c\u7684\u8c03\u4f18\u3002 \u5bf9\u52a8\u6001\u5185\u5bb9\uff0c\u6211\u4eec\u7528\u7684\u662fnginx\u548clighttpd\u7684\u6df7\u5408\uff0cnginx\u505a\u8d1f\u8f7d\u7684\u5e73\u8861\uff0clighttpd\u901a\u8fc7 SCGi \u4e0eapplication server\u76f8\u8fde\uff0capplication server\u662f\u57fa\u4e8e quixote\u8fd9\u4e2a\u6846\u67b6\u5199\u7684\u3002<\/p>\n
application server\u62ff\u5230\u7528\u6237\u7684\u8bf7\u6c42,\u5206\u6790\u7528\u6237\u7684url\uff0c\u5e76\u4e14\u5229\u7528\u5916\u90e8\u7684\u8d44\u6e90\uff0c\u6bd4\u5982\u6570\u636e\u5e93\uff0c\u7ec4\u5408\u6210\u4e00\u4e2ahtml\uff0c\u8fd4\u56de\u3002\u4ece\u6570\u636e\u5e93\u5b58\u53d6\u4f1a\u6bd4\u8f83\u6162\uff0c\u6570\u636e\u5e93\u6709\u5927\u91cf\u7684IO\uff0c\u6211\u4eec\u4f7f\u7528cache,\u6211\u4eec\u4f7f\u7528\u7684\u662fMemcached,\u8fd9\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7684\u5185\u5b58\u7684cache\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u7528\u5f88\u591a\u673a\u5668\uff0c\u6bcf\u4e2a\u673a\u5668\u6709\u4e24\u4e2aG\u7684\u5185\u5b58\uff0c\u6211\u4eec\u81ea\u5df1\u5f00\u53d1\u4e86client\u7aef\u6765\u4f7f\u7528\u5b83\uff0c\u53e6\u5916\u5982\u679c\u7528\u6237\u6709\u641c\u7d22\u8bf7\u6c42\uff0c\u6211\u4eec\u4f1a\u7528\u641c\u7d22\u5f15\u64ce\u3002Xapian\u662f\u4e00\u4e2aC++\u5199\u7684\u5f00\u6e90\u7684\u641c\u7d22\u5f15\u64ce\uff0c\u6211\u4eec\u901a\u8fc7Web service\u53bb\u8bbf\u95ee\u5b83\u3002\u5176\u4ed6\uff0c\u6211\u4eec\u8fd8\u63d0\u4f9b\u4e86\u53e6\u5916\u7684Web service\u63a5\u53e3\u54cd\u5e94\u7528\u6237\u7684\u8bf7\u6c42\uff0c\u6bd4\u5982\u8981\u8bbf\u95ee\u67d0\u4e2a\u6587\u4ef6\u3002spread\u662f\u6211\u4eec\u6700\u8fd1\u52a0\u4e86\u4e00\u90e8\u5206\uff0c\u7528\u6237\u6709\u7684\u8bf7\u6c42\u53ef\u4ee5\u91c7\u7528\u8fd9\u6837\u7684\u5f02\u6b65\u670d\u52a1\u3002<\/p>\n
\u6570\u636e\u5e93\u662f\u8fd9\u6837\u7684\uff0c\u4e24\u4e2aMySQL\u505a\u6210\u4e00\u5bf9\uff0c\u4e00\u4e2amaster \uff0c\u4e00\u4e2a slave\uff0c\u6839\u636e\u5e94\u7528\u5212\u5206\uff0c\u4f7f\u5f97load\u4e0d\u4f1a\u592a\u9ad8\u3002\u8fd9\u4e2a\u56fe\u4e0a??\u7684\u662f\u4e24\u5bf9\uff0c\u5b9e\u9645\u4e0a\u6709\u4e09\u5bf9\u3002\u8fd8\u6709\u4e00\u4e2aslave,\u4e00\u65b9\u9762\u4f5c\u4e3a\u5907\u4efd\uff0c\u4e00\u65b9\u9762\u7528\u4f5c\u6570\u636e\u6316\u6398\uff0c\u56e0\u4e3a\u4e0d\u80fd\u5bf9\u7ebf\u4e0a\u7684\u6570\u636e\u505a\u76f4\u63a5\u64cd\u4f5c\u3002<\/p>\n
\u5bf9\u4e8e\u9759\u6001\u90e8\u5206\uff0c\u6211\u4eec\u4e5f\u662f\u7528nginx\uff0c\u4f60\u6ce8\u610f\u5230\u8c46\u74e3\u73b0\u5728\u6709\u65e5\u8bb0\u7684\u8d34\u56fe\u529f\u80fd\u7cfb\u7edf\uff0c\u7528\u6237\u53ef\u80fd\u4e0a\u4f20\u5f88\u591a\u56fe\u7247\uff0c\u6211\u4eec\u91c7\u7528\u7684\u65b9\u6848\u662f\u7528\u4e86mogile FS \uff0c\u8fd9\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u540c\u65f6\u53ef\u4ee5\u505a\u5907\u4efd\uff0c\u4fdd\u6301\u9ad8\u53ef\u7528\u6027\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5f88\u5927\u7684IO\u3002<\/p>\n
\u5173\u4e8eapplication server\uff0c\u5b83\u90fd\u662f\u7528Python\u5199\u7684\u3002\u6211\u4eec\u662f\u7528\u7684MVC\u65b9\u5f0f\uff0cController\u6211\u4eec\u7528\u7684\u662fquixote \uff0c\u5b83\u63a5\u53d7\u7528\u6237\u7684\u8bf7\u6c42\uff0c\u6839\u636e\u8fd9\u4e2aURL\u53bb\u627e\u5230Model\u7684\u67d0\u4e2a\u5177\u4f53\u7684\u51fd\u6570\u6765\u6267\u884c\uff0c\u5b83\u662f\u4e00\u4e2adispatcher\uff0c\u5f53\u4e2d\u4f1a\u5224\u65ad\u7528\u6237\u7684\u6743\u9650\u7b49\u3002\u7136\u540e\u518d\u4f20\u7ed9View\uff0cView\u6839\u636e\u6a21\u7248\u8fdb\u884c\u6e32\u67d3\uff0c\u5f62\u6210\u7f51\u9875\u3002View\u7684\u6a21\u7248\uff0c\u6211\u4eec\u4ee5\u524d\u662f\u7528\u7684\u662fPTL\uff0cPTL\u5f88\u9ad8\u6548\uff0c\u6700\u8fd1\u5f15\u7528\u4e86mako\uff0c\u8fd9\u662f\u4e00\u4e2a\u6bd4\u8f83\u73b0\u4ee3\u7684\u5f00\u6e90\u7684\u6a21\u7248\uff0c\u7528\u5b83\u5199\u51fa\u7684\u4ee3\u7801\u6bd4\u8f83\u597d\u7ef4\u62a4\uff0c\u6bd4PTL\u597d\u7ef4\u62a4\u4e00\u4e9b.\u3002\u540c\u65f6\uff0c\u5728\u4f7f\u7528mako\u7684\u540c\u65f6\uff0c\u6211\u4eec\u7684\u5de5\u7a0b\u5e08\u505a\u4e86\u5f88\u591a\u52a0\u901f\u7684\u5de5\u4f5c\uff0c\u73b0\u5728mako\u7684\u4ee3\u7801\u6709\u5f88\u591a\u662f\u8c46\u74e3\u7684\u4eba\u5199\u7684\u3002<\/p>\n
\u4f60\u5982\u679c\u6ce8\u610f\u8fc7Python\u7684Web\u5f00\u53d1\u6846\u67b6\u7684\u8bdd\uff0c\u4f60\u4f1a\u53d1\u73b0Python\u7684\u6709\u4e09\u4e2a\u6bd4\u8f83\u8457\u540d\u7684\u6846\u67b6\uff0cDjango\uff0cPylons\uff0cTurboGears\uff0cPylons\u9ed8\u8ba4\u7684\u6a21\u7248\u5c31\u662fMako\u3002<\/p>\n
\u4e0b\u9762\u7684\u5c31\u662fModel\uff0c\u4e1a\u52a1\u6a21\u5757\uff0c\u6838\u5fc3\u662f\u7c7b\u662fUser\uff0c\u56e0\u4e3aWeb2.0\u662f\u4ee5\u4eba\u4e3a\u672c\uff0c\u6211\u4eec\u80af\u5b9a\u4f1a\u6709\u4e00\u4e2aUser\u3002\u53ea\u6709\u4eba\u4e5f\u505a\u4e0d\u4e86\u4e8b\u60c5\uff0c\u8fd8\u8981\u6709\u7269\u3002\u8c46\u74e3\u7684\u7269\uff0c\u5c31\u662fSubject\uff0c\u6bd4\u5982\u4e66\uff0c\u6bd4\u5982\u8bc4\u8bba\uff0c\u6bd4\u5982\u5c0f\u7ec4\u7b49\u3002<\/p>\n
\u4e0e\u6570\u636e\u5e93\u8fdb\u884c\u94fe\u63a5\uff0c\u6211\u4eec\u4e00\u4e2a\u5f88\u8f7b\u91cf\u7ea7\u7684\u4e0e\u6570\u636e\u5e93\u8fdb\u884c\u94fe\u63a5\uff0c\u8fd9\u4e5f\u662f\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0cSQL Farm Manager\u3002\u8fd9\u4e2aWeb service\uff0c\u8c46\u74e3\u4e2d\u6709\u5f88\u591a\u7528\u7684\u90fd\u662fWeb service\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u597d\uff0c\u8fd8\u60f3\u95ee\u60a8\u4e00\u4e2a\u95ee\u9898\uff0cWeb2.0\u4f1a\u4e0d\u4f1a\u4e5f\u5728\u67b6\u6784\u8bbe\u8ba1\u4e2d\u4e5f\u6709\u6240\u4f53\u73b0\u5462 \uff1f<\/p>\n
\u6d2a\u5f3a\u5b81\uff1a Web2.0\u7528\u6237\u7684\u53cd\u590d\u7684\u64cd\u4f5c\u975e\u5e38\u591a\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u975e\u5e38\u6d41\u7545\u7684\u4f53\u73b0\u3002\u8fd9\u9700\u8981\u4e00\u4e9b\u6280\u672f\u6765\u5b9e\u73b0\uff0c\u6bd4\u5982Ajax\uff1b\u8c46\u74e3\u82b1\u4e86\u5f88\u591a\u94b1\u5f88\u591a\u7cbe\u529b\uff0c\u6765\u63d0\u9ad8\u6027\u80fd\uff0c\u6bd4\u5982\u4e70\u597d\u7684\u673a\u5668\uff0c\u4f7f\u7528Gentoo Linux\uff0c\u4e3a\u4ec0\u4e48\u4f7f\u7528Gentoo Linux\uff0c\u56e0\u4e3a\u5b83\u65b9\u4fbf\u8c03\u4f18\u3002\u8fd8\u6709\uff0c\u5927\u91cf\u7684\u4f7f\u7528cache\u3002\u5728\u6570\u636e\u5e93\u8c03\u4f18\u65b9\u9762\uff0c\u6211\u4eec\u4e5f\u82b1\u4e86\u5f88\u5927\u7684\u7cbe\u529b\u3002<\/p>\n
\u53e6\u4e00\u65b9\u9762\uff0cWeb 2,0\u662f\u7528\u6237\u63d0\u4f9b\u6570\u636e\u7684\uff0c\u7528\u6237\u6709\u5f88\u591a\u5199\u64cd\u4f5c\u3002\u8fd9\u6837\u5f88\u591a1.0\u4f18\u5316\u65b9\u6cd5\u57282.0\u4e2d\u884c\u4e0d\u901a\u3002\u8c46\u74e3\u5728\u6570\u636e\u5e93\u4e0a\u7528\u7684\u662f\u5206\u5e93\u7684\u65b9\u5f0f\u3002\u9664\u6b64\u4e4b\u5916\u6211\u4eec\u8fd8\u5c1d\u8bd5\u4e86\u4e00\u4e9b\u5176\u4ed6\u7684\u65b9\u6cd5\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u6211\u73b0\u5728\u60f3\u95ee\u5f20\u8d1d\u5b81\u4e00\u4e2a\u95ee\u9898\uff0c\u60a8\u80fd\u5426\u8c08\u4e00\u4e0bWeb2.0\u793e\u533a\u7f51\u7ad9\u548c\u4f20\u7edf\u7684\u793e\u533a\u7f51\u7ad9\u7684\u533a\u522b\uff1f\u6bd4\u5982\u5929\u6daf\u8bba\u575b\uff0c\u548c\u8c46\u74e3\u7684\u533a\u522b\u3002<\/p>\n
\u5f20\u8d1d\u5b81\uff1a\u5148\u8bf4\u4e00\u4e0bWeb 2.0 \u7684\u6982\u5ff5\uff0c\u4f20\u7edf\u7f51\u7ad9\uff0c\u7528\u6237\u5230\u8fd9\u4e9b\u7f51\u7ad9\uff0c\u53ea\u662f\u770b\u4fe1\u606f\uff0c\u8fd9\u4e9b\u4fe1\u606f\u662f\u600e\u4e48\u6765\u7684\u5462\uff0c\u6bd4\u5982\u50cfGoogle,\u5b83\u662f\u6293\u6765\u7684\uff0c\u6216\u8005\u50cf\u65b0\u6d6a\u8fd9\u6837\u7684\u95e8\u6237\u7f51\u7ad9\uff0c\u662f\u7528\u6237\u7ed9\u4f60\u7f16\u597d\u7684\u3002\u4f60\u5230\u8fd9\u6837\u7684\u7f51\u7ad9\uff0c\u53ea\u662f\u83b7\u53d6\u4fe1\u606f\uff0c\u4f60\u4e0d\u80fd\u521b\u9020\u4fe1\u606f\uff0c\u4e5f\u4e0d\u80fd\u51b3\u5b9a\u5b83\u653e\u7684\u4f4d\u7f6e\u3002\u6309\u7167\u4e1a\u754c\u7684\u7406\u89e3\uff0cWeb 2.0\u76f8\u5bf9\u4e8eWeb 1.0\uff0c\u5b83\u662f\u4ee5\u7528\u6237\u4e3a\u4e2d\u5fc3\u7684\uff0c\u6216\u8005\u8bf4\u662f\u4ee5\u7528\u6237\u521b\u9020\u5185\u5bb9\u4e3a\u4e3b\uff0c\u5e76\u4e14\u53ef\u4ee5\u51b3\u5b9a\u5c55\u73b0\u65b9\u5f0f\u3002\u4f60\u521a\u624d\u8bf4\u7684\u4f20\u7edf\u7684\u793e\u533a\uff0c\u5728\u67d0\u79cd\u7a0b\u5ea6\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u8bf4\u662f2.0\u7684\uff0c\u56e0\u4e3a\u5b83\u4e5f\u7531\u7528\u6237\u63d0\u4f9b\u5185\u5bb9\u3002\u4e0d\u8fc7\u65e9\u671f\u7684BBS\uff0c\u7f51\u7ad9\u4ee5\u5185\u5bb9\u4f5c\u5206\u7c7b\uff0c\u6bd4\u5982\u4f53\u80b2\uff0c\u519b\u4e8b\uff0c\u6587\u5b66\u7b49\u3002\u7528\u6237\u4e0d\u80fd\u5f62\u6210\u81ea\u5df1\u7684\u5206\u7c7b\u3002\u5728\u8c46\u74e3\uff0c\u7528\u6237\u53ef\u4ee5\u5bf9\u4efb\u4f55\u4e00\u4e2a\u8bdd\u9898\u8fdb\u884c\u8ba8\u8bba\uff0c\u8fd9\u5b8c\u5168\u662f\u7528\u6237\u81ea\u4e3b\u7684\u3002\u8fd9\u8fd8\u53ea\u662f\u5173\u7cfb\u5230\u8c46\u74e3\u7684\u5c0f\u7ec4\u7684\u529f\u80fd\uff0c\u5982\u679c\u62ff\u5929\u6daf\u8bba\u575b\u548c\u8c46\u74e3\u505a\u6bd4\u8f83\u7684\u8bdd\uff0c\u8c46\u74e3\u4e0e\u5929\u6daf\u8fd9\u6837\u7684BBS\u4e0d\u540c\u8fd8\u5728\u4e8e\uff0c\u5b83\u9996\u5148\u6709\u4e00\u4e2a\u7269\u7684\u6982\u5ff5\uff0c\u6bd4\u5982\u4e66\uff0c\u97f3\u4e50\uff0c\u548c\u7535\u5f71\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u6211\u4e5f\u53d1\u73b0\u4e86\u8fd9\u70b9\u3002\u8fd9\u6837\u7684\u7ec4\u7ec7\u65b9\u5f0f\uff0c\u7ed9\u4eba\u7684\u611f\u89c9\u4f1a\u975e\u5e38\u4e0d\u540c\u3002\u6bd4\u5982\u6211\u4eec\u8981\u67e5\u627e\u5bf9\u4f59\u534e\u7684\u5c0f\u8bf4\u300a\u6d3b\u7740\u300b\u7684\u8bc4\u8bba\uff0c\u5728\u8c46\u74e3\u5c31\u6bd4\u8f83\u5bb9\u6613\u627e\u5230\u8ba4\u771f\uff0c\u6709\u8d28\u91cf\u7684\u8bc4\u8bba\u3002\u800c\u5728\u4f20\u7edf\u7684BBS\u4e0a\uff0c\u4f60\u53ea\u80fd\u7528\u67e5\u627e\u7684\u65b9\u5f0f\uff0c\u641c\u7d22“\u6d3b\u7740”\u8fd9\u4e2a\u8bcd\uff0c\u627e\u51fa\u7684\u4e1c\u897f\uff0c\u4e5f\u53ef\u80fd\u8fd8\u4e0d\u662f\u8c08\u8bba\u300a\u6d3b\u7740\u300b\u8fd9\u672c\u5c0f\u8bf4\u7684\uff0c\u800c\u53ea\u662f\u5176\u4e2d\u7684\u6587\u672c\u5305\u542b\u4e86“\u6d3b\u7740”\u8fd9\u4e2a\u8bcd\uff0c\u800c\u4e14\u6709\u5f88\u591a\u65e0\u610f\u4e49\u7684\u5435\u67b6\u5e16\u3002\u8c46\u74e3\u7684\u7ec4\u7ec7\u65b9\u5f0f\uff0c\u8ba9\u4eba\u611f\u89c9\u5f88\u4e25\u8083\uff0c\u96c5\u6c14\u3002\u4e0d\u8fc7\uff0c\u6211\u4e5f\u53d1\u73b0\u4e86\u4e00\u4e2a\u6216\u8bb8\u6709\u4e9b\u4e0d\u4fbf\u7684\u5730\u65b9\uff0c\u6bd4\u5982\uff0c\u6211\u8981\u5728\u8ba8\u8bba\u5fb7\u91cc\u8fbe\u7684\u5c0f\u7ec4\u56de\u5e16\uff0c\u5728\u4e00\u822c\u7684BBS\u53ef\u4ee5\u533f\u540d\uff0c\u6216\u5177\u6709\u4e00\u4e2aID\u5c31\u884c\u4e86\uff0c\u4f46\u5728\u8c46\u74e3\uff0c\u6211\u8981\u9996\u5148\u53c2\u52a0\u5fb7\u91cc\u8fbe\u8fd9\u4e2a\u5c0f\u7ec4\u3002<\/p>\n
\u5f20\u8d1d\u5b81\uff1a\u5bf9\uff0c\u662f\u8fd9\u6837\u7684\u3002\u8c46\u74e3\u66f4\u5173\u5fc3\u7684\u662f\u4eba\u7fa4\uff0c\u5c31\u662f\u5bf9\u540c\u4e00\u8bdd\u9898\u548c\u4e8b\u7269\u6709\u5174\u8da3\u7684\u4eba\u7fa4\uff0c\u800c\u4e0d\u662f\u5e16\u5b50\uff0c\u8fd9\u4e0e\u4f20\u7edf\u7684BBS\u786e\u5b9e\u6709\u4e00\u4e9b\u533a\u522b\u3002<\/p>\n
\u672c\u520a\u8bb0\u8005\uff1a\u597d\uff0c\u5c31\u5230\u8fd9\u91cc\u3002\u8c22\u8c22\u4f60\u4eec\u4e24\u4f4d\u80fd\u591f\u63a5\u53d7\u6211\u7684\u91c7\u8bbf\uff0c\u5206\u4eab\u4f60\u4eec\u7684\u7ecf\u9a8c\u4e0e\u601d\u60f3\u3002<\/p>\n
\u539f\u6587:<\/strong>http:\/\/www.douban.com\/note\/29557381\/<\/p>\n","protected":false},"excerpt":{"rendered":" \u8c46\u74e3\u662f\u4e00\u4e2a\u503c\u5f97\u8ba9\u4eba\u656c\u4f69\u7684\u7f51\u7ad9,\u56fd\u5185\u4e3a\u6570\u4e0d\u591a\u7684\u5927\u578b\u7f51\u7ad9\u4e2d,\u5c31\u6280\u672f\u521b\u65b0\u548c\u5206\u4eab\u6765\u8bb2,\u8c46\u74e3\u505a\u7684\u5f88\u4e0d\u9519,\u6211\u4e00\u76f4\u6bd4\u8f83\u5173\u6ce8\u8c46\u74e3.\u8fd9\u662f\u4e00\u7bc7\u8a00\u8c08\u624b\u8bb0\u7c7b\u6587\u7ae0,\u8c46\u74e3\u662f\u4e00\u4e2aPython\u5199\u7684WEB2.0\u7f51\u7ad9,\u5f88\u591a\u5173\u4e8ePython\u4ee5\u53ca\u7f51\u7ad9\u67b6\u6784\u65b9\u9762\u7684\u77e5\u8bc6\u503c\u5f97\u89c1\u8bc6,\u5bf9\u4e8e\u65b0\u624b,Python\u6765\u8bf4.<\/p>\n \u5173\u952e\u5b57\u5305\u62ec\uff1anginx,lighttpd\uff0cquixote,Memcached,mogile FS,Mako,Gentoo Linux,Xapian,spread<\/p>\n ps:\u7a83\u4ee5\u4e3a\u7b2c\u4e00\u6bb5\u5173\u4e8e\u8bed\u8a00\u7684\u91c7\u8bbf\uff0c\u76f8\u5f53[csdn]\u5316<\/p>\n \u4f60\u8981\u662f\u613f\u610f\uff0c\u5c31\u4e70\u4e00\u679d\u4e09\u5757\u94b1\u7684<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1101"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1101"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1101\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}