VPS侦探论坛

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

军歌看看memcached是否安装成功?

[复制链接]
发表于 2015-3-8 10:53:41 | 显示全部楼层 |阅读模式

LNMP1.1,php5.3,安装之后提示这个,
/usr/bin/install -c -m 644 protocol_binary.h '/usr/local/memcached/include/memcached'
make[3]: Leaving directory `/root/lnmp1.1-full/memcached-1.4.15'
make[2]: Leaving directory `/root/lnmp1.1-full/memcached-1.4.15'
make[1]: Leaving directory `/root/lnmp1.1-full/memcached-1.4.15'
useradd: user 'nobody' already exists
Copy Memcached PHP Test file...
cp: cannot create regular file `/home/wwwroot/default/memcached.php': No such file or directory
Restart php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
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 V1.0  ,  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
 楼主| 发表于 2015-3-8 11:14:45 | 显示全部楼层


创建了 home/wwwroot/default目录,又重新执行了一遍./memcached.sh,但好像还是没有装上
[root@localhost lnmp1.1-full]# /usr/local/php/bin/php -v
PHP 5.3.28 (cli) (built: Mar  7 2015 08:01:56)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-3-8 15:30:25 | 显示全部楼层

看看/usr/local/php/etc/php.ini里是否有extension = "memcache.so"
没有的话加上
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-3-8 16:37:44 | 显示全部楼层



有这句的啊
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"
extension = "memcache.so"
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-6-12 10:52:14 | 显示全部楼层

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"

前面去掉分号

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

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

本版积分规则

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

GMT+8, 2024-9-27 21:28 , Processed in 0.037629 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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