mongodb服务器还需要在启动时加一个auth参数,文档中这样写 Run the database (mongod process) with the --auth option to enable security. You must either have added a user to the admin db before starting the server with --auth, or add the first user from the localhost interface. 我也觉得这个设计很奇怪,为啥不直接缺省带上呢。
mongodb服务器还需要在启动时加一个auth参数,文档中这样写
我也觉得这个设计很奇怪,为啥不直接缺省带上呢。