VPS侦探论坛

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

[求助]lnmp0.7-full中memcache3.0.5安装不成功

[复制链接]
发表于 2011-12-2 20:38:26 | 显示全部楼层 |阅读模式

cd /root/lnmp0.7-full/memcache-3.0.5

/usr/local/php/bin/phpize

./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config

make && make install

cp /root/lnmp0.7-full/memcache-3.0.5/modules/memcache.so /usr/lib64/php/modules

操作系统:CentOS5.7 编译安装后,同时修改了php.ini配置文件,执行php example.php

PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Fatal error:  Call to undefined function memcache_connect() in /root/lnmp0.7-full/memcache-3.0.5/example.php on line 3

EMAIL: lwg2001s@gmail.com


[ 本帖最后由 lwg2001s 于 2011-12-2 20:41 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-12-2 22:24:26 | 显示全部楼层


不匹配造成的
原来是php 5.2.×版本的,现在是php 5.3.×版本的
需要重新下载当前版本的php重新编译安装php再重新编译安装memcache
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-12-4 07:43:18 | 显示全部楼层

谢谢licess哥,我回去试试看。


谢谢licess哥,我回去试试看。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-12-4 07:47:59 | 显示全部楼层

回复 2# 的帖子




编译之后怎么更新php呢?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-12-4 08:44:33 | 显示全部楼层

回复 4# 的帖子


502重启脚本:https://bbs.vpser.net/viewthread.php?tid=1913
稍微一改就行,原来也是匹配关键词的,原来是存在关键词:502 Bad Gateway 就重启,把不等于的! 去掉,关键词换成你网页里的标题不久行了

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

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

本版积分规则

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

GMT+8, 2024-9-21 19:43 , Processed in 0.026073 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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