i want to install MongoDB in my AWS Cloud9 server. so i followed the instruction as the cloud9 community page says (link: https://community.c9.io/t/setting-up-mongodb/1717), but the command to run th e mongodb server in c9 command line i.e., $ ./mongod returns ./mongod: line 1: mongod: command not found. help me to fix this.
i've tried searching about it on YouTube but it didn't worked.
vocstartsoft:~ $ sudo yum install -y mongodb-org
Loaded plugins: priorities, update-motd, upgrade-helper 1062 packages excluded due to repository priority protections No package mongodb-org available. Error: Nothing to do
vocstartsoft:~ $ mkdir data
vocstartsoft:~ $ echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
vocstartsoft:~ $ chmod a+x mongod
vocstartsoft:~ $ ./mongod
./mongod: line 1: mongod: command not found
vocstartsoft:~ $
we can start mongodb by running the mongod script on your project root:
command :- ./mongod
Aucun commentaire:
Enregistrer un commentaire