github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/gopkg.in/mgo.v2/harness/daemons/db1/run (about) 1 #!/bin/sh 2 3 . ../.env 4 5 if [ x$NOIPV6 = x1 ]; then 6 BINDIP="127.0.0.1" 7 else 8 BINDIP="127.0.0.1,::1" 9 fi 10 11 exec mongod $COMMONDOPTSNOIP \ 12 --shardsvr \ 13 --bind_ip=$BINDIP \ 14 --port 40001 \ 15 --ipv6