我可以在托管服务帐户下运行 mongodb 吗

我可以在托管服务帐户下运行 mongodb 吗

我正在尝试在 Windows 托管服务帐户下运行 MongoDB。这对于同一台服务器上的 memcached 来说运行良好,但是当我运行 MongoDB 帐户时,我得到了以下信息:

Windows could not start the MongoDB ervice on Local Computer.

Error 1053: The service did not respond to the start or control request in a timely fashion.

调整文件权限,以便帐户可以在 MongoDb 目录(存储二进制文件、日志和数据的位置)内写入(或拥有完全控制权),我得到了以下信息:

Windows could not start the MongoDB on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 100.

日志文件现在显示如下内容:

exception in initAndListen: 98 Unable to create/open lock file: C:\data\db\mongod.lock

因此,显然我还有一个 mongod.exe 正在运行。

答案1

权限、文件锁和所有这些东西必须匹配。

当我提出问题并详细描述每个步骤时,我弄清楚了上述内容。

谢谢你的橡皮鸭!:)

相关内容