mongodb / v3.6 / reference / reference-method-getHostName.html

getHostName()

  • getHostName ( )
Returns: 运行mongo shell 进程的系统的主机名。