Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":181,"date":"2012-09-17T01:03:33","date_gmt":"2012-09-17T09:03:33","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=181"},"modified":"2014-04-16T16:34:22","modified_gmt":"2014-04-16T08:34:22","slug":"centos_php_memcached","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/centos_php_memcached\/","title":{"rendered":"\u5728cpanel\/WHM\u7684centos\u4e3b\u6a5f\u4e0a\u704cphp\u7684memcached\u64f4\u5c55"},"content":{"rendered":"

\u5982\u679c\u904b\u6c23\u597d\u7684\u8a71\uff0c\u7528\u4e0b\u65b9\u7684\u6307\u4ee4\u5c31\u53ef\u4ee5\u641e\u5b9a\u4e86\u3002
\nyum install php php-pecl-memcache<\/code><\/p>\n

\u76f4\u63a5\u7528yum install\u5b89\u88dd\uff0c\u6709\u6642\u5019\u6703\u56e0\u70barepo\u7684\u554f\u984c\u800c\u88dd\u4e0d\u8d77\u4f86\u3002\u6240\u4ee5\u7528tarball\u4f86\u88dd\uff0c\u53cd\u800c\u5feb\u3002<\/p>\n

Step 1 – \u4e0b\u8f09memcache
\nmkdir repo
\ncd repo
\nwget \u00a0http:\/\/pecl.php.net\/get\/memcache-3.0.6.tgz
\ntar -xvfz memcache-3.0.6.tgz<\/code>
\nStep 2 – \u7de8\u7e79 & \u5b89\u88dd
\ncd memcache-3.0.6
\nphpize<\/code>
\n\u9019\u6642\u5019\uff0c\u61c9\u8a72\u6703\u770b\u5230\u985e\u4f3c\u7684\u8a0a\u606f\uff1a
\nConfiguring for:
\nPHP Api Version: 20041225
\nZend Module Api No: 20060613
\nZend Extension Api No: 220060519
\n.\/configure
\nmake
\nmake install<\/code>
\nStep 3 – \u4fee\u6539php.ini
\n\u5728php\u4e2d\uff0c\u555f\u7528memcache
\necho \"extension=memcache.so\" >> \/usr\/local\/lib\/php.ini<\/code>
\nservice httpd restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"

\u5982\u679c\u904b\u6c23\u597d\u7684\u8a71\uff0c\u7528\u4e0b\u65b9\u7684\u6307\u4ee4\u5c31\u53ef\u4ee5\u641e\u5b9a\u4e86\u3002 yum install php php-pecl-memcache … \u95b1\u8b80\u5168\u6587 \u5728cpanel\/WHM\u7684centos\u4e3b\u6a5f\u4e0a\u704cphp\u7684memcached\u64f4\u5c55<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3],"tags":[48],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/181"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=181"}],"version-history":[{"count":8,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":648,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/181\/revisions\/648"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}