zoukankan      html  css  js  c++  java
  • Linux 服务器 安装 memcached

    linux centos

    一、memcached的安装

    1、下载 memcached-1.4.33.tar.gz、libevent-2.0.22-stable.tar.gz

      安装 memcached 依赖  libevent

    2、安装 libevent

    a、解压 [root@iZ28b4kreuaZ webserver]# tar zxvf libevent-2.0.22-stable.tar.gz

    b、安装在 /usr/local/下

    进入解压目录下:[root@iZ28b4kreuaZ libevent-2.0.22-stable]# ./configure --prefix=/usr/local/libevent

    c、编译并安装 [root@iZ28b4kreuaZ libevent-2.0.22-stable]# make && make install

    3、安装memcached

    a、解压 [root@iZ28b4kreuaZ webserver]# tar zxvf memcached-1.4.33.tar.gz

    b、安装在 /usr/local/下

      进入解压目录下 [root@iZ28b4kreuaZ memcached-1.4.33]# ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent

    c、编译并安装 [root@iZ28b4kreuaZ memcached-1.4.33]# make && make install

    d、查看安装目录

    表示安装成功。

    二、memcached基本操作

    1、启动 memcached

    [root@iZ28b4kreuaZ memcached]# bin/memcached -d -u root -p 11211 -c 1024

    -d:memcached作为后台进程运行

    -u: 指定当前是root用户

    -p:指定端口 11211 是memcached的默认端口号

    -c:最大支持的连接数

  • 相关阅读:
    Xcode官方下载地址
    IOS9 Swift
    IOS常用框架
    JS 阻止事件冒泡
    ASP.NET MVC验证DateTime的问题
    如何将图片嵌入到Html中
    Linq使用中的ToList注意事项
    LINQ to Entity里面不能使用DateTime
    SQL Procedure Operations
    Windows Service Operations
  • 原文地址:https://www.cnblogs.com/jalja/p/6121978.html
Copyright © 2011-2022 走看看