Linux源码安装memcached
2015-07-12 10:28
645 查看
基本步骤:
1、下载压缩文件(wget 文件url)
2、解压(tar -zxvf 文件名)
3、configure (./configure --prefix=安装目录)
4、make编译 (前提是步骤3没问题,否则转步骤1)
5、make install 安装 (安装完后记得cd到安装目录查看相应文件是否生成)
6、清除安装过程中生成的临时文件和配置文件 (make clean & make distclean)
以下是安装过程中用到的所有命令
[root@localhost ~]# mkdir test
[root@localhost ~]# cd test
[root@localhost test]# wget http://www.memcached.org/files/memcached-1.4.24.tar.gz
[root@localhost test]# tar -zxvf memcached-1.4.24.tar.gz
[root@localhost test]# mkdir memcached
[root@localhost test]# mkdir libevent
[root@localhost test]# wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
[root@localhost test]#
tar -zxvf libevent-1.4.14b-stable.tar.gz
[root@localhost
test]# cd libevent-1.4.14b-stable
[root@localhostlibevent-1.4.14b-stable]#
./configure --prefix=/root/test/libevent
[root@localhost libevent-1.4.14b-stable]#
make
[root@localhost libevent-1.4.14b-stable]#
make install
[root@localhost libevent-1.4.14b-stable]#
cd ../memcached-1.4.24
[root@localhost memcached-1.4.24]#
./configure --prefix=/root/test/memcached --with-libevent=/root/test/libevent
[root@localhost memcached-1.4.24]#
make
[root@localhost memcached-1.4.24]#
make install
[root@localhost memcached-1.4.24]#
cd ../memcached
[root@localhost memcached]#
ll
到此可见memcached目录下的文件,即安装成功,注意安装memcached之前需要libevent,两者版本要一致,我创建了一个临时的目录用于测试,实际安装过程中可能指定目录为/root/local/memcached,最好自己指定目录,便于管理
1、下载压缩文件(wget 文件url)
2、解压(tar -zxvf 文件名)
3、configure (./configure --prefix=安装目录)
4、make编译 (前提是步骤3没问题,否则转步骤1)
5、make install 安装 (安装完后记得cd到安装目录查看相应文件是否生成)
6、清除安装过程中生成的临时文件和配置文件 (make clean & make distclean)
以下是安装过程中用到的所有命令
[root@localhost ~]# mkdir test
[root@localhost ~]# cd test
[root@localhost test]# wget http://www.memcached.org/files/memcached-1.4.24.tar.gz
[root@localhost test]# tar -zxvf memcached-1.4.24.tar.gz
[root@localhost test]# mkdir memcached
[root@localhost test]# mkdir libevent
[root@localhost test]# wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
[root@localhost test]#
tar -zxvf libevent-1.4.14b-stable.tar.gz
[root@localhost
test]# cd libevent-1.4.14b-stable
[root@localhostlibevent-1.4.14b-stable]#
./configure --prefix=/root/test/libevent
[root@localhost libevent-1.4.14b-stable]#
make
[root@localhost libevent-1.4.14b-stable]#
make install
[root@localhost libevent-1.4.14b-stable]#
cd ../memcached-1.4.24
[root@localhost memcached-1.4.24]#
./configure --prefix=/root/test/memcached --with-libevent=/root/test/libevent
[root@localhost memcached-1.4.24]#
make
[root@localhost memcached-1.4.24]#
make install
[root@localhost memcached-1.4.24]#
cd ../memcached
[root@localhost memcached]#
ll
到此可见memcached目录下的文件,即安装成功,注意安装memcached之前需要libevent,两者版本要一致,我创建了一个临时的目录用于测试,实际安装过程中可能指定目录为/root/local/memcached,最好自己指定目录,便于管理
相关文章推荐
- memcached学习笔记(一)
- 《Memcache技术学习》系列技术文章整理收藏
- mongodb redis memcached的对比
- php memcache 基础操作
- Memcache 查看列出所有key方法
- 在telnet下操作memcache详解(操作命令详解)
- memcached-session-manager配置
- Linux安装php扩展memcache
- 编译安装Memcache
- Nginx + Memcached + Tomcat 集群
- Tomcat+Memcached实现Session共享
- Redis与Memcached的区别
- Windows下java memcached 使用
- 使用Memcached、Spring AOP构建数据库前端缓存框架
- Memcache 安装与使用
- Memcache简介 & 内存分配机制
- Memcache面试题
- Redis简介 & 与Memcache的区别
- Linux上安装Memcached服务
- memcache-命令-stats