VPS侦探论坛

 找回密码
 注册
查看: 2760|回复: 1

lnmp1.7安装memcache失败

[复制链接]
发表于 2020-7-6 12:14:37 | 显示全部楼层 |阅读模式

安装的是memcache,php5.6

  1. checking for re2c... no
  2. configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
  3. checking for gawk... gawk
  4. checking whether to enable memcache support... yes, shared
  5. checking whether to enable memcache session handler support... yes
  6. checking for the location of ZLIB... no
  7. checking for the location of zlib... /usr
  8. 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.
  9. make: *** No targets specified and no makefile found.  Stop.
  10. make: *** No targets specified and no makefile found.  Stop.
  11. make: *** No rule to make target `install'.  Stop.
  12. Copy Memcached PHP Test file...
  13. Restarting php-fpm......
  14. Gracefully shutting down php-fpm . done
  15. Starting php-fpm [06-Jul-2020 12:01:37] 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
  16. done
  17. iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
  18. Redirecting to /bin/systemctl reload iptables.service
  19. Job for iptables.service invalid.
  20. Starting Memcached...
  21. Starting memcached:  done
  22. Memcached install failed!
复制代码
安装到最后提示,没有 memcache.so 文件,

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


phpinfo()  当中也没有 memcache


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


使用的环境是,aliyun的centos7.8
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-7-6 15:06:12 | 显示全部楼层


一个bug,重新下载lnmp安装包,解压使用新的安装脚本就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-27 00:37 , Processed in 0.024932 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表