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

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

    [root@localhost ~]# tar zxvf memcached-1.4.36.tar.gz
    [root@localhost ~]# cd memcached-1.4.36
    [root@localhost memcached-1.4.36]# mkdir /home/memcache
    [root@localhost memcached-1.4.36]# ./configure --prefix=/home/memcache/ --with-libevent=/home/libevent
    [root@localhost memcached-1.4.36]# make
    [root@localhost memcached-1.4.36]# make install
    [root@localhost bin]# ./memcached -d -m 1024 -u root
    [root@localhost 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

    [root@localhost 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

  • 相关阅读:
    什么是Azkaban?
    设计模式 应用场景
    初识Nginx
    C++著名程序库的比较和学习经验(STL.Boost.GUI.XML.网络等等)
    C++对象模型笔记之程序设计模型
    深度探索C++对象模型之C++对象模型笔记
    对于数据库设计者而言,在设计表属性类型时应该考虑哪些问题?
    Thread 多线程 同步
    Thread sleep()休眠
    Java 多线程(Thread)学习
  • 原文地址:https://www.cnblogs.com/songyuejie/p/6921463.html
Copyright © 2011-2022 走看看