CentOS yum 安装、卸载Tomcat

前端之家收集整理的这篇文章主要介绍了CentOS yum 安装、卸载Tomcat前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

猜你在找的CentOS相关文章