Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs 菜单
Docs 主页
/ /
旧版 shell 中的原生方法

getHostName()

注意

此处列出的原生方法适用于旧版 mongo shell 。

要使用mongosh 中的原生方法,请参阅 mongosh中的原生方法。

getHostName()
返回:运行mongosh的系统的主机名。

后退

copyDbpath()