MongoDB-2.sh
· 134 B · Bash
原始檔案
$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongosh shell connects to localhost and test database by default:
$ ./mongosh
test> help
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 |