我发现了一个错误,而在弹性魔豆与部署的MongoDB Node.js的应用 [英] I'm getting an error while deploying Node.Js app with mongoDB on Elastic Beanstalk
问题描述
我们正尝试用Node.js的亚马逊AWS弹性魔豆,但部署的MongoDB它给人看起来完全脱离这个星球上的错误。请帮帮忙!
We are trying to deploy mongoDB with Node.js on Amazon AWS Elastic Beanstalk but its giving an error which looks completely out of this planet. Please help!
[实例:我-28bfc6e4] 命令失败的实例。返回的 code:127输出:(截断)... riorities,更新,MOTD,升级辅助包装蒙戈 - 10gen的服务器-2.4.14-mongodb_1.x86_64 过时通过MongoDB的-组织,其服务已经安装无关/etc/init.d/mongos.sh R-2.6.10-1.x86_64:线路1:在/ usr / bin中/ mongos:没有这样的文件或目录。钩 /opt/elasticbeanstalk/hooks/appdeploy/enact/98_newrelic_sysmond.sh 失败。欲了解更多详细信息,请/var/log/eb-activity.log使用控制台或EB CLI。
[Instance: i-28bfc6e4] Command failed on instance. Return code: 127 Output: (TRUNCATED)...riorities, update-motd, upgrade-helper Package mongo-10gen-server-2.4.14-mongodb_1.x86_64 is obsoleted by mongodb-org-server-2.6.10-1.x86_64 which is already installed Nothing to do /etc/init.d/mongos.sh: line 1: /usr/bin/mongos: No such file or directory. Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/98_newrelic_sysmond.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
推荐答案
如果用概括的解决方案这里那么这有我要去:
if using the solution outlined here then this got me going:
01_enable_rootaccess:
命令:echo默认值:ROOT \ requiretty>>在/ etc / sudoers文件
02_install_mongo:
- 命令:百胜安装-y蒙戈 - 10gen的服务器
+命令:百胜安装-y蒙戈 - 10gen的服务器的MongoDB-ORG-mongos
ignoreErrors:真
03_turn_mongod_off:
命令:命令的chkconfig的mongod关闭
01_enable_rootaccess:
command: echo Defaults:root \!requiretty >> /etc/sudoers
02_install_mongo:
- command: yum install -y mongo-10gen-server
+ command: yum install -y mongo-10gen-server mongodb-org-mongos
ignoreErrors: true
03_turn_mongod_off:
command: sudo chkconfig mongod off
这篇关于我发现了一个错误,而在弹性魔豆与部署的MongoDB Node.js的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!