【问题标题】:How to install Tomcat8 tar.gz on Linux?如何在 Linux 上安装 Tomcat8 tar.gz?
【发布时间】:2018-03-16 20:33:29
【问题描述】:

JDK 已经安装在那里。我已经在 /opt/tomcat 中下载了 apache-tomcat-8.5.29.tar.gz。我想要他们的文件夹结构 webapps 等等。

执行了命令/path/tar xzvf apache-tomcat-8.5.29.tar.gz,但现在也存在tar文件。如何在 tomcat 中获取文件夹?

【问题讨论】:

  • 该错误告诉您您键入的文件名不正确。检查文件名中tar后面是否有空格
  • 我从文件名中复制了它
  • apache-tomcat-8.5.29.tar: Cannot open: No such file or directory 表示必须是tar xzvf apache-tomcat-8.5.29.tar 或类似tar xzvf apache-tomcat-8.5.29.tar .gz 的东西。你只需要看得够近...
  • 它是apache-tomcat-8.5.29.tar.gz

标签: java linux tomcat linux-kernel tomcat8


【解决方案1】:

完成:

sudo tar xvzf /opt/file_path/apache-tomcat-7.0.54.tar.gz -C /opt/extracted_folder_path --strip components=1--

它将tar文件解压到extracted_folder_path中。

【讨论】:

    【解决方案2】:

    错误提示:

    tar(子):apache-tomcat-8.5.29.tar:无法打开:没有这样的文件或目录

    表示文件名不正确或者不在你所在的目录下。

    试试这个
    tar xzvf /PATH_OF_THE_FILE/apache-tomcat-8.5.29.tar.gz

    还要检查您键入的文件的名称。

    【讨论】:

      【解决方案3】:

      当您提取 tar.gz 文件时,您应该会看到如下输出:

      ...... (lot of information)
      apache-tomcat-8.5.29/bin/configtest.sh
      apache-tomcat-8.5.29/bin/daemon.sh
      apache-tomcat-8.5.29/bin/digest.sh
      apache-tomcat-8.5.29/bin/setclasspath.sh
      apache-tomcat-8.5.29/bin/shutdown.sh
      ......
      

      并且必须创建一个名为 apache-tomcat-8.5.29 的新目录,现在您只需键入以下命令:

      cd apache-tomcat-8.5.29

      如果你需要列出它,那么执行这个

      ls -l

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-04-05
        • 2012-12-06
        • 2010-11-06
        • 1970-01-01
        • 2015-05-29
        • 2015-10-30
        • 2019-02-10
        相关资源
        最近更新 更多