CentOS版本:CentOS-7-x86_64-Minimal-1511
1、查找安装包名称
[root@localhost~]#yum search tomcat
2、安装
[root@localhost~]#yum install tomcat tomcat-webapps tomcat-admin-webapps
3、启动
[root@localhost~]#systemctl start tomcat.service
3、卸载
[root@localhost~]#yum -y remove tomcat*
4、修改默认8080端口和配置UTF-8字符编码
[root@localhost~]#vi /etc/tomcat/server.xml <Connectorport=”80” protocol=”HTTP/1.1” connectionTimeout=”2000” redirectPort=”8443”URIEncoding=”UTF-8”/> <Connectorport=”8009” protocol=”AJP/1.3” redirectPort=”8843”URIEncoding=”UTF-8”>原文链接:https://www.f2er.com/centos/380124.html