y1219 发表于 2015-3-8 10:53:41

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

LNMP1.1,php5.3,安装之后提示这个,/usr/bin/install -c -m 644 protocol_binary.h '/usr/local/memcached/include/memcached'
make: Leaving directory `/root/lnmp1.1-full/memcached-1.4.15'
make: Leaving directory `/root/lnmp1.1-full/memcached-1.4.15'
make: 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-fpmdone
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

y1219 发表于 2015-3-8 11:14:45

创建了 home/wwwroot/default目录,又重新执行了一遍./memcached.sh,但好像还是没有装上
# /usr/local/php/bin/php -v
PHP 5.3.28 (cli) (built: Mar7 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

licess 发表于 2015-3-8 15:30:25

看看/usr/local/php/etc/php.ini里是否有extension = "memcache.so"
没有的话加上

y1219 发表于 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"

4788782 发表于 2015-6-12 10:52:14

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

前面去掉分号
页: [1]
查看完整版本: 军歌看看memcached是否安装成功?