centos7.6安装Tomcat-8.5.39的方法-创新互联
下面给大家介绍centos7.6 安装Tomcat-8.5.39的方法,具体内容如下所示:
创新互联公司是一家集网站建设,迁西企业网站建设,迁西品牌网站建设,网站定制,迁西网站建设报价,网络营销,网络优化,迁西网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。#关闭防火墙 systemctl stop firewalld.service systemctl disable firewalld setenforce 0 sed -i '/SELINUX=/ s/enforcing/disabled/' /etc/selinux/config #linux 更新yum源 改成阿里云源 yum install wget vim -y #mkdir -pv /etc/yum.repos.d/bak #mv -if /etc/yum.repos.d/* /etc/yum.repos.d/bak #a=`cat /etc/redhat-release |awk '{print $4}'|awk -F . '{print $1}'` #if [ $a == 6 ];then # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo #else # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #fi #yum clean all #yum makecache #yum update #装机必备 yum install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel tar unzip zip autoconf libtool make -y #安装JDK yum remove -y java*.x86_64 yum -y remove java-1.7.0-openjdk* yum -y remove java-1.8.0-openjdk* yum install java-1.8.0-openjdk* -y java -version javac -version #安装Tomcat tar -xzvf /opt/soft/apache-tomcat-8.5.39.tar.gz -C /usr/local/ mv -f /usr/local/apache-tomcat-8.5.39 /usr/local/tomcat8.5.39 chmod 777 /usr/local/tomcat8.5.39/bin/*.sh cp /opt/soft/tomcat /etc/init.d/ chmod 755 /etc/init.d/tomcat /etc/init.d/tomcat restart chkconfig --add tomcat chkconfig tomcat on
新闻标题:centos7.6安装Tomcat-8.5.39的方法-创新互联
分享链接:http://myzitong.com/article/dcppdo.html