After the replica set is set, all master and slave nodes are down due to computer shutdown.
After reconnecting now, all the nodes have become slave nodes. if you want to set config, you can’t set it either. you are prompted to use force argument. how do you do it?
The following is an error tip:
Connecting to the cluster in replica set mode can automatically discover the primary node. You can also use rs.status () to find the current master node on the slave node. Mandatory setting is not recommended.
In other words, these contents are all found in official documents. You should first take a good look at the contents in the copy set of official documents.