我使用MongoDB的V3.0.0与下面的配置文件:MongoDB的“无法识别的选项:net.ssl.PEMKeyFile”
storage:
dbPath: "/home/vagrant/backend/mongodata"
engine: wiredTiger
systemLog:
destination: file
path: "/home/vagrant/backend/log/mongo.log"
logAppend: true
net:
port: 27017
# Enable the HTTP interface (Defaults to port 28017).
http:
enabled: false
ssl:
mode: requireSSL
PEMKeyFile: /home/vagrant/backend/keys/privKeys.pem
security:
authorization: 'enabled'
但是当我启动它,我得到以下错误:
Unrecognized option: net.ssl.PEMKeyFile try '/home/vagrant/backend/mongo/bin/mongod --help' for more information
它看起来像我建立几乎完全一样,他们建议在文档:https://docs.mongodb.com/manual/tutorial/configure-ssl/。文档说这在mongo 3.0中是新的,所以它应该支持这个选项。它确实说某些分布仍然不支持它(奇怪),所以我应该包括我通过这个安装了mongo:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.0.tgz。我能找到的最接近的信息是MongoDB下载中心说Linux版本3.0.14“已经使用SSL进行了编译和动态链接,这就要求单独安装SSL库,关于安装OpenSSL的更多信息,请参阅这里。
任何想法在这里可能会出错?
嗯,看起来也许这个软件包毕竟不支持ssl ..看起来我的软件包就是他们所说的“Linux 64位传统x64” –