centos 安裝memcache

來源:互聯網
上載者:User

標籤:style   blog   http   color   os   strong   檔案   ar   

1、由於memcached是基於libevent的,因此需要安裝libevent,libevent-devel

  1. 方法一:# yum install libevent libevent-devel -y(一鍵安裝的形式)
  2. 方法二:1>  tar zxvf libevent-2.0.17-stable.tar.gz    2>./configure --prefix=/usr/local/memcache && make && make install

2、下載並解壓memcached-1.4.5

memcached官方網站是:http://memcached.org/

  1. # cd /usr/local
  2. # mkdir memcache(將壓縮包放在該檔案夾下)
  3. # cd /usr/local/memcache
  4. # tar -xvzf memcached-1.4.5.tar.gz

3、編譯安裝memcached-1.4.5

  1. # cd memcached-1.4.5
  2. # ./configure --prefix=/usr/local/memcache
  3. # make
  4. # make install

4、是否正常?Telnet上去看看

  1. telnet 192.168.40.151 11211  

然後輸入 stats 查看Memcached服務是否正常
然後quit退出

參考資料:http://snowolf.iteye.com/blog/1447348

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.