CentOS 6.4安装搭建Tomcat 7

1.检查Java版本信息

java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

如果没有则安装:

yum -y install java-1.7.0-openjdk

2. 下载并解压缩tomcat
# cd /tmp
# wget

# tar xzf apache-tomcat-7.0.54.tar.gz
# mv apache-tomcat-7.0.54 /usr/local/tomcat7

3. 启动tomcat

# cd /usr/local/tomcat7
# ./bin/startup.sh
[输出样例]
Using CATALINA_BASE:  /usr/local/tomcat7
Using CATALINA_HOME:  /usr/local/tomcat7
Using CATALINA_TMPDIR: /usr/local/tomcat7/temp
Using JRE_HOME:        /opt/jdk1.8.0_05/jre
Using CLASSPATH:      /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar
Tomcat started.

4. 访问:8080

CentOS 6.4搭建Tomcat 7

5. 设置用户账户

<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="tomcat" password="tomcat" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>

6. 重启tomcat服务

# ./bin/shutdown.sh
 # ./bin/startup.sh

Ubuntu 12.04 LTS 上通过 Tomcat 部署 Solr 4

Ubuntu下部署Solr(4.4)到Tomcat(7.0.53)

Linux下Apache与多个Tomcat 集群负载均衡

Nginx Tomcat 集群负载均衡解决笔记

实例详解Tomcat组件安装+Nginx反向代理Tomcat+Apache使用mod_jk和mod_proxy反向代理和负载均衡

Apache+Tomcat 环境搭建(JK部署过程)

Tomcat 的详细介绍请点这里
Tomcat 的下载地址请点这里

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e9b4f4db594b1e998711ef1232e05410.html