发布于 2015-09-14 15:10:47 | 125 次阅读 | 评论: 0 | 来源: 网络整理

Synopsis

mongod.exe is the build of the MongoDB daemon (i.e. mongod) for the Windows platform. mongod.exe has all of the features of mongod on Unix-like platforms and is completely compatible with the other builds of mongod. In addition, mongod.exe provides several options for interacting with the Windows platform itself.

This document only references options that are unique to mongod.exe. All mongod options are available. See the “mongod” and the “配置文件选项” documents for more information regarding mongod.exe.

To install and use mongod.exe, read the “在Windows上安装” document.

Options

mongod.exe
 
--install

Installs mongod.exe as a Windows Service and exits.

--remove

Removes the mongod.exe Windows Service. If mongod.exe is running, this operation will stop and then remove the service.

注解

--remove requires the --serviceName if you configured a non-default --serviceName during the --install operation.

--reinstall

Removes mongod.exe and reinstalls mongod.exe as a Windows Service.

--serviceName <name>

Default: “MongoDB”

Set the service name of mongod.exe when running as a Windows Service. Use this name with the net start <name> and net stop <name> operations.

You must use --serviceName in conjunction with either the --install or --remove install option.

--serviceDisplayName <name>

Default: “Mongo DB”

Sets the name listed for MongoDB on the Services administrative application.

--serviceDescription <description>

Default: “MongoDB Server”

Sets the mongod.exe service description.

You must use --serviceDescription in conjunction with the --install option.

注解

For descriptions that contain spaces, you must enclose the description in quotes.

--serviceUser <user>

Runs the mongod.exe service in the context of a certain user. This user must have “Log on as a service” privileges.

You must use --serviceUser in conjunction with the --install option.

--servicePassword <password>

Sets the password for <user> for mongod.exe when running with the --serviceUser option.

You must use --servicePassword in conjunction with the --install option.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务