Linux安装memcached

[[email protected] ~]# tar zxvf libevent-2.1.8-stable.tar.gz
[[email protected] ~]# cd libevent-2.1.8-stable
[[email protected] libevent-2.1.8-stable]# mkdir /home/libevent
[[email protected] libevent-2.1.8-stable]# ./configure --prefix=/home/libevent/
[[email protected] libevent-2.1.8-stable]# make
[[email protected] libevent-2.1.8-stable]# make install

[[email protected] ~]# tar zxvf memcached-1.4.36.tar.gz
[[email protected] ~]# cd memcached-1.4.36
[[email protected] memcached-1.4.36]# mkdir /home/memcache
[[email protected] memcached-1.4.36]# ./configure --prefix=/home/memcache/ --with-libevent=/home/libevent
[[email protected] memcached-1.4.36]# make
[[email protected] memcached-1.4.36]# make install
[[email protected] bin]# ./memcached -d -m 1024 -u root
[[email protected] bin]# ps -ef|grep memcached
root      12255      1  0 13:58 ?        00:00:00 ./memcached -d -m 1024 -u root
root      12263   2345  0 13:58 pts/1    00:00:00 grep memcached

[[email protected] bin]# netstat -nlp|grep memcached
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      12255/./memcached  
tcp        0      0 :::11211                    :::*                        LISTEN      12255/./memcached  
udp        0      0 0.0.0.0:11211               0.0.0.0:*                               12255/./memcached  
udp        0      0 :::11211                    :::*                                    12255/./memcached

时间: 2024-10-05 23:54:40

Linux安装memcached的相关文章

linux 安装memcached C/C++使用libmemcached库(续)

#include <iostream> #include <string> #include <libmemcached/memcached.h> using namespace std; int main(int argc,char *argv[]) { //connect server memcached_st *memc; memcached_return rc; memcached_server_list_st servers = NULL; time_t ex

linux 安装memcached

一.安装libevent sudo wget http://www.monkey.org/~provos/libevent-1.3.tar.gzsudo tar zxvf libevent-1.3.tar.gzcd libevent-1.3sudo ./configure -prefix=/usrsudo makesudo make install查看libevent是否安装成功:ls -al /usr/lib | grep libevent 二.安装Memcachedsudo wget htt

Linux安装Memcached服务

环境: CentOS 6.4 libevent-1.4.14b-stable memcached-1.4.21 查看是否安装libevent[[email protected] ~]# rpm -qa |grep libevent 一.下载Memcache服务器端 memcache官网:http://memcached.org/ libevent官网:http://www.monkey.org/~provos/libevent/ Memcache用到了libevent这个库用于Socket的处理

redhat linux安装memcached

一.环境 1.操作系统:redhat linux 5.5 2.libevent:libevent-2.0.21-stable.tar.gz memcached:memcached-1.4.21.tar.gz 二.安装 1.因为memcached依赖libevent,故需要先安装libevent. 2.源码安装,进入安装包所在目录,执行以下命令: tar -zxvf libevent-2.0.21-stable.tar.gz 将安装包解压, 然后进入解压后的目录,执行安装命令: ./configu

linux 安装 memcached

安装 memcached yum insatll memcached 我们安装完之后 我们就需要的是 启动了 命令如下 memcached -d -p 11211 -u root 第二步  就是在linux中安装php的memcache的扩展(根据提示安装): https://www.linuxidc.com/Linux/2017-05/143317.htm 原文地址:https://www.cnblogs.com/ningjiabing/p/10877400.html

linux安装memcached及memcache扩展

一.安装libevent函数库 下载地址:http://libevent.org 默认被安装到:/usr/local/lib目录下 安装memcached之前需要先安装libevent函数库. 可以通过#ls -al /usr/local/lib | grep libevent命令查看是否已安装libevent函数库. 如果没安装,则需下载并安装libevent函数库. 二.安装memcached 下载地址:http://memcached.org 默认被安装到:/usr/local/bin目录

Mac linux 安装memcached服务

今天在Mac上安装memcached服务的时候 由于安装memcached之前需要安装libevent依赖包 所以使用brew install libevent 安装过程中报错 Warning: You are using OS X 10.11. We do not provide support for this pre-release version. You may encounter build failures or other breakage. ==> Downloading ht

linux下给php安装memcached及memcache扩展(转)

http://kimi.it/257.html (另外的方法)linux安装memcached及memcache扩展一.安装libevent函数库下载地址:http://libevent.org默认被安装到:/usr/local/lib目录下安装memcached之前需要先安装libevent函数库.可以通过#ls -al /usr/local/lib | grep libevent命令查看是否已安装libevent函数库.如果没安装,则需下载并安装libevent函数库. 二.安装memcac

服务器搭建--Linux安装erlang

1.安装依赖环境: 1)安装GCC GCC-C++ Openssl等模块,安装过就不需要安装了 yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel 2)安装ncurses yum -y install ncurses-devel 2.下载erlang: 官网下载:http://erlang.org/download/ 或者直接下载 [[email protected] ~]# cd /usr/lo