|
|
@ -11,7 +11,7 @@ echo "db.createUser({
|
|
|
|
{ role: 'readWrite', db: 'hydro' }
|
|
|
|
{ role: 'readWrite', db: 'hydro' }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
})" >/tmp/createUser.js
|
|
|
|
})" >/tmp/createUser.js
|
|
|
|
mongo 127.0.0.1:27017/hydro /tmp/createUser.js
|
|
|
|
mongosh 127.0.0.1:27017/hydro /tmp/createUser.js
|
|
|
|
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
|
|
|
|
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
|
|
|
|
pm2 stop mongod
|
|
|
|
pm2 stop mongod
|
|
|
|
pm2 del mongod
|
|
|
|
pm2 del mongod
|
|
|
|