MC缓存提示安装成功,但探针测试没有。。
useradd: user 'nobody' already existsCopy 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
======================================================================= memcache是扩展,memcached是程序
http://ip/memcached.php 这个测试可以就正常
回复 2# 的帖子
memcached.php 测试报错,提示Memcache这个类不存在! 往上看一下有错误信息没,ps aux有memcached 进程不提示Memcache这个类不存在的话可能是memcache没安装成功
php -v看一下
回复 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
回复 5# 的帖子
看着两个都没错误,你看看php.ini里有memcache.so 不回复 6# 的帖子
回军哥,php.ini没有。。。看来是php没有安装mc扩展~~请问这得怎么搞?
回复 7# 的帖子
wget -c http://soft.vpser.net/web/memcache/memcache-3.0.6.tgztar 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 ../
回复 8# 的帖子
还是一样。。。Fatal error: Class 'Memcache' not found inphp.ini里没有memcache.so
回复 9# 的帖子
php.ini里也得加上memcache.so看看pdo_mysql.so 格式加
回复 10# 的帖子
在Php.ini里面没找到pdo_mysql.so这样的。。。。 extension = "memcache.so" extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"extension = "memcache.so"
加了以后 一样是那个错误~~~ # 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]