以 mysql/mongodb/redis/memcached 为例
1. homebrew 安装
brew install mysql mongodb redis memcached
2. 把他们的 plist 文件拷贝到 ~/Library/LaunchAgents
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
3. lunchy 启动
$ lunchy list
homebrew.mxcl.memcached
homebrew.mxcl.mongodb
homebrew.mxcl.mysql
homebrew.mxcl.redis
lunchy start/stop/restart/status mysql/mongodb/redis/memcached
4. tail -f /usr/local/var/log/mongodb/mongo.log
看 query/slow log
1. homebrew 安装
brew install mysql mongodb redis memcached
2. 把他们的 plist 文件拷贝到 ~/Library/LaunchAgents
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
3. lunchy 启动
$ lunchy list
homebrew.mxcl.memcached
homebrew.mxcl.mongodb
homebrew.mxcl.mysql
homebrew.mxcl.redis
lunchy start/stop/restart/status mysql/mongodb/redis/memcached
4. tail -f /usr/local/var/log/mongodb/mongo.log
看 query/slow log