mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
16 lines
192 B
Bash
Executable File
16 lines
192 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../.env
|
|
|
|
if [ x$NOIPV6 = x1 ]; then
|
|
BINDIP="127.0.0.1"
|
|
else
|
|
BINDIP="127.0.0.1,::1"
|
|
fi
|
|
|
|
exec mongod $COMMONDOPTSNOIP \
|
|
--shardsvr \
|
|
--bind_ip=$BINDIP \
|
|
--port 40001 \
|
|
--ipv6
|