This commit is contained in:
2023-04-16 21:38:32 +08:00
parent a0849e40ef
commit 0b6c876a0f
59 changed files with 1026 additions and 189 deletions

View File

@@ -36,13 +36,13 @@ function Quit {
}
function Init {
Print Init mongod ...
chown -R mongod.mongod $LOG_DIR $DATA_DIR
Print Initing mongod ...
chown -R mongod:mongod $LOG_DIR $DATA_DIR
rm -f /tmp/mongodb-27017.sock
}
function StartProc {
Print Start mongodb ...
Print Starting mongodb ...
su - mongod -c "mongod \
--port 27017 \
--dbpath $DATA_DIR \