{"id":17,"date":"2015-11-20T16:42:15","date_gmt":"2015-11-20T08:42:15","guid":{"rendered":"https:\/\/blog.espnlol.com\/?p=17"},"modified":"2015-11-20T16:48:19","modified_gmt":"2015-11-20T08:48:19","slug":"php%e5%ae%89%e8%a3%85xcache%e5%8a%a0%e9%80%9f","status":"publish","type":"post","link":"https:\/\/blog.espnlol.com\/?p=17","title":{"rendered":"php\u5b89\u88c5xcache\u52a0\u901f"},"content":{"rendered":"<ol>\n<li><strong>\u5b89\u88c5xcache<\/strong><\/li>\n<\/ol>\n<pre class=\"lang:vim decode:true\">wget http:\/\/xcache.lighttpd.net\/pub\/Releases\/3.1.0\/xcache-3.1.0.tar.gz\r\ntar xf xcache-3.1.0.tar.gz\r\ncd xcache-3.1.0\r\nphpize\r\n.\/configure --with-php-config=\/app\/php\/bin\/php-config --enable-xcache \u00a0--enable-xcache-optimizer\r\nmake &amp;&amp; make install<\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u4f1a\u51fa\u73b0<br \/>\nInstalling shared extensions: \u00a0 \u00a0\/app\/php\/lib\/php\/extensions\/no-debug-zts-20100525\/<\/p>\n<p><strong>2. \u00a0 \u6574\u5408php.ini<\/strong><br \/>\n\u8fdb\u5165\u89e3\u538bxcache-3.1.0\u7684\u5b89\u88c5\u76ee\u5f55<\/p>\n<pre class=\"lang:vim decode:true \">cd xcache-3.1.0\r\ncp xcache.ini \/etc\/php.d<\/pre>\n<p>\u91cd\u542fhttpd\u751f\u6548<\/p>\n<pre class=\"lang:vim decode:true \">service httpd restart<\/pre>\n<p>\u8fd9\u662f\u8fdb\u5165info\u9875\u9762\u5c31\u53ef\u4ee5\u770b\u5230xcache\u7684\u52a0\u8f7d\u4e86<\/p>\n<p><strong>3. \u00a0\u5f00\u542f\u7ba1\u7406\u9875\u9762<\/strong><\/p>\n<pre class=\"lang:vim decode:true \">cd cache-3.1.0\r\ncp -r htdocs \/www\/xcache\/\r\n#\u751f\u6210md5\u52a0\u5bc6\u6587\u4ef6\r\necho -n \"a123b789\" | md5sum\r\n9dede0d841a80915fcc94ce628327c5d\r\n#\u7f16\u8f91xcache.ini\r\n; use http:\/\/xcache.lighttpd.net\/demo\/cacher\/mkpassword.php to generate your encrypted password\r\nxcache.admin.user = \"mOo\"\r\nxcache.admin.pass = \"md5 encrypted password\"\r\n\u66f4\u6539\u4e3a\r\n; use http:\/\/xcache.lighttpd.net\/demo\/cacher\/mkpassword.php to generate your encrypted password\r\nxcache.admin.user = \"user\"\r\nxcache.admin.pass = \"9dede0d841a80915fcc94ce628327c5d\"\r\n#\u91cd\u542fapache\u751f\u6548\r\nservice httpd restart<\/pre>\n<p>\u6253\u5f00\u9875\u9762\u8f93\u5165\u7528\u6237\u540d\u5bc6\u7801\u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5xcache wget http:\/\/xcache.lighttpd.net &hellip; <a href=\"https:\/\/blog.espnlol.com\/?p=17\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":1,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}