memcached-php

本文详细介绍了在Linux环境下使用YUM安装GCC及GCC-C++的过程,随后深入讲解了Libmemcached的配置与编译步骤,以及如何通过PHPIZE为Memcached设置PHP扩展,并最终配置与启动Memcached服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

yum -y install gcc+ gcc-c++

=>

libmemcached:

[root@localhost libmemcached-1.0.18]# ./configure --prefix=/usr/local/libmemcached --with-memcached

memcached:

[root@localhost memcached-3.1.3]# /usr/local/php/bin/phpize

[root@localhost memcached-3.1.3]# ./configure --with-php-config=/usr/local/php/bin/php-config   --with-libmemcached-dir=/usr/local/libmemcached/ --disable-memcached-sasl

================================= 

========================================== 

server:

http://www.linuxfromscratch.org/blfs/view/svn/index.html

http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libevent.html

https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz

[root@localhost libevent-2.1.8-stable]# ./configure --prefix=/usr/local/libevent

[root@localhost memcached-1.5.13]# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent/

[root@localhost memcached]# ./bin/memcached  -d -m 256 -u root -p 11211

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值