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

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

    And you can also create aliases

    alias memcached-start="launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist"
    alias memcached-stop="launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist"
    alias memcached-restart="launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist;launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist"
    

    and after that you cant easy start/stop/restart memcached

    memcached-start
    memcached-stop
    memcached-restart
    
    0 讨论(0)
提交回复
热议问题