VPS侦探论坛

 找回密码
 注册
查看: 437|回复: 4

memcached安装成功但是不起作用

[复制链接]
发表于 2019-3-30 18:31:29 | 显示全部楼层 |阅读模式




Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
iptables: Bad rule (does a matching rule exist in that chain?).
Starting Memcached...
Starting memcached:  done
====== Memcached install completed ======
Memcached installed successfully, enjoy it!

这里是成功的,但是打开memcached.php是下面这样

Use PHP Memcached extension.
Memcached Server version:
Get key1 value:
Get key1 value:
Get key2 value:
Get key1 value:
Get key2 value:
Memcached Test tools for LNMP一键安装包 LNMP支持论坛

美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-3-30 18:54:33 | 显示全部楼层


上面那台是阿里云香港,下面这台是腾讯云国内,更神奇

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/
Copy Memcached PHP Test file...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
iptables: Bad rule (does a matching rule exist in that chain?).
Starting Memcached...
Starting memcached:  done
====== Memcached install completed ======
Memcached installed successfully, enjoy it!

打开memcached.php是下面这样

PHP Memcached extension was not installed
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org/
发表于 2019-3-30 21:27:34 | 显示全部楼层



  1. Use PHP Memcached extension.
  2. Memcached Server version: 1.5.12
  3. Get key1 value: This is first value
  4. Get key1 value: This is replace value
  5. Get key2 value: Array ( [0] => aaa [1] => bbb [2] => ccc [3] => ddd )
  6. Get key1 value:
  7. Get key2 value:
  8. Memcached Test tools for LNMP一键安装包 LNMP支持论坛
复制代码

正常的话显示应该是这样,看前面连memcached服务器版本都没显示,感觉可能memcached服务器没启动起来或者防火墙之类的规则可能有问题
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-3-31 00:32:27 | 显示全部楼层



licess 发表于 2019-3-30 21:27
正常的话显示应该是这样,看前面连memcached服务器版本都没显示,感觉可能memcached服务器没启动起来或者 ...

启动起来了的,我重装系统装lnmp解决了,就是麻烦点。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org/
发表于 2019-4-20 22:43:00 | 显示全部楼层

我是通过 make test 发现2个错误, 要取消禁止 proc_get_status,proc_open.在php.ini 中
先卸载 再次重新安装,就好了

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2019-10-16 01:32 , Processed in 0.049368 second(s), 30 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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