分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

php扩展memached安装

发布时间:2023-09-06 02:13责任编辑:熊小新关键词:mac

memcached依赖于libevent,首先安装libevent

官方网站 http://libevent.org/

./configure –prefix=/usr/local/libevent

make && make install

memcached安装

官网http://www.danga.com/memcached/dist

  wget  http://www.danga.com/memcached/dist/memcached-1.0.4.tar.gz

 tar  -zxvf    memcached-1.0.4.tar.gz

官网http://www.danga.com/memcached/dist

  wget  http://www.danga.com/memcached/dist/memcached-1.0.4.tar.gz

 tar  -zxvf    memcached-1.0.4.tar.gz

Cannot find config.m4.
Make sure that you run ‘/usr/bin/phpize‘ in the top level source directory of the module

进入php源码包目录:cd /usr/local/php-5.6.25/ext/openssl

执行命令:  cp ./config0.m4 ./config.m4 即可

[root@weidaijie openssl]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212

./configure --prefix=/usr/local/memcached ?--with-libevent=/usr/local/libevent/

make &&make install
上述安装完后会有类似这样的提示:
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-2007xxxx/
把php.ini中的extension_dir = “./”修改为

extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-2007xxxx/”

添加一行来载入memcache扩展:extension=memcache.so

php扩展memached安装

原文地址:https://www.cnblogs.com/weidaijie/p/9603661.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved