Mongodb setup issues

hey guys i want to install mongodb server and shell on a machine with no internet access.

i downloaded mongodb-org-shell_5.0.8_amd64.deb and mongodb-org-server_5.0.8_amd64.deb and moved it to that machine and tried installing using apt-get …

i am getting the following error
MongoDB shell version v5.0.8

connecting to: mongodb://

Error: couldn’t connect to server, connection attempt failed: SocketException: Error connecting to :: caused by :: Connection refused :



exception: connect failed

exiting with code 1

os- Ubuntu -20.04

Your mongod should be up and running before you can connect to it
Check service status if it was started as service
ps -ef|grep mongod if started manually from command line