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 ...
随机推荐
- Linux iptables防火墙
查找安装包yum list | grep iptables 安装iptables yum install iptables-services 重启防火墙使配置文件生效 systemctl restar ...
- Mysqli扩展类
Mysqli 扩展是需要php5.0版本以上的支持 主要有以下的3个类 MySQLi类,基本操作 MySQL_STMT类,预处理操作 MySQLi_RESULT类,结果操作 Mysqli的编写有两种方 ...
- CPU 利用率背后的真相,只有 1% 人知道【转】
导读:本文翻译自 Brendan Gregg 去年的一篇博客文章 “CPU Utilization is Wrong”,从标题就能想到这篇文章将会引起争议.文章一上来就说,我们“人人皆用.处处使用,每 ...
- cryptsetup文件系统加密
今天做了SYC攻防题的文件系统挂载部分,在找到挂载最内层的final文件时发现mount无法识别,这也许就是一个加密的文件系统吧,还好-在龟速的 网络环境下查阅到了losetup循环挂载系统命令,但是 ...
- Codeforces 1039D You Are Given a Tree [根号分治,整体二分,贪心]
洛谷 Codeforces 根号分治真是妙啊. 思路 考虑对于单独的一个\(k\)如何计算答案. 与"赛道修建"非常相似,但那题要求边,这题要求点,所以更加简单. 在每一个点贪心地 ...
- bzoj4025 二分图 [分治,并查集]
传送门 思路 是二分图的充要条件:图没有奇环. 考虑按时间分治,用可撤销并查集维护点到根的距离. 仍然可以用一个小trick把两点连边变成根连边,可以看这里. 每次连边时若不连通则连上,否则判一下有没 ...
- centos6.5 python命令行模式左右建无法使用
我的虚拟机是centos6.5,自带python2.6:安装了Python2.7(安装了pip管理工具)后,在python2.7命令行模式下,左右键及退格键无法使用,基于以上情况,我进行了百度: 第一 ...
- C#遍历指定文件夹中的所有文件(转)
C#遍历指定文件夹中的所有文件 DirectoryInfo TheFolder=new DirectoryInfo(folderFullName);//遍历文件夹foreach(DirectoryIn ...
- SwipeRefreshLayout,用最少的代码定制最美的上下拉刷新样式
下拉刷新框架其实有很多,而且质量都比较高.但是在日常开发中,每一款产品都会有一套自己独特的一套刷新样式.相信有很多小伙伴在个性化定制中都或多或少的遇到过麻烦.今天我就给大家推荐一个在定制方面很出彩的一 ...
- Swift 学习- 08 -- 闭包
// 闭包是自包含的函数代码块, 可以在代码中被传递和使用, swift 中的闭包 与 C语言 和 OC 中的代码块 (blocks) 以及其他一些编程语言中的匿名函数比较类似 // 闭包可以捕获和存 ...