node.js - How to start and connect mongodb database in webstorm?
黄舟
黄舟 2017-05-16 13:38:03
0
1
951

I have installed the mongodb database, node, mongoose module, and also downloaded the mongo plug-in in webstorm,

But I found that every time I have to enter mongod--dbpath=path in the mongo shell command line to manually start the database before I can successfully connect to webstorm

How can I start and connect directly?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
Peter_Zhu
  • Download plugin mongo

  • Click shift twice to search shift 搜索 mongo,你会看到 Mongo Explorer, you will see Mongo Explorer, select it and it will appear on the right side of the window.

  • You can see the set flag at the top of the right window, click it, and then you go to configure.

  • After entering the configuration page, there is a green plus sign on the right, as shown below, write your database name
    , and click Test.

  • As shown in the picture below on the right side, it still exists after restarting.

  • Use show dbs; to view.

  • I use phpstorm.

  • ps: Two clicks Shift Very useful, anyone who uses it will know!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template