Mongod用户使用终端创建并检查现有用户

时间:2018-10-16 07:51:55

标签: mongodb mongodb-query

我要检查mongod中的现有用户列表并创建一个新用户,该怎么办?

dz-gg-05@dz-gg-05:~$ sudo seervice monogod status 
[sudo] password for dz-gg-05: 
sudo: seervice: command not found
dz-gg-05@dz-gg-05:~$ sudo service monogod status 
Unit monogod.service could not be found.
dz-gg-05@dz-gg-05:~$ sudo service monogod start
Failed to start monogod.service: Unit monogod.service not found.
dz-gg-05@dz-gg-05:~$ 
dz-gg-05@dz-gg-05:~$ sudo service monogod start
Failed to start monogod.service: Unit monogod.service not found.
dz-gg-05@dz-gg-05:~$ sudo service mongod start
dz-gg-05@dz-gg-05:~$ ^C^C
dz-gg-05@dz-gg-05:~$

0 个答案:

没有答案