How to use substr on rs.status() of mongodb to get hostname only

前端 未结 0 1781
慢半拍i
慢半拍i 2021-01-05 16:34

I\'d like to retrieve all host names without port number using rs.status() in MongoDB replica set. I tried below one but it is not giving the required output.

MongoDB

相关标签:
回答
  • 消灭零回复
提交回复
热议问题