流星:意外的mongo退出代码14.重新启动.无法启动mongo服务器 [英] Meteor: Unexpected mongo exit code 14. Restarting.Can't start mongo server
问题描述
当我尝试启动流星应用程序时,出现此错误
when i try to start meteor app i get this error
=> Started proxy.
Unexpected mongo exit code 14. Restarting.
Unexpected mongo exit code 14. Restarting.
当我尝试通过shell访问mongodb时,一切正常,shell打开并连接到mongodb
and i when try to access mongodb via shell everything is ok and shell opens and connects to mongodb
mongodb日志文件也很干净,没有显示任何错误
mongodb log file is also clean and doesn't show any error
我正在
我的操作系统是Ubuntu 16.04
my os is Ubuntu 16.04
mongod --fork --logpath /var/log/mongodb.log
推荐答案
如果在Vagrant/VirtualBox中运行Ubuntu时遇到此问题,则问题出在同步的vagrant文件夹中.解决方法是在主目录中初始化.meteor目录,并将其安装在同步的文件夹中.假设您的流星应用程序名为MyApp,而/vagrant是已同步的文件夹,则操作方法如下:
If you're having this issue running Ubuntu inside Vagrant/VirtualBox, then the problem come from working in the synced vagrant folder. The workaround is to initialize the .meteor directory in the home directory and to mount it in the synced folder. Assuming your meteor app is called MyApp and the /vagrant is the synced folder, here's how to do it:
cd ~
meteor create MyApp
cd MyApp
meteor
cd /vagrant/MyApp
sudo mount --bind ~/MyApp/.meteor/ .meteor
meteor
这篇关于流星:意外的mongo退出代码14.重新启动.无法启动mongo服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!