如何解决无法启动手动构建的mongod
我有问题。我已将mongodb部署为ops Manager,但是由于TAR文件的原因,这台服务器中没有Internet访问权限。
因此,我正在尝试将mongo作为服务启动,但是它不起作用。当我尝试通过systemctl启动该服务时,它看起来像mongod进程在运行,但是通过它自身,该进程会启动关闭,直到现在我都没有发现任何错误。
如果尝试使用相同的配置文件从shell运行mongod进程,则启动过程不会出现任何问题。
我做错了什么?
这是我的文件:
配置文件:
storage:
dbPath: /var/lib/mongo/
systemLog:
destination: file
path: /var/log/mongodb/mongod.log
processManagement:
fork: true
服务文件:
[Unit]
Description=document-oriented database
Documentation=man:mongod(1)
After=network.target
[Service]
User=mongod
Group=mongod
RuntimeDirectory=mongodb
RuntimeDirectoryMode=0755
EnvironmentFile=-/etc/default/mongodb
Environment=CONF=/etc/mongod.conf
Environment=SOCKETPATH=/run/mongodb
ExecStart=/usr/local/bin/mongod --config ${CONF}
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitNPROC=64000
[Install]
WantedBy=multi-user.target
Here I tried to start the service then I checked status
here the firts lines from mongod.log
tried to start mongod manually with the same mongod.conf
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。