-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetupInfo
39 lines (20 loc) · 1008 Bytes
/
setupInfo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Create Password for Redis:
Setup the Redis password by first locating /etc/redis/redis.conf file, then,
Uncomment this line "# requirepass foobared"
And make it to "requirepass <your_super_secure_password>"
Create Password for MongoDB:
First log into MongoDB by running client i.e mongosh
Then switch to Admin Database -> use private_cloud
Create administrator user -> db.createUser({user: "root", pwd: "password", roles: [{role: "userAdminAnyDatabase", db: "admin"}]})
Then update configuration file for MongoDB
-> sudo nano /etc/mongod.conf
CHANGE
security: OR #security:
authorization: "disabled"
TO THIS
security:
authorization: "enabled"
Then restart the mongod server
-> sudo systemctl restart mongod (for normal OS)
-> sudo service mongod restart
************* REGARDING DATABASE *************