Created
September 26, 2016 07:27
-
-
Save chuyihuang/07bb9072ea75cdf36148af7463a48f6b to your computer and use it in GitHub Desktop.
mac安裝mongodb後自動啟動 | mongodb auto start after installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 用brew install mongoldb | |
2. 安裝完畢後用ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents 連結 | |
3. 加入自動launch清單 launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
4. 如果都無法啟動的話,可能要檢查log資料夾的權限: /usr/local/var/log/mongodb 改成使用者的 | |
chown -R username mongodb | |
5. 以及chgrp: | |
chgrp -R groupname mongodb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment