Mongod startup Error

I started the mongod process but it’s not allowing to start.I created the data folder in root.
It’s showing me the below error:
Failed to unlink socket file /tmp/mongodb-27017.sock Unknown error
Can you please help me.

Hi @_chaitanya,

Please try the solution mentioned in the following link:

https://www.mkyong.com/mongodb/mongodb-failed-to-unlink-socket-file-tmpmongodb-27017/

If the issue still persists, please share the complete screenshot of the command that you ran and the error message.

Let me know, if it helps.

Thanks,
Sonali

Yeah,
I am Done with the problem.Thanks!.