Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
software
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cf738f43
authored
Nov 22, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit syntax error
1 parent
b0a3444a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
mongo_7017.sh
mongo_7018.sh
mongo_7019.sh
mongo_7020.sh
mongo_7017.sh
View file @
cf738f4
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017
<<EOF
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017
<<EOF
use admin
use admin
db.auth("root", "password")
db.auth("root", "password")
## create new administration user
use admin
db.createUser(
db.createUser(
{
{
user: "wdobject",
user: "wdobject",
...
@@ -11,8 +11,8 @@ db.createUser(
...
@@ -11,8 +11,8 @@ db.createUser(
}
}
)
)
### create application user
use WDCHAT
use WDCHAT
db.createUser(
db.createUser(
{
{
user: "wdmongo",
user: "wdmongo",
...
...
mongo_7018.sh
View file @
cf738f4
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018
<<EOF
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018
<<EOF
## authen to create new user
use admin
use admin
db.auth("root", "password")
db.auth("root", "password")
## create administration user
db.createUser(
db.createUser(
{
{
user: "wdobject",
user: "wdobject",
...
@@ -14,8 +11,6 @@ db.createUser(
...
@@ -14,8 +11,6 @@ db.createUser(
}
}
)
)
### create application user
use DMAMANAGER
use DMAMANAGER
db.createUser(
db.createUser(
...
...
mongo_7019.sh
View file @
cf738f4
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019
<<EOF
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019
<<EOF
## authen to create new user
use admin
use admin
db.auth("root", "password")
db.auth("root", "password")
## create administration user
db.createUser(
db.createUser(
{
{
user: "wdobject",
user: "wdobject",
...
@@ -11,8 +11,8 @@ db.createUser(
...
@@ -11,8 +11,8 @@ db.createUser(
}
}
)
)
### create application user
use SERVICEGATEWAY
use SERVICEGATEWAY
db.createUser(
db.createUser(
{
{
user: "mongoapp",
user: "mongoapp",
...
...
mongo_7020.sh
View file @
cf738f4
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7020
<<EOF
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7020
<<EOF
## authen to create new user
use admin
use admin
db.auth("root", "password")
db.auth("root", "password")
## create administration user
db.createUser(
db.createUser(
{
{
user: "wdobject",
user: "wdobject",
...
@@ -11,8 +11,8 @@ db.createUser(
...
@@ -11,8 +11,8 @@ db.createUser(
}
}
)
)
### create application user
use DMAENGINE
use DMAENGINE
db.createUser(
db.createUser(
{
{
user: "mongoapp",
user: "mongoapp",
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment