brew install memcached
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
加入开机启动
cp /usr/local/Cellar/memcached/1.5.2/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents
launchctl load/unload ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
连接
telnet 127.0.0.1 11211