I'm using mongodb database to save my application data into collection but by some reasons the mongodb connection is break and there is lot of problems occurs and I want to check the mongodb connection through terminal command. I searched for it and I found three commands which will be used but I'm confused that which command I have to use in the golang code. Command 1. pgrep mongod this command will return me PID (process Id). Command 2. ps -ef...
Originally asked by gourav on Stack Exchange (askubuntu) (CC BY-SA 4.0).