I'm getting an error while deploying Node.Js a

2019-05-21 11:58发布

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!

[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.

1条回答
姐就是有狂的资本
2楼-- · 2019-05-21 12:11

if using the solution outlined here then this got me going:

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

查看更多
登录 后发表回答