Skip to content

Conversation

farhad-rohani2
Copy link

hello
please check my code and merge it.

db info

Build Info: {
    "version": "4.4.18",
    "gitVersion": "8ed32b5c2c68ebe7f8ae2ebe8d23f36037a17dea",
    "openSSLVersion": "OpenSSL 1.1.1  11 Sep 2018",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "ubuntu1804",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}

I edit config file and add in the config file. in the path /etc/mongod.conf

replication:
   replSetName: rs0

then

systemctl restart mongod

then in the mongodb console run this

rs.initiate()

And to see the changes that happened in the config mongodb run this

rs.status()

@masterbater
Copy link
Contributor

I think this should be closed already been added, #2904

@GromNaN GromNaN closed this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants