man mongostat
shows this:
--uri=<connectionString>
New in version 3.4.6.
Specify a resolvable URI connection string (enclose in quotes) to connect to the MongoDB deployment.
--uri="mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
Stands to reason that if you try this command instead, it should work:
mongostat --uri="mongodb+srv://user:[email protected]/admin?replicaSet=project-shard-0&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…