环境:

虚拟机VM14

Ubuntu16.04

java 1.8

步骤:

先更新

sudo apt-get update

然后安装:

sudo apt-get install tomcat8

等一会 然后出现两个Done的时候就是安装好了,默认会自己启动,打开浏览器,输入localhost:8080,出现如下界面,就是安装好了。

ubuntu命令行安装tomcat8

安装位置:

ubuntu命令行安装tomcat8

webapps位置也在上图

sudo service tomcat8 status 查看状态

sudo service tomcat8 start 启动

sudo service tomcat8 stop 停止

 

如果出现:

failed to start lsb:start tomcat

这样的,很可能是你的war也就是你的项目有问题,无法启动。

 

相关文章:

  • 2021-10-18
  • 2021-05-19
  • 2022-01-07
  • 2021-08-27
  • 2021-11-23
  • 2021-08-17
  • 2021-05-08
  • 2022-02-21
猜你喜欢
  • 2021-09-01
  • 2022-12-23
  • 2022-01-14
  • 2021-10-07
  • 2021-11-24
  • 2021-11-29
  • 2022-02-10
相关资源
相似解决方案