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. linux 工具学习网站

    推荐一个很不错的linux工具学习网站; 对于一个开发人员来说,我觉得掌握这些工具对于基于linux的应用开发来说事半功倍. http://linuxtools-rst.readthedocs.io/ ...

  2. [转] 指定进程运行的CPU

    转自:https://www.cnblogs.com/liuhao/archive/2012/06/21/2558069.html coolshell最新的文章<性能调优攻略>在“多核CP ...

  3. Linux安装JDK(tar)

    我以JDK1.8为例 ⒈下载 https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html ...

  4. 3. Python 字典 常用办法总结

    Python字典客储存任意类型的对象,如字符串.数字.元祖.列表.字典.bool等. 优点:取值方便,速度快 1.创建字典 字典由键(key)和对应值(value)成对组成. 字典也被称作关联数组或哈 ...

  5. Contains Duplicate I & III

    Contains Duplicate I Given an array of integers, find if the array contains any duplicates. Your fun ...

  6. Shell-find . -type f -name "*.jpg" -print | xargs tar -czvf images.tar.gz

    查找所有的 jpg 文件,并且压缩它们: find . -type f -name "*.jpg" -print | xargs tar -czvf images.tar.gz

  7. ARMV7-M数据手册---Part B :System Level Architecture---B3 System Address Map

    1.前言 2.The system address map 3.System Control Space (SCS) 4.The system timer, SysTick 5. Nested Vec ...

  8. 使用Boost Regex 的regex_search进行遍历搜索

    在regex_search函数中,会将找到的第一个匹配结果保存到一个smatch类中. 然而如果搜索字符串中有多个匹配结果,则需要自己实现了. 在smatch中,有两个成员,官方文档如下: itera ...

  9. ubuntu16.04彻底删除nginx+php

    1.1 删除nginx,–purge包括配置文件 sudo apt-get --purge remove nginx 1.2 自动移除全部不使用的软件包 sudo apt-get autoremove ...

  10. hibernate框架学习之数据查询(HQL)

    lHibernate共提供5种查询方式 •OID数据查询方式 •HQL数据查询方式 •QBC数据查询方式 •本地SQL查询方式 •OGN数据查询方式 OID数据查询方式 l前提:已经获取到了对象的OI ...