安装介质
版本:apache-tomcat-8.5.42.tar.gz
下载:https://archive.apache.org/dist/tomcat
环境准备
安装JDK
安装Tomcat
cd /home/bigdata/software/
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.42/bin/apache-tomcat-8.5.42.tar.gz
tar -zxvf apache-tomcat-8.5.42.tar.gz -C /usr/local/
rm apache-tomcat-8.5.42.tar.gz
配置
vi /usr/local/apache-tomcat-8.5.42/conf/server.xml
内容如下(修改):
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
</Service>
</Server>
验证
cd /usr/local/apache-tomcat-8.5.42/bin
# 启动命令
/usr/local/apache-tomcat-8.5.42/bin/startup.sh
# 关闭命令
/usr/local/apache-tomcat-8.5.42/bin/shutdown.sh
tail -f /usr/local/apache-tomcat-8.5.42/logs/catalina.out
WebUI:http://LTSR003:8081