【发布时间】:2020-12-11 09:44:33
【问题描述】:
在 ubuntu 18.04 中,我正在尝试安装 Tomcat 7,但无法通过 wget 命令下载该文件夹。引用自https://tecadmin.net/install-tomcat-7-on-ubuntu/
由于上述问题,也尝试从 https://tecadmin.net/install-tomcat-9-on-ubuntu/#:~:text=Tomcat%20is%20a%20web%20server,18.04%20LTS%20%26%2016.04%20LTS%20systems 安装 Tomcat 9,但得到相同的错误,
$ wget http://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz
--2020-12-11 14:52:19-- http://www-eu.apache.org/dist/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz
Resolving www-eu.apache.org (www-eu.apache.org)... 2a01:4f9:2a:185f::2, 95.216.24.32
Connecting to www-eu.apache.org (www-eu.apache.org)|2a01:4f9:2a:185f::2|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.apache.org/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz [following]
--2020-12-11 14:52:20-- https://downloads.apache.org/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz
Resolving downloads.apache.org (downloads.apache.org)... 2a01:4f8:10a:201a::2, 88.99.95.219
Connecting to downloads.apache.org (downloads.apache.org)|2a01:4f8:10a:201a::2|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-12-11 14:52:22 ERROR 404: Not Found.
我也提到了https://noviello.it/come-installare-apache-tomcat-9-su-ubuntu-18-04-lts/,但没有用。
如何安装 Tomcat 以及哪个版本适合我的 ubuntu 18.04?
【问题讨论】: