connect ECONNREFUSED 127.0.0.1:27017'

前端 未结 8 1080
南旧
南旧 2021-01-13 19:36

I have that code:

var express = require(\'express\'),
    stylus = require(\'stylus\'),
    logger = require(\'morgan\'),
    bodyParser = require(\'body-par         


        
8条回答
  •  走了就别回头了
    2021-01-13 20:21

    I know this issue is old, but i came across a similar issue and the above solutions did not work for me, I'm using Ubuntu 20.04 LTS.

    What i did to make it work was just running mongo service using this command:

    $ mongod
    

    Then everything worked fine

提交回复
热议问题