Merge pull request #1583 from tomcheung789/patch-1

Update mongo.rst
v1.18.x
Barış Soner Uşaklı 11 years ago
commit 50d37d65f9

@ -67,11 +67,11 @@ To add a user to access the `nodebb` database, type:
.. code:: .. code::
> db.addUser( { user: "nodebb", > db.createUser( { user: "nodebb",
... pwd: "<Enter in a secure password>", ... pwd: "<Enter in a secure password>",
... roles: [ "userAdmin" ] } ) ... roles: [ "readWrite" ] } )
**Note:** The role ``userAdmin`` gives all permissions to the user for that specific database. **Note:** The role ``readWrite`` provides read or write any collection within a specific database to user.
Step 7: Configure MongoDB Step 7: Configure MongoDB
------------------------- -------------------------
@ -123,4 +123,4 @@ To start the app, run:
Now visit ``yourdomainorip.com:4567`` and your NodeBB installation should be running. Now visit ``yourdomainorip.com:4567`` and your NodeBB installation should be running.
NodeBB can also be started with helper programs, such as :doc:`supervisor or forever <../../running/index>`. You can also use ``nginx`` as a :doc:`reverse proxy <../../configuring/proxies>`). NodeBB can also be started with helper programs, such as :doc:`supervisor or forever <../../running/index>`. You can also use ``nginx`` as a :doc:`reverse proxy <../../configuring/proxies>`).

Loading…
Cancel
Save