一、tomcat (1、下载安装文件 JDK http://download.oracle.com/otn-pub/java/jdk/7u17-b02/jdk-7u17-linux-i586.rpm?AuthParam=1363078074_f128f8b682ecac8fbe9c62384b75f7ae tomcat http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz (2、安装配置JDK #rpm -ivh jdk-7u17-linux-i586.rpm #vim /etc/profile 在尾部添加: export JAVA_HOME=/usr/java/jdk1.6.0_25/ export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export LASSPATH=.:/usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0_25/jre/lib:$CLASSPATH (3、按照tomcat 把下载的apache-tomcat-7.0.19.tar.gz文件上传到服务器的根目录 #tar zxvf apache-tomcat-7.0.19.tar.gz #mv apache-tomcat-7.0.19 apache-tomcat #vim /etc/profile 在文件末尾添加: export TOMCAT_HOME=/apache-tomcat/ #source /etc/profile #cd /apache-tomcat/bin/ #chmod 777 *.sh #bash catalina.sh start 测试: 在客户端输入服务器的ip:8080,如下:“http://192.168.1.193:8080”