mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: update reset.sh
This commit is contained in:
1 parent
00c01a2c29
commit
f045154200
1 file changed
+1
-1
+1
-1
@@ -11,7 +11,7 @@ echo "db.createUser({
|
||||
{ role: 'readWrite', db: 'hydro' }
|
||||
]
|
||||
})" >/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
|
||||
pm2 stop mongod
|
||||
pm2 del mongod
|
||||
|
||||
Reference in new issue
Block a user