tomcat安装与卸载

CentOS版本:CentOS-7-x86_64-Minimal-1511


1、查找安装包名称

[plain] view plain copy
print ?
  1. [root@localhost~]#yum search tomcat  
[root@localhost~]#yum search tomcat

2、安装

[plain] view plain copy
print ?
  1. [root@localhost~]#yum install tomcat tomcat-webapps tomcat-admin-webapps  
[root@localhost~]#yum install tomcat tomcat-webapps tomcat-admin-webapps

3、启动

[plain] view plain copy
print ?
  1. [root@localhost~]#systemctl start tomcat.service  
[root@localhost~]#systemctl start tomcat.service

3、卸载

[plain] view plain copy
print ?
  1. [root@localhost~]#yum -y remove tomcat*  
[root@localhost~]#yum -y remove tomcat*

4、修改默认8080端口和配置UTF-8字符编码

[plain] view plain copy
print ?
  1. [root@localhost~]#vi /etc/tomcat/server.xml  
  2.   
  3. connectionTimeout=”2000”  
  4. redirectPort=”8443”URIEncoding=”UTF-8”/>  
  5.   
  6. redirectPort=”8843”URIEncoding=”UTF-8”>  
[root@localhost~]#vi /etc/tomcat/server.xml





你可能感兴趣的:(协议/规范,tomcat,centos)