hi,
I can install mongodb-org.x86_64 0:4.0.0-1.el7 on my centos7 box with no error but when I try to start the mongod process, I get this:
Job for mongod.service failed because a timeout was exceeded. See "systemctl status mongod.service" and "journalctl -xe" for details.
% systemctl status mongod.service
● mongod.service - MongoDB Database Server
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Fri 2018-07-27 14:18:13 UTC; 7s ago
Process: 16525 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=0/SUCCESS)
Process: 16521 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 16518 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
Process: 16515 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
That's not enough info for me to figure out what I should do, everything says SUCCESS.
% sudo yum install -y mongodb-org
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:4.0.0-1.el7 will be installed
--> Finished Dependency Resolution
...
Installed:
mongodb-org.x86_64 0:4.0.0-1.el7
Complete!
% sudo systemctl start mongod.service
then I get the results above.
My /etc/mongod.conf file:
---
systemLog:
destination: file
quiet: true
path: /var/log/mongodb/mongod.log
logAppend: true
storage:
dbPath: /var/db/mongodb
journal:
enabled: true
processManagement:
fork: true
net:
bindIp: <my external ip is here, not localhost>
port: 27017
Can you tell what's wrong? I'm at a loss. BTW, getenforce returns 'Disabled' so I guess SELinux is not the problem.
thanks,
--Tim