Installed memcached via homebrew, how to start and stop server?

后端 未结 7 1955
不思量自难忘°
不思量自难忘° 2021-01-30 00:54

I have memcached installed via homebrew.

  1. how do I start/stop the server?

  2. Any command-line tools to interact with memcached?

  3. doe

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 01:04

    Additionally you can run "brew info", if you have forgotten about the instructions.

    → brew info memcached
    memcached 1.4.7
    http://memcached.org/
    Depends on: libevent
    /usr/local/Cellar/memcached/1.4.6 (8 files, 156K)
    
    You can enable memcached to automatically load on login with:
    mkdir -p ~/Library/LaunchAgents
    cp /usr/local/Cellar/memcached/1.4.7/com.danga.memcached.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/com.danga.memcached.plist
    
    Or start it manually:
        /usr/local/bin/memcached
    
    Add "-d" to start it as a daemon.
    
    http://github.com/mxcl/homebrew/commits/master/Library/Formula/memcached.rb
    

提交回复
热议问题