{"id":1622,"date":"2014-06-28T12:27:49","date_gmt":"2014-06-28T04:27:49","guid":{"rendered":"http:\/\/doophp.sinaapp.com\/?p=1622"},"modified":"2015-07-31T10:51:04","modified_gmt":"2015-07-31T02:51:04","slug":"osx-php-mongdb-memcache-redis-client","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/php\/osx-php-mongdb-memcache-redis-client.html","title":{"rendered":"OS X \u7cfb\u7edfPHP 5.5.9 \u7684 MongoDB\u3001Memcache\u3001Redis\u5ba2\u6237\u7aef\u6a21\u5757\u5206\u4eab"},"content":{"rendered":"

\u6362\u4e0aMacBook Pro\u540e\u7b2c\u4e00\u4ef6\u4e8b\u60c5\u5c31\u662f\u5b89\u88c5\u5de5\u4f5c\u73af\u5883\u4e86\uff0cPHP\u7cfb\u7edf\u73af\u5883\u8fd8\u662f\u9009\u62e9\u4e86XAMPP\uff0c\u76f4\u63a5\u6709\u73b0\u6210\u7684OSX\u5b89\u88c5\u5305\u76f8\u5f53\u65b9\u4fbf\u767e\u5ea6\u5df2\u7ecf\u505a\u4e86\u6700\u65b0\u7248\u672c\u7684\u5206\u53d1\uff0c\u4e0b\u8f7d\u5730\u5740\u5728\u8fd9\u91cc XAMPP For OSX<\/a><\/p>\n

\u96c6\u6210\u73af\u5883\u7684PHP\u7248\u672c\u4e3aPHP5.5.9\uff0cMongoDB\u3001Redis\u3001Memcache\u5ba2\u6237\u7aef\u7684PHP\u6a21\u5757\u6ca1\u627e\u5230\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u7f16\u8f91\uff0c\u4e0b\u9762\u662f\u672c\u4eba\u81ea\u5df1\u5b89\u88c5\u7f16\u8f91\u7684so\u6587\u4ef6\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u4e0b\u8f7d\u76f4\u63a5\u4f7f\u7528\uff08\u7406\u8bba\u4e0a\u76f8\u540c\u7248\u672c\u7684PHP\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\uff0c\u6ca1\u6709\u6d4b\u8bd5\u6b22\u8fce\u53cd\u9988\uff09<\/p>\n

mongo.so<\/a>
\n
redis.so<\/a>
\n
memcache.so<\/a><\/p>\n

\u539f\u6587\u4ef6\u5728\u8fd9\u91cc\uff0c\u76f4\u63a5\u4f7f\u7528\u4e0d\u6210\u529f\u7684\u53ef\u4ee5\u4e0b\u8f7d\u7f16\u8bd1\uff0c\u6211\u5728\u7f16\u8bd1\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230\u8fc7\u4e00\u4e9b\u5c0f\u95ee\u9898\uff0c\u6709\u4e2a\u522b\u51fa\u73b0Waring\u63d0\u793a\uff0c\u4f46\u662f\u7f16\u8bd1\u901a\u8fc7\u4e86\u6211\u505a\u4e86\u5ffd\u7565\u5904\u7406\u3002\u5176\u4ed6\u5982\u679c\u51fa\u73b0\u81f4\u547d\u9519\u8bef\u505c\u6b62\u7f16\u8bd1\u7684\u60c5\u51b5\u4e0b\u5efa\u8bae\u6362\u7528\u6700\u65b0\u7248\u672c\u7684<\/p>\n

mongo1.5.2-for-php5.5.9.tgz<\/a>
\n
redis-2.2.5-for-php5.5.9.tgz<\/a>
\n
memcache-3.0.8-for-php5.5.9.tgz<\/a><\/p>\n

\u5982\u679c\u4e0b\u8f7d\u7684\u62d3\u5c55\u4e0d\u53ef\u7528\u5efa\u8bae\u5927\u5bb6\u53c2\u8003\u300eOSX\u7cfb\u7edf\u4e0b\u9762\u7f16\u8bd1PHP\u7684memcache\u7b49\u5ba2\u6237\u7aef\u6269\u5c55<\/a>\u300f\u81ea\u5df2\u8bd5\u7740\u7f16\u8bd1\u5b89\u88c5<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6362\u4e0aMacBook Pro\u540e\u7b2c\u4e00\u4ef6\u4e8b\u60c5\u5c31\u662f\u5b89\u88c5\u5de5\u4f5c\u73af\u5883\u4e86\uff0cPHP\u7cfb\u7edf\u73af\u5883\u8fd8\u662f\u9009\u62e9\u4e86XAMPP\uff0c\u76f4\u63a5\u6709\u73b0\u6210\u7684OS […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[121,9],"tags":[123,74,122,97,124],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1622"}],"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=1622"}],"version-history":[{"count":7,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1622\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1622\/revisions\/1625"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}