Mongo error while connecting

E QUERY [js] Error: couldn’t connect to server, connection attempt failed: HostUnreachable: Connection reset by
peer :
exception: connect failed

Ive started monogd and then running the command “mongo --ssl --sslPEMKeyFile client.pem --sslCAFile ca.pem” in another command prompt and getting that error

Are you using vagrant?
On which box you started the mongod and issued mongo command
Security course uses database

vagrant@database:~$ hostname

no sir im not using vagrant.Is there any problem with that.?

Please check your mongod processes by running ps -ef | grep mongod. Make sure it is running.

Also, share the mongod command which you have used.


C:\Users\deepu> ps -ef | grep mongod
‘ps’ is not recognized as an internal or external command,
operable program or batch file.

Use tasklist command or Task Manager to view the process in Windows.

Also please share the mongod command you have used.