今天装了一下mongodb ./mongo
怎么没法用命令行操作啊比如:show dbs;
It looks like you rpminstalled it? Do you need to start the server first:
rpm
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.
It looks like you
rpm
installed it? Do you need to start the server first:Start if not started:
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.