赞
踩
apache-tomcat-8.5.88.zip
(按自己下载为主,我的是这个版本)解压,得到apache-tomcat-8.5.88
文件夹,Tomcat就已经安装成功。apache-tomcat-8.5.88
目录就能看到如下目录结构:bin\startup.bat
http://localhost:8080
能看到Apache Tomcat的内容就说明Tomcat已经启动成功。bin\shutdown.bat:
正常关闭conf/server.xml
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>mavendemo1-7-27</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> </project>
**
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>tomcatdemo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
</project>
本文主要介绍了Tomcat的基本使用和如何创建一个web项目,希望对大家有帮助,欢迎各位点赞+关注!!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。