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

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

    You can enable Memcached to automatically load on login.

    This first line creates a symlink (symbolic link) from where Homebrew installed it to the LaunchAgents folder.

    ln -sfv /usr/local/Cellar/memcached/1.4.17/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents/
    

    Then to launch it now:

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

提交回复
热议问题