bin 发表于 2020-7-6 12:14:37

lnmp1.7安装memcache失败

安装的是memcache,php5.6

checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable memcache support... yes, shared
checking whether to enable memcache session handler support... yes
checking for the location of ZLIB... no
checking for the location of zlib... /usr
checking PHP version... configure: error: PHP 7.x required for pecl-php-memcache ver 4+. Use pecl-php-memcache ver 3.x for PHP 5.x.
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/memcache.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
done
iptables: Saving firewall rules to /etc/sysconfig/iptables:
Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Starting Memcached...
Starting memcached:done
Memcached install failed!
安装到最后提示,没有 memcache.so 文件,

使用测试脚本提示,PHP Memcache extension was not installed


phpinfo()当中也没有 memcache


memcached 可以安装成功。但项目当中使用的是 memcache


使用的环境是,aliyun的centos7.8

licess 发表于 2020-7-6 15:06:12

一个bug,重新下载lnmp安装包,解压使用新的安装脚本就可以了
页: [1]
查看完整版本: lnmp1.7安装memcache失败