如果我有一个 mongo 实例正在运行,我怎样才能检查它正在从 shell 侦听什么端口号?我以为 db.serverStatus()
可以做到,但是我没有看到。我看到了
"connections" : {
"current" : 3,
"available" : 816
Which is close... but no. Suggestions? I've read the docs and can't seem to find any command that will do this.