mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-22 18:22:31 +01:00
Fixed list!
This commit is contained in:
parent
d74c1a8348
commit
5440405dc1
@ -22,20 +22,20 @@ chmod +x setup.sh
|
|||||||
1. Edit the file
|
1. Edit the file
|
||||||
(linux: `/etc/mongod.conf`, macos: ``/usr/local/etc/mongod.conf``, windows: ``<install directory>\bin\mongod.cfg``) and add this to the end:
|
(linux: `/etc/mongod.conf`, macos: ``/usr/local/etc/mongod.conf``, windows: ``<install directory>\bin\mongod.cfg``) and add this to the end:
|
||||||
|
|
||||||
replication:
|
replication:
|
||||||
replSetName: "rs0"
|
replSetName: "rs0"
|
||||||
|
|
||||||
2. Restart MongoDB
|
2. Restart MongoDB
|
||||||
|
|
||||||
systemctl reload mongod
|
systemctl reload mongod
|
||||||
|
|
||||||
3. Connect to mongodb
|
3. Connect to mongodb
|
||||||
|
|
||||||
mongo
|
mongo
|
||||||
|
|
||||||
4. Setup replica set:
|
4. Setup replica set:
|
||||||
|
|
||||||
rs.initiate()
|
rs.initiate()
|
||||||
|
|
||||||
#### MongoDB Atlas/Cloud server
|
#### MongoDB Atlas/Cloud server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user