...
Step by step procedures for upgrading MongoDB from 4.2 to 6.0 are available Upgrading to MongoDB 6.0
Configuring MongoDB Authentication/Authorization with the setup_mongodb.pl Script
...
...
Step by step procedures for upgrading MongoDB from 4.2 to 6.0 are available Upgrading to MongoDB 6.0
...