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

后端 未结 7 1956
不思量自难忘°
不思量自难忘° 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条回答
  •  -上瘾入骨i
    2021-01-30 01:14

    To restart: If you have the memcached starting up with launchd and your plist file has

      KeepAlive
      
    

    Then you can just kill the process and it will reboot automagically.

    ps ux | grep memcached
    pkill -f memcached
    ps ux | grep memcached
    

    To stop launchd from restarting automatically:

    launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
    

    To add memcached to launchd again:

    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
    

    To uninstall something installed by homebrew:

    brew uninstall memcached
    

提交回复
热议问题