1,安装jdk,centos默认安装了java-openjdk的环境,但是不带JDK,运行 yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel 2,下载apache-tomcat-7.0.56.tar.gz: 3.配置tomcat环境并设置为服务,采用jsvc 解压:tar vzvf apache-tomcat-7.0.56.tar.gz 重命名: mv apache-tomcat-7.0.56 /usr/local/apache-to