本文介紹了MongoDB 可以打包在 Electron 應(yīng)用程序中嗎?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問(wèn)題描述
我可以將 MongoDB 打包到一個(gè) Electron 應(yīng)用程序中,這樣我就不需要在客戶端的機(jī)器上安裝它了嗎?我正在 OSX 上開(kāi)發(fā)一個(gè)應(yīng)用程序,它可能會(huì)在 Windows 上使用.我需要在客戶端上單獨(dú)安裝 Mongo 嗎?
Can I package MongoDB in an Electron app so I don't need to install it on a client's machine? I'm developing an app on OSX and it will probably be used on Windows. Do I need to separately install Mongo on the clients?
推薦答案
是的.我過(guò)去使用過(guò)這種方法.它引入了 mongod.exe 并啟動(dòng)它.
Yes. I have used this method in the past. It brings in mongod.exe and launches it.
看看這里是怎么做的.
https://github.com/nosqlclient/nosqlclient-electron/blob/master/index.js
這篇關(guān)于MongoDB 可以打包在 Electron 應(yīng)用程序中嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!