如何在mongo shell中禁用连接消息

时间:2017-08-09 12:04:32

标签: mongodb

当我通过shell连接到mongodb服务器时,我将得到以下输出:

MongoDB shell version v3.4.0
connecting to: mongodb://localhost/admin
MongoDB server version: 3.4.0-rc4
Server has startup warnings:
2017-08-07T09:45:19.112+0900 I CONTROL  [main] ** WARNING: You are running this process as the root user, which is not recommended.
2017-08-07T09:45:19.112+0900 I CONTROL  [main]
>

我如何才能播放这些讯息并显示提示?我是否需要在mongo-shell或mongodb服务器中禁用它?

0 个答案:

没有答案