水平凡 发表于 2012-11-28 10:36:22

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

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
=======================================================================

licess 发表于 2012-11-28 12:13:15

memcache是扩展,memcached是程序

http://ip/memcached.php 这个测试可以就正常

水平凡 发表于 2012-11-28 12:21:29

回复 2# 的帖子

memcached.php 测试报错,提示Memcache这个类不存在!

licess 发表于 2012-11-28 15:59:13

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

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

php -v看一下

水平凡 发表于 2012-12-6 14:51:34

回复 4# 的帖子

ps aux有memcached 进程。
root      12620.00.0 330904   808 ?      SslNov15   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

licess 发表于 2012-12-6 20:23:18

回复 5# 的帖子

看着两个都没错误,你看看php.ini里有memcache.so 不

水平凡 发表于 2012-12-6 21:53:57

回复 6# 的帖子

回军哥,php.ini没有。。。看来是php没有安装mc扩展~~
请问这得怎么搞?

licess 发表于 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 ../

水平凡 发表于 2012-12-7 13:00:59

回复 8# 的帖子

还是一样。。。Fatal error: Class 'Memcache' not found in
php.ini里没有memcache.so

licess 发表于 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这样的。。。。

licess 发表于 2012-12-8 10:36:51

extension = "memcache.so"

水平凡 发表于 2012-12-8 21:30:16

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"
extension = "memcache.so"

加了以后 一样是那个错误~~~

水平凡 发表于 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

这个错误是怎么解决?
页: [1]
查看完整版本: MC缓存提示安装成功,但探针测试没有。。