`
skyfen
  • 浏览: 177030 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Linux-windows-Memcahe安装配置

阅读更多

总结一下我搜索到的Linux-windows-Memcahe安装配置

并且我照着例子配置成功的,在这里记录一下

Memcahe安装配置
一.windows下memcached安装

Memcached是高性能的,分布式的内存对象缓存系统,用于在动态应用中减少数据库负载,提升访问速度。

下面详细介绍如何在windows xp下安装memcached

我是想在php里用memcached,所以详细步骤如下:

1、memcached要想使用的话,必须在服务器上以服务的形式启动。因此需要下载一个

安装的服务程序。下载地址是
①先下载memcached-win32启动软件
  http://jehiah.cz/projects/memcached-win32/
 
   c:\mem\memcached.exe -d install (安装)
   c:\mem\memcached.exe -d start   (启动)
   看一看进程里面有没有memcached进程,有则启动成功
 
②再下载
  下载对应的php_memcached.dll php库文件,注意php版本问题,版本下载错了,是无法支持memcached的。
  http://downloads.php.net/pierre/
 
③复制php_memcached.dll文件到PHP目录中的ext文件夹中

④修改php.ini这个配置文件,加入extension=php_memcache.dll 这一行代码。

⑤重启apache,然后用php写一个phpinfo()函数,打开php信息页面,如果列表里出现了memcache就说明安装成功了。

 

二.Linux下memcached安装

3.安装libevent
   tar zxvf libevent-xxx.tar.gz
   cd  libevent-xxx   ./configure
   make
   make install

我下载的1.4.9-stable版本,需要先make clean和make distclean后才能正常安装,否则报错:
make[2]: *** [event.lo] Error 1
make[2]: Leaving directory `/home/gd/Develope/libevent-1.4.9-stable'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gd/Develope/libevent-1.4.9-stable'
make: *** [all] Error 2

4.安装memcached
   tar zxvf memcached-xxx.tar.gz   cd  memcached-xxx
   ./configure  --prefix=/usr/local/memcached --with-libevent=/usr/local
   make
   make install
问题出现了:当/usr/local/memcached/bin/memcached -d -p 6000 -u root -m 20的时候,出现以下错误:
error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory
呀,明明安装了libevent,咋还提示找不到呢?
LD_DEBUG=libs /usr/local/memcached/bin/memcached -v
才看见,原来是一直在trying file=/usr/lib/i486-linux-gnu/libevent-1.4.so.2
我靠,那个麻烦啊
赶紧ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/i486-linux-gnu/libevent-1.4.so.2
然后再次启动memcached,看到那结果,连上帝都哭了,-----------------------------成功

0
1
分享到:
评论

相关推荐

    memcahe资料及安装程序

    memcahe资料及安装程序

    linux MemCache 安装手册

    NULL 博文链接:https://sunney2010.iteye.com/blog/656905

    java memcahe 客户端 2.6.1

    这次,Memcached Java Client推出的2.6.1发布版是基于全新的performance分支,具有如下重大改进: 较之老版本,在性能上有300%左右的提升; 兼容老版本,用户无须修改自己的源代码; 支持多个memcached协议,包括...

    memcache for linux

    linux平台使用的memcache压缩包,解压缩之后运行make && make install安装, 然后/usr/local/memcache/bin/memcache -d -m 1024 -u root -p 11211 -c 1024命令运行memcache

    memcahe分析

    各种缓存技术对比,memcache深度分析、使用 及技巧

    memcache配置文档

    memcache 部署 详细 清晰,更简单的呈现出来

    memcahed.zip

    Linux下安装memcahed的所有包和一键安装脚本、启动脚本,包括libevent、memcached、install-memcached.sh、start-memcached.sh,很方便的安装memcached

    php5.4 redis memcahe mongo扩展dll

    php5.4.3 redis memcahe mongo扩展dll 本人用的x86系统,32位 安装redis时,需要安装php_igbinary.dll扩展,并且在php.ini中,这个需要在redis的前面

    memcahe使用文档

    帮助初学者学习和使用memcache.也可以帮助开发者随时查阅。

    PHP基于memcahe的session方法重写

    session跨服务器跨域解决方案 基于memcahe的session方法重写

    基于memcahe的session方法重写(PHP)

    PHP session跨服务器跨域解决方案 基于memcahe的session方法重写

    memcahe数据库管理

    这是一款memcahe缓存数据库的查询工具,简单方便,很好用。

    php5.3 memcahe

    php5.3 的 windows 下的 memcache 包。 将php_memcache.dll 放在你的php的ext文件内。 之后根据你自己环境配置好。

    memcache linux 软件包

    这是市在linux 安装memcahe 服务器,所有的所有软件,和安装说明

    memcache安装必备的组件 libevent-1.3.tar.gz

    memcache安装必备的组件 libevent-1.3.tar.gz

    memcahe支持分布式

    memcahememcahememcahememcahememcahememcahe 支持分布式,java版

    memcahe.dll

    这是wind7 64位 各个php版本的memcached.dll,有需要的免费下载不需要任何积分

    EaglePHP 开源框架 v 1.7 发布

    12、支持session在memcahe、database、file中的无缝切换。 13、高安全性,内置filter组件实现过滤机制,防止sql注入及xss跨站脚本攻击。 14、支持orm,真正实现OOP开发的快捷且性能优越。 15、内置document输出...

    php7-memcache3.0.8-nts-vc14-x86扩展DLL

    windows下php7.0的memcahe扩展dll NTS版X86的,看好再下

    PHP安装memcache扩展的步骤讲解

    PHP 5.6.23,查询目前最稳定的版本是memcache-2.2.7。 1.下载并解压缩。 wget http://pecl.php.net/get/memcache-2.2.7.tgz tar zxvf memcache-2.2.7.tgz 2. 编译。根据实际情况使用phpize和php-config... ...Zend Exten

Global site tag (gtag.js) - Google Analytics