这是一个创建于 3487 天前的主题,其中的信息可能已经有所发展或是发生改变。
以 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
3 条回复 • 1970-01-01 08:00:00 +08:00
 |
|
1
steveshi 2013-11-09 16:39:01 +08:00
有什么优势吗?相对 launchctl?
|
 |
|
3
vangie 2013-11-09 17:21:49 +08:00
gem install lunchy 已经用上,非常不错哦
|