Memcached安装

1.先下载安装libevent

安装 libevent
# tar zxvf libevent-1.4.9-stable.tar.gz
# cd libevent-1.4.9-stable
# ./configure --prefix=/opt/libevent
# make
# make install

2.下载安装Memcached
安装 Memcached
# tar zxvf memcached-1.2.6.tar.gz
# cd memcached-1.2.6
# ./configure --prefix=/opt/memcached --with-libevent=/opt/libevent --enable-threads
# make
# make install

在make时报错:

make[3]: 没有什么可以做的为 `all-am'。
make[3]:正在离开目录 `/home/brin/下载/memcached-1.4.15/doc'
make[2]:正在离开目录 `/home/brin/下载/memcached-1.4.15/doc'
make[2]: 正在进入目录 `/home/brin/下载/memcached-1.4.15'
make[2]:正在离开目录 `/home/brin/下载/memcached-1.4.15'
make[1]:正在离开目录 `/home/brin/下载/memcached-1.4.15'

在make install时报错

make[4]: 没有什么可以做的为 `install-exec-am'。
test -z "/opt/memcached/share/man/man1" || /bin/mkdir -p "/opt/memcached/share/man/man1"
 /usr/bin/install -c -m 644 memcached.1 '/opt/memcached/share/man/man1'
make[4]:正在离开目录 `/home/brin/下载/memcached-1.4.15/doc'
make[3]:正在离开目录 `/home/brin/下载/memcached-1.4.15/doc'
make[2]:正在离开目录 `/home/brin/下载/memcached-1.4.15/doc'
make[2]: 正在进入目录 `/home/brin/下载/memcached-1.4.15'
make[3]: 正在进入目录 `/home/brin/下载/memcached-1.4.15'
test -z "/opt/memcached/bin" || /bin/mkdir -p "/opt/memcached/bin"
  /usr/bin/install -c memcached '/opt/memcached/bin'
test -z "/opt/memcached/include/memcached" || /bin/mkdir -p "/opt/memcached/include/memcached"
 /usr/bin/install -c -m 644 protocol_binary.h '/opt/memcached/include/memcached'
make[3]:正在离开目录 `/home/brin/下载/memcached-1.4.15'
make[2]:正在离开目录 `/home/brin/下载/memcached-1.4.15'
make[1]:正在离开目录 `/home/brin/下载/memcached-1.4.15'

些时可以将:cp /opt/libevent/lib/libevent-2.0.so.5 /usr/lib

./memcached -d -m 10 -l 127.0.0.1 -p 11211 -u root

telnet 192.168.0.67 11211

root@brin:/home/brin/下载/memcached-1.4.15# telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

stats 查看相关信息

杀死进程:killall -9 memcached

install memcached for ubuntu的更多相关文章

  1. Install Docker on Ubuntu

    Install Docker on Ubuntu Estimated reading time: 17 minutes Docker is supported on these Ubuntu oper ...

  2. (转) How to install eclipse in ubuntu 12.04

    源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...

  3. Install OpenCV on Ubuntu or Debian

    http://milq.github.io/install-OpenCV-ubuntu-debian/转注:就用第一个方法吧,第二个方法的那个sh文件执行失败,因为我价格kurento.org的源,在 ...

  4. Install OpenCV-Python in Ubuntu

    之前安装python版opencv,需要下载whl文件,进行安装,这是在window环境下的: 安装opencv_python,下载whl包 安装系统python下的opencv 今天发现一个简单的方 ...

  5. How To Install Cacti On Ubuntu 14

    How To Install Cacti On Ubuntu 14.04/14.10 by anismaj Cacti is an open source web based network moni ...

  6. How To Install Nginx on Ubuntu 16.04 zz

    Introduction Nginx is one of the most popular web servers in the world and is responsible for hostin ...

  7. How to Install PhantomJS on Ubuntu 16.04

    Introduction PhantomJS is a scripted, headless browser that can be used for automating web page inte ...

  8. install cinnamon on ubuntu 14.04

    emotion: I feel not comfortable with ubuntu 14.04 default desktop unity,i still look for a alternati ...

  9. ubuntu 16.04上源码编译和安装cgal并编写CMakeLists.txt | compile and install cgal on ubuntu 16.04

    本文首发于个人博客https://kezunlin.me/post/39ab7ed9/,欢迎阅读最新内容! compile and install cgal on ubuntu 16.04 Guide ...

随机推荐

  1. CF1096E The Top Scorer

    题目地址:洛谷CF1096E 本场AC数最少 (最难) 的题目 题目大意:给出三个数p , s,r,表示有p人,每个人都有一个非负得分,所有人的得分和为s,Hasan的得分至少为r,求Hasan是第一 ...

  2. SpringSecurityOAuth使用JWT Token实现SSO单点登录

    ⒈认证服务器 1.添加pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <arti ...

  3. 876. Middle of the Linked List

    1. 原始题目 Given a non-empty, singly linked list with head node head, return a middle node of linked li ...

  4. Linux下编写和加载 .ko 文件(驱动模块文件)

    一..ko 文件介绍 .ko文件是kernel object文件(内核模块),该文件的意义就是把内核的一些功能移动到内核外边, 需要的时候插入内核,不需要时卸载. 二.优点 (1)这样可以缩小内核体积 ...

  5. Food HDU - 4292 网络流 拆点建图

    http://acm.hdu.edu.cn/showproblem.php?pid=4292 给一些人想要的食物和饮料,和你拥有的数量,问最多多少人可以同时获得一份食物和一份饮料 写的时候一共用了2种 ...

  6. Alpha 冲刺 (7/10)

    目录 摘要 团队部分 个人部分 摘要 队名:小白吃 组长博客:hjj 作业博客:冲刺7 团队部分 后敬甲(组长) 过去两天完成了哪些任务 界面设计.图标设计 写博客 接下来的计划 准备下周答辩 跟进进 ...

  7. [MySQL]子语句的查询技巧

    一.统计group by语句的行数 group by语句中,如果包含字段统计函数(诸如:count(),sum()...),这种情况下统计函数只会作用于group by的字段,因此想拿到最终结果的行数 ...

  8. SpringBoot和SpringCloud面试题

    一. 什么是springboot 1.用来简化spring应用的初始搭建以及开发过程 使用特定的方式来进行配置(properties或yml文件) 2.创建独立的spring引用程序 main方法运行 ...

  9. VMware虚拟机安装Linux系统centos7(一)

    1.安装虚拟机(自行百度) 2.编辑虚拟机设置 光驱设置,镜像选择:(也可设置2核2G,基于自己计算机选择!) 3.点击开启此虚拟机(上下键选择安装,回车) 4.选择语言 5.设置 如果想安装图形化界 ...

  10. nodejs之koa-router与koa-body搭配使用

    简介 koa需要搭配中间件来做接口更方便,使用Koa-body & Koa-router 使用 koa2 创建接口,处理post请求 const koa=require("koa&q ...