mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl
start homebrew.mxcl.mongodb
本文介绍如何通过命令行在MacOS系统上配置MongoDB服务启动项,包括创建必要的目录、复制配置文件到启动代理目录以及使用launchctl加载启动项。
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl
start homebrew.mxcl.mongodb

被折叠的 条评论
为什么被折叠?