install memcached for ubuntu
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的更多相关文章
- Install Docker on Ubuntu
Install Docker on Ubuntu Estimated reading time: 17 minutes Docker is supported on these Ubuntu oper ...
- (转) How to install eclipse in ubuntu 12.04
源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12. ...
- Install OpenCV on Ubuntu or Debian
http://milq.github.io/install-OpenCV-ubuntu-debian/转注:就用第一个方法吧,第二个方法的那个sh文件执行失败,因为我价格kurento.org的源,在 ...
- Install OpenCV-Python in Ubuntu
之前安装python版opencv,需要下载whl文件,进行安装,这是在window环境下的: 安装opencv_python,下载whl包 安装系统python下的opencv 今天发现一个简单的方 ...
- 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 ...
- 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 ...
- How to Install PhantomJS on Ubuntu 16.04
Introduction PhantomJS is a scripted, headless browser that can be used for automating web page inte ...
- install cinnamon on ubuntu 14.04
emotion: I feel not comfortable with ubuntu 14.04 default desktop unity,i still look for a alternati ...
- 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 ...
随机推荐
- android checkBox setTextColor无效
代码中动态设置checkBox的文字选中背景和未选中背景,用如下代码: checkView.setTextColor(getResources().getColor(R.color.item_colo ...
- CF1091E New Year and the Acquaintance Estimation
题目地址:CF1091E New Year and the Acquaintance Estimation 首先,易知 \(ans\) 的奇偶性与所有给出的数的和的奇偶性相同 其次,易证 \(ans\ ...
- ajax跨域请求 Uncaught SyntaxError: Unexpected token :
最近使用前后端分离开发项目比较多,经常碰到的一个问题就是,前端静态页面请求,后端api获取数据,很多时候,前端和后端都不是在同一个域下的(协议,域名,端口). 这里使用的是ajax请求,因为浏览器的同 ...
- Windows下文件夹扩展名
回收站.{645ff040-5081-101b-9f08-00aa002f954e} 拨号网络.{992CFFA0-F557-101A-88EC-00DD010CCC48} 打印机.{2227a280 ...
- 缓存系列之二:CDN与其他层面缓存
缓存系列之二:CDN与其他层面缓存 一:内容分发网络(Content Delivery Network),通过将服务内容分发至全网加速节点,利用全球调度系统使用户能够就近获取,有效降低访问延迟,提升服 ...
- how to avoid inheritance abuse
Liskov Principle: if S is a subtype of Type T, then any objects of type T may be repalced by objects ...
- Expm 10_1 带负权值边的有向图中的最短路径问题
[问题描述] 对于一个带负权值边的有向图,实现Bellman-Ford算法,求出从指定顶点s到其余顶点的最短路径,并判断图中是否存在负环. package org.xiu68.exp.exp10; p ...
- 解决FTPClient上传文件为空,显示0字节
JAVA使用FTPClient上传文件时总是为空,而使用FileZilla客户端时却不会. 后来查了下资料,FTP服务器有被动模式和主动模式.(具体查另外资料) 在JAVA中将FTPClient设置为 ...
- JavaScript 加解密库(crypto-js)
1. 概述 1.1 说明 crypto-js(GitHub)是谷歌开发的一个纯JavaScript的加密算法类库,可以非常方便的在前端进行其所支持的加解密操作.目前crypto-js已支持的算法有:M ...
- centos6.5安装python2.7、pip、numpy、scipy
1..安装Development Tools yum groupinstall -y 'development tools' 2.安装SSL.bz2.zlib来为Python的安装做好准备工作 yum ...