无法在OSX上解压缩.tgz mongodb分发版
我通过无法在OSX上解压缩.tgz mongodb分发版,mongodb,macos,tar,gzip,Mongodb,Macos,Tar,Gzip,我通过 curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-2.6.12.tgz 是的,我想要mongodb版本2.6.12…:( 我尝试使用以下方法解压缩它: tar -xvzf mongodb-osx-ssl-x86_64-2.6.12.tgz 但我得到: tar: Unrecognized archive format tar: Error exit delayed from previous errors. 有
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-2.6.12.tgz
是的,我想要mongodb版本2.6.12…:(
我尝试使用以下方法解压缩它:
tar -xvzf mongodb-osx-ssl-x86_64-2.6.12.tgz
但我得到:
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
有人知道可能出了什么问题吗?该文件没有下载属性,因此即使它是文件系统上的.tgz文件,它也不完整或已损坏。为了获得正确的下载,我必须删除ssl 之前:
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-2.6.12.tgz
之后:
curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.6.12.tgz
然后用焦油打开包装就行了。√ 对于3.4.2版本,与答案有一点不同。我改变了:
curl-Ohttps://fastdl.mongodb.org/osx-ssl/mongodb-osx-ssl-x86_64-3.4.2.tgz
对于旋度-Ohttps://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.4.2.tgz