一、 环境
服务商:Vultr
Linux操作系统: centos6.0
tomcat版本: tomcat7.0+
二、 安装Tomcat
1、 更新yum源
[root@vultr ~]# yum update
2、 查询yum中的tomcat版本信息
[root@vultr ~]# yum info tomcat
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.0x.sg
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirror.0x.sg
* updates: mirror.0x.sg
Available Packages
Name : tomcat
Arch : noarch
Version : 7.0.90
Release : 1.el6
Size : 93 k
Repo : epel
Summary : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
URL : http://tomcat.apache.org/
License : ASL 2.0
Description : Tomcat is the servlet container that is used in the official Reference
: Implementation for the Java Servlet and JavaServer Pages technologies.
: The Java Servlet and JavaServer Pages specifications are developed by
: Sun under the Java Community Process.
:
: Tomcat is developed in an open and participatory environment and
: released under the Apache Software License version 2.0. Tomcat is intended
: to be a collaboration of the best-of-breed developers from around the world.
3、 yum安装tomcat7
[root@vultr ~]# yum install tomcat
4、 安装管理界面
[root@vultr ~]# yum install tomcat-webapps tomcat-admin-webapps
5、 启动tomcat服务,浏览器访问
[root@vultr ~]# service tomcat start
Starting tomcat: [ OK ]
网友评论