日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程语言 > php >内容正文

php

PHP7.2 redis

發(fā)布時(shí)間:2023/11/29 php 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PHP7.2 redis 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??

PHP7.2 的redis安裝方法:

順便說(shuō)一下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選項(xiàng)去掉,7.2用openssl了,不然會(huì)報(bào)錯(cuò)make make install

1. redis的安裝?

見另一篇"Redis安裝與PHP7.0擴(kuò)展"

2. php擴(kuò)展

redis必須要對(duì)應(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 --添加擴(kuò)展名稱

?

轉(zhuǎn)載于:https://my.oschina.net/lockupme/blog/1787429

總結(jié)

以上是生活随笔為你收集整理的PHP7.2 redis的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。