我的linux版本是debian9

想法:
1、我想搭建tomcat,但是肯定是需要安装java的

安装java

apt-get update
apt-get install default-jdk
apt-get install default-jre

安装tomcat

下载tomcat

wget https://mirrors.bfsu.edu.cn/apache/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz

解压

tar xzvf apache-tomcat-8.5.61.tar.gz

进入bin目录

./startup.sh

启动tomcat

输入 yourip:8080 会出现tomcat的界面

可以去/conf/server.xml查看

会发现webapps这个文件夹是存放项目的目录。

然后你建立一个index.html

输入 yourip:8080/index.html就可以访问静态HTML了。

相关文章:

  • 2021-11-05
  • 2022-01-14
  • 2021-12-10
  • 2021-10-23
  • 2021-11-21
  • 2021-04-25
  • 2021-06-26
  • 2022-01-02
猜你喜欢
  • 2021-08-31
  • 2021-07-13
  • 2021-08-29
  • 2021-11-28
相关资源
相似解决方案