{"id":131751,"date":"2020-07-04T09:52:18","date_gmt":"2020-07-04T01:52:18","guid":{"rendered":"http:\/\/4563.org\/?p=131751"},"modified":"2020-07-04T09:52:18","modified_gmt":"2020-07-04T01:52:18","slug":"centos-%e4%b8%8b%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85php7-3%e7%9a%84redis%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=131751","title":{"rendered":"centos \u4e0b\u7f16\u8bd1\u5b89\u88c5php7.3\u7684redis\u6269\u5c55"},"content":{"rendered":"<p>\u672c\u6587\u662f\u57fa\u4e8e <a href=\"https:\/\/www.studytime.xin\/article\/centos-php-install.html\">centos \u4e0b\u7f16\u8bd1\u5b89\u88c5PHP7.3\u642d\u5efaPHP\u8fd0\u884c\u73af\u5883<\/a> \u7f16\u8bd1\u5b89\u88c5\u7248\u672c\uff0c\u8fdb\u884c\u7684redis\u7684\u7f16\u8bd1\u6269\u5c55\u5b89\u88c5\u65b9\u6cd5\u6574\u7406\u3002<\/p>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u4e0b\u8f7dredis\u6269\u5c55\u5305\u4ee5\u53ca\u89e3\u538b\" title=\"\u4e0b\u8f7dredis\u6269\u5c55\u5305\u4ee5\u53ca\u89e3\u538b\"><\/a>\u4e0b\u8f7dredis\u6269\u5c55\u5305\u4ee5\u53ca\u89e3\u538b<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>wget http:&#x2F;&#x2F;pecl.php.net&#x2F;get&#x2F;redis-4.2.0.tgz<\/span><br><span>tar -xzvf redis-4.2.0.tgz -C &#x2F;opt&#x2F;module<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u8fdb\u5165\u89e3\u538b\u540e\u76ee\u5f55\uff0c\u7f16\u8bd1\u5b89\u88c5\" title=\"\u8fdb\u5165\u89e3\u538b\u540e\u76ee\u5f55\uff0c\u7f16\u8bd1\u5b89\u88c5\"><\/a>\u8fdb\u5165\u89e3\u538b\u540e\u76ee\u5f55\uff0c\u7f16\u8bd1\u5b89\u88c5<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>cd &#x2F;opt&#x2F;module&#x2F;redis-4.2.0<\/span><br><span>&#x2F;usr&#x2F;local&#x2F;php&#x2F;bin&#x2F;phpize<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u5e38\u89c1\u9519\u8bef\" title=\"\u5e38\u89c1\u9519\u8bef\"><\/a>\u5e38\u89c1\u9519\u8bef<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><span>3<\/span><br><span>4<\/span><br><span>5<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>Cannot find autoconf. Please check your autoconf installation and the<\/span><br><span>$PHP_AUTOCONF environment variable. Then, rerun this script.<\/span><br><span><\/span><br><span># \u5b89\u88c5autoconf<\/span><br><span>yum install autoconf<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u67e5\u627ephp-config\" title=\"\u67e5\u627ephp-config\"><\/a>\u67e5\u627ephp-config<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>find &#x2F; -name php-config<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u7f16\u8bd1\u5b89\u88c5\" title=\"\u7f16\u8bd1\u5b89\u88c5\"><\/a>\u7f16\u8bd1\u5b89\u88c5<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>.&#x2F;configure --with-php-config&#x3D;&#x2F;usr&#x2F;local&#x2F;php&#x2F;bin&#x2F;php-config<\/span><br><span>make &amp; make install<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u914d\u7f6ephp-ini\uff0c\u6dfb\u52a0redis-so\u6269\u5c55\" title=\"\u914d\u7f6ephp.ini\uff0c\u6dfb\u52a0redis.so\u6269\u5c55\"><\/a>\u914d\u7f6ephp.ini\uff0c\u6dfb\u52a0redis.so\u6269\u5c55<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><span>3<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>vim &#x2F;usr&#x2F;local&#x2F;php&#x2F;etc&#x2F;php.ini<\/span><br><span><\/span><br><span>extension&#x3D;redis.so<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u91cd\u542fphp-fpm\" title=\"\u91cd\u542fphp-fpm\"><\/a>\u91cd\u542fphp-fpm<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><span>2<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>killall php-fpm<\/span><br><span>&#x2F;usr&#x2F;local&#x2F;sbin&#x2F;php-fpm<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u67e5\u770bphp\u6269\u5c55\" title=\"\u67e5\u770bphp\u6269\u5c55\"><\/a>\u67e5\u770bphp\u6269\u5c55<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>php -m<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u662f\u57fa\u4e8e centos \u4e0b\u7f16\u8bd1\u5b89&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/131751"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131751"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/131751\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}