SocketException: Address already in use MONGODB

前端 未结 11 1193
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 08:42

i found this error when trying to run mongodb. I install it via homebrew. Please assist

Agungs-MacBook-Pro:~ agungmahaputra$ mongod
2017-12-26T15:31:15.911+0         


        
11条回答
  •  孤街浪徒
    2020-12-07 09:14

    if you're using mongodb version 4.*

    in default settings, there should be a "db" folder "/data/db" having the necessary permission.

    to check it the MongoDB service started

    brew services list
    

    if not then run

    brew services start mongodb
    

    run mongo instead of mongod

提交回复
热议问题