tar 파일을 추출 할 때“열 수 없습니다 : 해당 파일이나 디렉토리가 없습니다” (child): Error is not

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

두 번째 사례 :

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

무엇을해야합니까? 설치해야 할 파일은 디스크에 있으며 시스템에 복사되지 않습니다. 그게 중요합니까?



답변

문제의 원인은 오류 보고서에 있습니다.

Cannot open: No such file or directory

cdapache-cassandra-2.0.3-bin.tar.gz파일이 있는 디렉토리에 넣고 아래 명령을 실행하여 내용을 추출하십시오.

tar -zxvf filename.tar.gz   # Replace the filename with your's