Skip to content

Initialize the Database (Only for Single Server Mode)


In the single server mode, you have to initialize the database after configuring the shared replica set. For the steps required for the cluster mode, refer to Configure MongoDB in a Cluster.

  1. Initialize the database:

    sudo mongo --ssl --sslAllowInvalidCertificates --sslAllowInvalidHostnames --eval "rs.initiate()"
    

Back to top