PHP7.2 redis
生活随笔
收集整理的這篇文章主要介紹了
PHP7.2 redis
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
PHP7.2 的redis安裝方法:
順便說一下PHP7.2的安裝:
wget http://cn2.php.net/distributions/php-7.2.4.tar.gz tar -zxvf php-7.2.4.tar.gz cd php-7.2.4./configure --prefix=/usr/local/php7.2 --with-config-file-path=/usr/local/php7.2/etc --with-apxs2=/usr/local/apache2/bin/apxs --enable-fileinfo --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-sysvshm --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --enable-calendar --with-xsl --enable-ctype --with-kerberos --enable-exif --with-xmlrpc --enable-ftp --with-gettext --enable-zip --enable-soap --disable-ipv6 --disable-debug --with-bz2 --enable-opcache --with-mcrypt和--enable-gd-native-ttf選項去掉,7.2用openssl了,不然會報錯make make install1. redis的安裝?
見另一篇"Redis安裝與PHP7.0擴展"
2. php擴展
redis必須要對應(yīng)php7.2 的版本
wget https://github.com/edtechd/phpredis/archive/php7.zip unzip php7.zip cd phpredis-php7/usr/local/php7.2/bin/phpize ./configure -with-php-config=/usr/local/php7.2/bin/php-config make make installvim /usr/local/php7.2/etc/php.ini extension=redis.so --添加擴展名稱?
轉(zhuǎn)載于:https://my.oschina.net/lockupme/blog/1787429
總結(jié)
以上是生活随笔為你收集整理的PHP7.2 redis的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Word中摘要和正文同时分栏后,正文跑到
- 下一篇: 梦到医生扎针怎么都扎不进去