In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Here's how to install Tomcat-8.5.39 in centos7.6. The details are as follows:
# turn off the firewall systemctl stop firewalld.servicesystemctl disable firewalldsetenforce 0sed-I'/ SELINUX=/ 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# installation prerequisite yum install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel tar unzip zip autoconf libtool make-y Install JDKyum remove-yjava * .x86 _ 64yum-y remove java-1.7.0-openjdk* yum-y remove java-1.8.0-openjdk*yum install java-1.8.0-openjdk*-yjava-versionjavac-version# install Tomcattar-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.39chmod 777 / usr/ Local/tomcat8.5.39/bin/*.shcp / opt/soft/tomcat / etc/init.d/chmod 755 / etc/init.d/tomcat/etc/init.d/tomcat restartchkconfig-- add tomcatchkconfig tomcat on
Tomcat start and stop script
#! / bin/bash# description: Tomcat7 Start Stop Restart# processname: tomcat7# chkconfig: 234 20 80CATALINA_HOME=/usr/local/tomcat8.5.39case $1 in start) sh $CATALINA_HOME/bin/startup.sh;; stop) ps-e | grep java | awk'{print "kill-9" $1}'| sh# sh $CATALINA_HOME/bin/shutdown.sh Restart) ps-e | grep java | awk'{print "kill-9" $1}'| sh sleep 3 # sh $CATALINA_HOME/bin/shutdown.sh sh $CATALINA_HOME/bin/startup.sh;; *) echo 'please use: tomcat {start | stop | restart}';; esacexit 0
Summary
The above is the method of installing Tomcat-8.5.39 in centos7.6 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.