VPS侦探论坛

 找回密码
 注册
查看: 7312|回复: 13

MC缓存提示安装成功,但探针测试没有。。

[复制链接]
发表于 2012-11-28 10:36:22 | 显示全部楼层 |阅读模式

useradd: user 'nobody' already exists
Copy Memcached PHP Test file...
Starting Memcached...
Starting memcached:
===================== install Memcached completed =====================
Install Memcached completed,enjoy it!
You Can visit Memcached PHP Test file: http://ip/memcached.php
=======================================================================
Install Memcached for LNMP V0.9  ,  Written by Licess
=======================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to install Memcached for lnmp

For more information please visit http://www.lnmp.org
=======================================================================
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-11-28 12:13:15 | 显示全部楼层


memcache是扩展,memcached是程序

http://ip/memcached.php 这个测试可以就正常
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-11-28 12:21:29 | 显示全部楼层

回复 2# 的帖子


memcached.php 测试报错,提示Memcache这个类不存在!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-11-28 15:59:13 | 显示全部楼层



往上看一下有错误信息没,ps aux有memcached 进程不

提示Memcache这个类不存在的话可能是memcache没安装成功

php -v看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-6 14:51:34 | 显示全部楼层

回复 4# 的帖子


ps aux有memcached 进程。
root      1262  0.0  0.0 330904   808 ?        Ssl  Nov15   0:00 memcached -d -p

php -v:
PHP 5.3.6 (cli) (built: Aug 24 2012 09:39:47)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

军哥运维代购:http://shop63846532.taobao.com/

发表于 2012-12-6 20:23:18 | 显示全部楼层

回复 5# 的帖子


看着两个都没错误,你看看php.ini里有memcache.so 不
 楼主| 发表于 2012-12-6 21:53:57 | 显示全部楼层

回复 6# 的帖子


回军哥,php.ini没有。。。看来是php没有安装mc扩展~~
请问这得怎么搞?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-12-7 10:27:13 | 显示全部楼层

回复 7# 的帖子


wget -c http://soft.vpser.net/web/memcache/memcache-3.0.6.tgz
tar zxvf memcache-3.0.6.tgz
cd memcache-3.0.6/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
cd ../
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-7 13:00:59 | 显示全部楼层

回复 8# 的帖子


还是一样。。。Fatal error: Class 'Memcache' not found in
php.ini里没有memcache.so
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-12-7 15:37:33 | 显示全部楼层

回复 9# 的帖子




php.ini里也得加上memcache.so
看看pdo_mysql.so 格式加
 楼主| 发表于 2012-12-7 21:18:07 | 显示全部楼层

回复 10# 的帖子


在Php.ini里面没找到pdo_mysql.so这样的。。。。
发表于 2012-12-8 10:36:51 | 显示全部楼层

extension = "memcache.so"
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-12-8 21:30:16 | 显示全部楼层
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"
extension = "memcache.so"

加了以后 一样是那个错误~~~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-12-8 22:06:58 | 显示全部楼层
# php -i |grep memcached

PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
in Unknown on line 0

这个错误是怎么解决?

军哥运维代购:http://shop63846532.taobao.com/

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

本版积分规则

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

GMT+8, 2024-9-24 03:25 , Processed in 0.030026 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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