我正在嘗試在 ubuntu 14.04 中解壓縮 solr,如下所示:
ubuntu@ip-:~/solr$ ls
solr-6.2.0.tgz
ubuntu@ip-:~/solr$ tar xzf solr-6.2.0.tgz
tar (child): solr-6.2.0.tgz: 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
ubuntu@ip-:~/solr$ tar xf solr-6.2.0.tgz
tar: solr-6.2.0.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
好心提醒!
答案1
看起來檔名是solr6.2.0.tgz,但你正試著打開包裝solr-6.2.0.tgz。