Use
./mongod --fork
or
./mongod &
To turn off, you must send him a TERM signal. I'm not sure if this is the same in centOS, but I do it in Ubuntu.
ps aux | grep mongod ps aux | grep mongod - find PID
kill -TERM PID - send a TERM signal.
You can also close it from the shell.
$ ./mongo > use admin > db.shutdownServer()
source share