MemCached 安裝筆記

安裝步驟:git

      1. 下載libevent & memcached 源碼包github

     分別把memcached和libevent下載回來,放到 /tmp 目錄下:memcached

     # cd /tmp
     # wget http://memcached.org/files/memcached-1.4.20.tar.gz測試

     # wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gzspa

      2.安裝libeventget

      # tar zxvf libevent-2.0.21-stable.tar.gz源碼

      # cd libevent-2.0.21-stableit

      # ./configure -prefix=/usrevent

      # maketable

      #make install

       若是提示make command not found 請先安裝,命令是

       #yum -y install gcc automake autoconf libtool make

       3.測試libevent是否安裝成功:
       # ls -al /usr/lib | grep libevent

      4.安裝memcached,同時須要安裝中指定libevent的安裝位置:
      # cd /tmp
      # tar zxvf memcached-1.2.0.tar.gz
      # cd memcached-1.2.0
      # ./configure -with-libevent=/usr
      # make
      # make install

 

      5.測試是否成功安裝memcached:

      # ls -al /usr/local/bin/mem

      6啓動memcached

      # /usr/local/bin/memcached -p 11211 -m 512m -d -u root

相關文章
相關標籤/搜索