惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - rosanshao

使用sc 命令写脚本 添加和删除服务 简单应用 Win 10激活 couchbase map reduce StartWith 测试 笔记,转 Couchbase II( View And Index) Couchbase I SqlIO优化 死锁检测 Asp.Net异步编程-使用了异步,性能就提升了吗? Autofac Mvc Webapi注入笔记 Sql Server 2005/2008 SqlCacheDependency查询通知的使用总结 WCF .NET REST调用方式 WCF HelpPage 和自动根据头返回JSON XML .net 4.0 新特性 Linq 并行化处理 IIS 假死状态处理 gmap jQuery插件开发 StatusCode - rosanshao - 博客园
MemCached 安装笔记
rosanshao · 2014-06-11 · via 博客园 - rosanshao

安装步骤:

      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