CentOS Linux 下安装Tomcat

1、配置好JDK
CentOS下的安装可参考《CentOS Linux 下安装Java
2、下载Tomcat

cd /data0/software/
wget http://apache.fayea.com/apache-mirror/tomcat/tomcat-7/v7.0.52/bin/apache-tomcat-7.0.52.tar.gz


3、安装Tomcat

tar zxvf apache-tomcat-7.0.52.tar.gz 
mv apache-tomcat-7.0.52 /usr/local/
cd /usr/local/
ln -s /usr/local/apache-tomcat-7.0.52/ /usr/local/tomcat

4、配置环境变量

vi /etc/profile

在Java环境变量的上面一行加上如下配置:

export TOMCAT_HOME=/usr/local/tomcat

保存退出后,输入如下命令:

/usr/local/tomcat/bin/startup.sh

然后通过浏览器访问http://127.0.0.1:8080,如果显示的页面中有如下字样,则tomcat就配好了。

If you're seeing this, you've successfully installed Tomcat. Congratulations!

除非注明,本博客文章均为原创,转载请以链接形式标明本文地址

本文地址: http://blog.cnwyhx.com/?p=250

Leave a Reply