VPS侦探论坛

 找回密码
 注册
查看: 3392|回复: 3

lnmp1.7安装memcached 失败

[复制链接]
发表于 2020-7-8 08:53:04 | 显示全部楼层 |阅读模式


  1. Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
  2. Copy Memcached PHP Test file...
  3. Restarting php-fpm......
  4. Gracefully shutting down php-fpm . done
  5. Starting php-fpm  done
  6. iptables v1.4.7: option `-C' requires an argument
  7. Try `iptables -h' or 'iptables --help' for more information.
  8. Starting Memcached...
  9. Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory
  10. failed
  11. Memcached install failed!
复制代码



在phpinfo里也检测不到memcached 模块,劳烦军哥看看什么原因。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-7-8 10:34:15 | 显示全部楼层


安装失败肯定phpinfo里没有php memcached的模块
需要提供完整的安装日志才能确定,只有个结尾无法确定什么原因
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-7-8 13:13:43 | 显示全部楼层

licess 发表于 2020-7-8 10:34
安装失败肯定phpinfo里没有php memcached的模块
需要提供完整的安装日志才能确定,只有个结尾无法确定什么 ...

好的,谢谢。我把日志多复制几行看看


  1. (cd .libs && rm -f memcached.la && ln -s ../memcached.la memcached.la)
  2. /bin/sh /root/lnmp1.7/src/memcached-3.1.5/libtool --mode=install cp ./memcached.la /root/lnmp1.7/src/memcached-3.1.5/modules
  3. cp ./.libs/memcached.so /root/lnmp1.7/src/memcached-3.1.5/modules/memcached.so
  4. cp ./.libs/memcached.lai /root/lnmp1.7/src/memcached-3.1.5/modules/memcached.la
  5. PATH="$PATH:/sbin" ldconfig -n /root/lnmp1.7/src/memcached-3.1.5/modules
  6. ----------------------------------------------------------------------
  7. Libraries have been installed in:
  8.    /root/lnmp1.7/src/memcached-3.1.5/modules

  9. If you ever happen to want to link against installed libraries
  10. in a given directory, LIBDIR, you must either use libtool, and
  11. specify the full pathname of the library, or use the `-LLIBDIR'
  12. flag during linking and do at least one of the following:
  13.    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  14.      during execution
  15.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  16.      during linking
  17.    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  18.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

  19. See any operating system documentation about shared libraries for
  20. more information, such as the ld(1) and ld.so(8) manual pages.
  21. ----------------------------------------------------------------------

  22. Build complete.
  23. Don't forget to run 'make test'.

  24. Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
  25. Copy Memcached PHP Test file...
  26. Restarting php-fpm......
  27. Gracefully shutting down php-fpm . done
  28. Starting php-fpm  done
  29. iptables v1.4.7: option `-C' requires an argument
  30. Try `iptables -h' or 'iptables --help' for more information.
  31. Starting Memcached...
  32. Starting memcached: /etc/init.d/memcached: line 32: /usr/local/memcached/bin/memcached: No such file or directory
  33. failed
  34. Memcached install failed!
复制代码


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-7-8 17:45:23 | 显示全部楼层



你多复制这两行也没用,错误信息还在前面很多,提供完整的完整的日志!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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