某草草2017-05-02 09:24:07
It looks like you rpm
installed it? Do you need to start the server first:
netstat -pln | grep mongod
Start if not started:
sudo service mongod start
In addition, you still need to check whether there are any errors after executing the shell like this. If there is any error message, please give it.