Mongo error while connecting

E QUERY [js] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed: HostUnreachable: Connection reset by
peer :
connect@src/mongo/shell/mongo.js:344:17
@(connect):2:6
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
database

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.

Kanika

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.

Kanika