mongodb start a remote connection

#mongodb start the remote connection
running in the background command:
./mongod /etc/mongod.conf -dbpath -f / usr / local / MongoDB -logpath /var/log/mongodb/mongod.log -logappend -fork -port 27017

Check the status of
netstat -lanp | grep "27017"
** close mongod service **
the Use ADMIN
db.shutdownServer ()

Persistence is set
to prevent a server crash or shut down, data loss.
journal mechanism, 2.0 are self-starting, the corresponding data is automatically backed up directory.

Published 12 original articles · won praise 0 · Views 436

Guess you like

Origin blog.csdn.net/qq_36523203/article/details/103301955