ubuntu安装phpredis
系统ubuntu(win10 wsl)
准备
安装redis: apt install redis;
安装pecl: apt install php-pear;
phpredis包用的是pecl的: [http://pecl.php.net/package/redis](http://pecl.php.net/package/redis);
安装 phpredis:
由于在线安装总是有问题安装不了,我们就先把包下载到本地,再用pecl 安装.
下载到本地: wget http://pecl.php.net/get/redis-5.0.2.tgz;
安装: pecl install ./redis-5.0.2.tgz ;
安装完根据提示再php.ini 添加: extension=redis.so
ok 告成
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。