In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Download JDK first.
jdk-8u181-linux-x64.tar.gz is used here
Download Tomcat.
Here we use apache-tomcat-8.5.35.tar.gz
create a directory
$ cd /$ mkdir soft$ cd soft
Put the installation package in soft
You can use the yum command to upload
installation
yum install -y lrzsz
rz Enter Select File
install the JDK
$ cd /usr$ mkdir java$ tar -zxvf jdk-8u181-linux-x64.tar.gz -C /usr/java
Add environment variables after installation
$ vim /etc/profile
Add environment variables at the end
export JAVA_HOME=/usr/java/jdk1.8.0_181export CLASSPATH=.:$ {JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jarexport PATH=$PATH:${JAVA_HOME}/bin
save and exit
$ wq
Then execute the command to put the environment variable into effect
$ source /etc/profile
Check if configuration is successful
$ java -version
Install tomcat
$ cd /usr$ mkdir tomcat$ tar -zxvf apache-tomcat-8.5.35.tar.gz -C /usr/tomcat
Configure firewall policy after successful decompression, open firewall port 8080
$ vim /etc/sysconfig/iptables
If there is no iptables file but iptables-config
Execute the following command
$ iptables -P OUTPUT ACCEPT $ service iptables save$ vim /etc/sysconfig/iptables
Add at the end
#Open port 8080-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
save and exit
$ wq
Modify tomcat configuration, change localhost to your own domain name or server IP, use IP here
$ vim /usr/tomcat/apache-tomcat-8.5.35/conf/server.xml
Save and exit after modification
start Tomcat
$ sh /usr/tomcat/apache-tomcat-8.5.35/bin/startup.sh
After successful startup
Browser Input Server IP:8080
Go to tomcat page configuration success.
END.
summary
The above is all the content of this article, I hope the content of this article for everyone's study or work has a certain reference learning value, thank you for your support. If you want to know more about this, please check out the links below.
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.