码迷,mamicode.com
首页 > 其他好文 > 详细

MemCached 安装笔记

时间:2014-06-12 17:21:10      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:http   tar   com   get   table   安装   

安装步骤:

      1. 下载libevent & memcached 源码包

     分别把memcached和libevent下载回来,放到 /tmp 目录下:

     # cd /tmp
     # wget http://memcached.org/files/memcached-1.4.20.tar.gz

     # wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

      2.安装libevent

      # tar zxvf libevent-2.0.21-stable.tar.gz

      # cd libevent-2.0.21-stable

      # ./configure -prefix=/usr

      # make

      #make install

       如果提示make command not found 请先安装,命令是

       #yum -y install gcc automake autoconf libtool make

       3.测试libevent是否安装成功:
       # ls -al /usr/lib | grep libevent

      4.安装memcached,同时需要安装中指定libevent的安装位置:
      # cd /tmp
      # tar zxvf memcached-1.2.0.tar.gz
      # cd memcached-1.2.0
      # ./configure -with-libevent=/usr
      # make
      # make install

 

      5.测试是否成功安装memcached:

      # ls -al /usr/local/bin/mem

      6启动memcached

      # /usr/local/bin/memcached -p 11211 -m 512m -d -u root

    

MemCached 安装笔记,布布扣,bubuko.com

MemCached 安装笔记

标签:http   tar   com   get   table   安装   

原文地址:http://www.cnblogs.com/rosanshao/p/3781883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!