解決 :MongoDB couldn‘t add user: not authorized on ‘your db‘ to execute command

這個問題主要是mongodb的配置文件開啓了受權驗證,若是要添加用戶能夠先暫時關閉。web ①將mongod.conf配置文件中的authorization置爲disabledmongodb vi /mongodb/single/mongod.conf ②關閉mongodb(直接kill掉進程):shell ps -elf|grep mongo kill -9 199203 ③啓動mongodb:
相關文章
相關標籤/搜索