1
启动提示
about to fork child process, waiting until server is ready for connections.
forked process: 61164
ERROR: child process failed, exited with error number 1
To see additional information in this output, start without the "--fork" option.
使用–fork启动
Error reading config file: No such file or directory
try '/opt/mongodb-linux-x86_64-4.0.10/bin/mongod --help' for more information
查看日志文件
2022-05-01T00:11:59.049+0800 I CONTROL [main] ***** SERVER RESTARTED *****
2022-05-01T00:11:59.053+0800 I ACCESS [main] permissions on /opt/mongodb-cluster/mg27017/mongo.keyfile are too open
原因:mongo.keyfile没有读取权限。chmod 400 xx即可