Welcome 微信登录

首页 / 操作系统 / Linux / Memcache安装和配置

一、安装libevent下载地址:http://libevent.org/比如:https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz安装libevent如果显示没有安装gcc可以参考使用yum安装gcc http://www.linuxidc.com/Linux/2012-08/69360.htm ,然后再安装libevent下载完成上传到linux上之后,编译、安装:1.1 ./configure --prefix=/usr1.2  编译make1.3  编译&安装 make install1.4查看是否已经安装:ls -al /usr/lib | grep libevent二、安装memcache下载地址: code.google.com/p/memcached/downloads/list2.1 ./configure --with-libevent=/usr2.2  编译make2.3  编译&安装 make install2.4运行# /usr/local/bin/memcached -d -m 256 -u root -l 192.168.1.1 -p 11211 -c 256 -P /opt/memcached/pid.pid-d选项是启动一个守护进程,-m是分配给Memcache使用的内存数量,单位是MB,我这里是10MB,-u是运行Memcache的用户,我这里是root,-l是监听的服务器IP地址,如果有多个地址的话,我这里指定了服务器的IP地址192.168.0.200,-p是设置Memcache监听的端口,我这里设置了12000,最好是1024以上的端口,-c选项是最大运行的并发连接数,默认是1024,我这里设置了256,按照你服务器的负载量来设定,-P是设置保存Memcache的pid文件,我这里是保存在 /opt/memcached/pid.pid,2.5结束Memcache进程,执行:# kill "cat /opt/memcached/pid.pid"也可以启动多个守护进程,不过端口不能重复yum轻松简单安装配置GCC等MyEclipse使用Hibernate反向连接Oracle报ora-12705相关资讯      memcache 
  • Memcache 内存对象缓存系统  (07月01日)
  • CentOS安装Memcached及配置PHP的  (05/07/2015 19:56:45)
  • PHP监测Memcache服务端的运行状况  (11/11/2014 19:05:41)
  • Memcache的详细讲解  (11/13/2015 09:05:36)
  • Ubuntu下Memcache环境安装  (12/31/2014 19:50:40)
  • Memcache安装运行及Cacti监控  (10/02/2014 20:08:29)
本文评论 查看全部评论 (0)
表情: 姓名: 字数