Hi Raj,
I have a task to change the default ports from 27017 & 27018 to something different. I tried to change them in mongod.conf & mongodb.conf and also on the mongod.conf on the config servers.
Could you clarify on your deployment topology? Config servers implies having a sharded cluster, but you posted the output of rs.status() of a replica set.
If your deployment is a sharded cluster, I would strongly suggest to be careful when manipulating the contents of the config servers manually. The config servers are vital to the operation of a sharded cluster, and their loss could render your cluster inoperable.
However, if your deployment is a replica set, it’s not enough to only change the parameters of mongod process to change the ports. The replica set configuration in rs.conf() should be changed as well to reflect the new settings. You can find the procedure in Change Hostnames in a Replica Set.
If you are still having issues with your deployment, could you post:
Regards,
Amar