Mac OS使用brew安裝memcached


1.查看安裝信息

brew info memcached

顯示如下:

memcached: stable 1.5.9 (bottled)
High performance, distributed memory object caching system
https://memcached.org/
Conflicts with:
  mysql-cluster (because both install `bin/memcached`)
/usr/local/Cellar/memcached/1.5.9 (11 files, 199.3KB) *
  Poured from bottle on 2018-08-08 at 17:23:04
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/memcached.rb
==> Dependencies
Required: libevent ✔
==> Options
--with-sasl
	Enable SASL support -- disables ASCII protocol!
--with-sasl-pwdb
	Enable SASL with memcached's own plain text password db support -- disables ASCII protocol!
==> Caveats
To have launchd start memcached now and restart at login:
  brew services start memcached
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/memcached/bin/memcached

2.安裝依賴項libevent

brew install libevent 

3.安裝memcached

brew install memcached

4.啟動

brew services start memcached

5.查看是否已經成功啟動

ps -ef|grep memcached

輸出如下:

501 57972     1   0  5:27下午 ??         0:00.04 /usr/local/opt/memcached/bin/memcached -l localhost
  501 58160   707   0  5:31下午 ttys000    0:00.00 grep memcached

6.測試連接

telnet localhost 11211


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM