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

hostname()

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