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

后端 未结 7 2111
不思量自难忘°
不思量自难忘° 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:17

    You can also use Lunchy to set the start/stop. Lunchy is a wrapper written over launchctl. I’ve written a detailed post about this.

    $ gem install lunchy
    $ mkdir ~/Library/LaunchAgents
    $ cp /usr/local/Cellar/memcached/$version/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents/
    

    To start memcached

    $ lunchy start memcached
    

    To stop memcahed

    $ lunchy stop memcached
    

提交回复
热议问题