1、Tomcat的下载地址:http://tomcat.apache.org/
Tomcat是开放源代码的WEB服务器,安装时,只需解压压缩包即可
2、环境变量的配置
1>新建系统变量CATALINA_BASE,变量值:D:apache-tomcat-9.0.6(Tomcat地址)
2>新建系统变量CATALINA_HOME,变量值:D:apache-tomcat-9.0.6(Tomcat地址)
3>编辑系统变量PATH,%CATALINA_HOME%lib;%CATALINA_HOME%in;
3、环境变量配置成功的验证
进入cmd命令,输入startup.bat/startup,得到如下结果
在浏览器输入:127.0.0.1:8080/localhost:8080,得到以下结果:
Tomcat使用完之后,记得终止服务:shotdown
端口号的修改可在conf目录下修改server.xml文件