Check below services are running or not on MAC.
1)Mongodb
ps -ef | grep mongod | grep -v grep | wc -l | tr -d ' '
This will get you the number of MongoDB processes running, thus if it is other than 0, then you have MongoDB running on your system.
2)Elasticsearch