Search code examples
node.jsmongoosemlab

Nodejs connect to mongoose failed on server(ubuntu), but worked on local


I have create a node-pro with node+mongoose+mlab on backend,and vuejs on frontend, it worked on local, however, server can not connected to mlab or mongo.

My server system is Ubuntu, with Nginx server enter image description here

enter image description here

and server did not worked

enter image description here


Solution

  • I solved this problem: My server's security group rules' port should be opened, it was why logged network error.