{"id":282,"date":"2022-04-14T11:04:25","date_gmt":"2022-04-14T03:04:25","guid":{"rendered":"http:\/\/feel.name\/?p=282"},"modified":"2022-04-14T11:04:25","modified_gmt":"2022-04-14T03:04:25","slug":"%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85php-7-2-%e5%8a%a0%e8%bd%bdredis%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"http:\/\/feel.name\/?p=282","title":{"rendered":"\u7f16\u8bd1\u5b89\u88c5php 7.2 \u52a0\u8f7dredis\u6269\u5c55"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">!\/bin\/bash<\/h1>\n\n\n\n<h6 class=\"wp-block-heading\">#<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">##### \u7f16\u8bd1\u5b89\u88c5php7.2.5<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">##### \u6dfb\u52a0redis\u63d2\u4ef6<\/h6>\n\n\n\n<h6 class=\"wp-block-heading\">#<\/h6>\n\n\n\n<p>yum install -y gcc gcc-c++ libxml2 libxml2-devel openssl openssl-devel curl curl-devel libjpeg-devel libpng-devel libpng freetype freetype-devel libmcrypt prefix libicu-devel libxslt-devel* autoconf wget<br>cd \/usr\/src\/<br>curl -C &#8211; -o php-7.2.5.tar.gz https:\/\/www.php.net\/distributions\/php-7.2.5.tar.gz<br>tar xf php-7.2.5.tar.gz -C \/usr\/src\/<br>cd \/usr\/src\/php-7.2.5\/<br>.\/configure &#8211;prefix=\/data\/php7 &#8211;with-mhash &#8211;with-openssl &#8211;with-config-file-path=\/data\/php7\/etc &#8211;enable-fpm &#8211;enable-xml &#8211;with-libxml-dir &#8211;enable-bcmath &#8211;enable-calendar &#8211;enable-intl &#8211;enable-mbstring &#8211;enable-pcntl &#8211;enable-shmop &#8211;enable-soap &#8211;enable-sockets &#8211;enable-zip &#8211;enable-mbregex &#8211;enable-mysqlnd &#8211;enable-mysqlnd-compression-support &#8211;with-mysqli=mysqlnd &#8211;with-pdo-mysql=mysqlnd &#8211;with-gd &#8211;enable-ftp &#8211;with-curl &#8211;with-xsl &#8211;with-iconv &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-zlib &#8211;enable-sysvsem &#8211;enable-inline-optimization &#8211;with-xmlrpc &#8211;with-gettext<br>make &amp;&amp; make install<br>cp php.ini-production \/data\/php7\/etc\/php.ini<br>cp \/data\/php7\/etc\/php-fpm.conf.default \/data\/php7\/etc\/php-fpm.conf<br>mv \/data\/php7\/etc\/php-fpm.d\/www.conf.default \/data\/php7\/etc\/php-fpm.d\/www.conf<br>cd<br>curl -O http:\/\/pecl.php.net\/get\/redis-4.0.2.tgz<br>tar xf redis-4.0.2.tgz -C \/usr\/src<br>cd \/usr\/src\/redis-4.0.2\/<br>\/data\/php7\/bin\/phpize<br>.\/configure &#8211;with-php-config=\/data\/php7\/bin\/php-config<br>make &amp;&amp; make install<br>echo &#8220;extension=redis.so&#8221; &gt;&gt; \/data\/php7\/etc\/php.ini<br>\/data\/php7\/sbin\/php-fpm<br>ps -ef | grep &#8216;[p]hp-fpm: master process&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>!\/bin\/bash # ##### \u7f16\u8bd1\u5b89\u88c5php7.2.5 ##### \u6dfb\u52a0redis\u63d2\u4ef6 # yum i&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=282"}],"version-history":[{"count":2,"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions"}],"predecessor-version":[{"id":293,"href":"http:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/282\/revisions\/293"}],"wp:attachment":[{"href":"http:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}