|
背景: 服务端memcached 1.57 php memcache扩展版本3.08版 通过查看php-fpm日志,看到 查看文档 127,标识 command not found
解决办法,把memcache.so降到2.2.7版即可 具体编译步骤 1、下载2.2.7版 wget http://pecl.php.net/get/memcache-2.2.7.tgz 2、解压 tar vxzf memcache-2.2.7.tgz 3、进入目录 cd memcache-2.2.7 4、运行phpize /usr/local/php/bin/phpize 5、运行生成的configure得到makefile ./configure --with-php-config=/usr/local/php/bin/php-config 6、编译安装 make && make install 安装后,查看memcache已经变成2.2.7 重启 php和nginx即可 lnmp restart
|