yum 安装Tomcat7

其实最重要的就是yum源吗。初始源的里面既没有nginx也没有tomcat7。

1,搞定nginx,她家自己有源的:

rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum -y install nginx
2,安装 JDK,这里我用1.7.0

yum -y install java-1.7.0-openjdk   
3,搞定tomcat,这个要靠jpackage的源,tomcat-native还需要epel的源

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install yum-priorities #这个是jpackage依赖的包要先装                                
rpm -Uvh http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-release-6-3.jpp6.noarch.rpm
yum -y install tomcat7 tomcat7-webapps tomcat7-admin-webapps tomcat-native 




你可能感兴趣的:(java,Tomcat)