knox 修订了这个 Gist . 跳至此修订
1 file changed, 6 insertions
MongoDB-2.sh(file created)
@@ -0,0 +1,6 @@ | |||
1 | + | $ sudo mkdir -p /data/db | |
2 | + | $ ./mongod | |
3 | + | $ | |
4 | + | $ # The mongosh shell connects to localhost and test database by default: | |
5 | + | $ ./mongosh | |
6 | + | test> help |
更新
更早