我正在尝试安装 tar.gz 文件的 Apache Cassandra。以下是我得到的输出。
第一种情况:
tar -zxvf apache-cassandra-2.0.3-bin.tar.gz
tar (child): apache-cassandra-2.0.3-bin.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)
实例二:
tar -zxvf apache-cassandra-2.0.3-bin.tar.gz.gitignore
tar (child): apache-cassandra-2.0.3-bin.tar.gz.gitignore: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)
该怎么办?我需要安装的文件在磁盘中,而不是复制到机器上。那有关系吗?
问题的原因在错误报告中。
Cannot open: No such file or directory
Run Code Online (Sandbox Code Playgroud)
cd进入apache-cassandra-2.0.3-bin.tar.gz文件所在的目录,然后运行以下命令以提取其内容。
tar -zxvf filename.tar.gz # Replace the filename with your's
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
98099 次 |
| 最近记录: |