mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-08 19:32:30 +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
|
||||
(linux: `/etc/mongod.conf`, macos: ``/usr/local/etc/mongod.conf``, windows: ``<install directory>\bin\mongod.cfg``) and add this to the end:
|
||||
|
||||
replication:
|
||||
replSetName: "rs0"
|
||||
replication:
|
||||
replSetName: "rs0"
|
||||
|
||||
2. Restart MongoDB
|
||||
|
||||
systemctl reload mongod
|
||||
systemctl reload mongod
|
||||
|
||||
3. Connect to mongodb
|
||||
|
||||
mongo
|
||||
mongo
|
||||
|
||||
4. Setup replica set:
|
||||
|
||||
rs.initiate()
|
||||
rs.initiate()
|
||||
|
||||
#### MongoDB Atlas/Cloud server
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user