In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Systemctl stop firewalld / / turn off firewall setenforce 0 / / turn off monitoring yum install lrz*-y pull tomcat and jdk packets into Xshell tar xf apache-tomcat-8.5.23.tar.gz-C / opt/tar xf jdk-8u144-linux-x64.tar.gz-C / opt/
Cd / opt/cp-rf jdk1.8.0_144/ / usr/local/javavi / etc/profile / / add export JAVA_HOME=/usr/local/javaexport JRE_HOME=/usr/local/java/jreexport PATH=$PATH:/usr/local/java/binexport CLASSPATH=./:/usr/local/java/lib:/usr/local/java/jre/lib: wq / / Save exit at the end of the file
Source / etc/profilejava-version / / version java version "1.8.0U144"
-the above is to build a JAVA environment-
Cp-r apache-tomcat-8.5.23 / usr/local/tomcat8ln-s / usr/local/tomcat8/bin/startup.sh / usr/bin/tomcatupln-s / usr/local/tomcat8/bin/shutdown.sh / usr/bin/tomcatdowntomcatupnetstat-anpt | grep 8080 Note: bin stores startup and shutdown tomcat scripts conf contains different configuration files Server.xml (the main configuration file for Tomcat) and web.xml lib store the jar packages needed for Tomcat operation or site operation All sites on this Tomcat share these jar packages. Work stores the class files generated by jsp compilation and webapp stores the application examples. later, the applications you want to deploy should also be placed in this directory and can be changed. Logs holds the log file LICENSE: license. NOTICE: documentation.
-the above is the tomcat installation-
Enter 192.168.80.104pur8080 on the browser
Vi / usr/local/tomcat8/conf/server.xml
Add multiple hosts: wq / / Save exit
Tomcatdown / / disable tomcatnetstat-anpt | grep 8080tomcatup / / enable tomcatnetstat-anpt | grep 8080mkdir-p / webapp/web01/vi / webapp/web01/index.jsp JSP test page mkdir-p / webapp/web02/vi / webapp/web02/index.jsp JSP test page tomcatdowntomcatupcd / cd webapp/cd web01
Look for C:\ Windows\ System32\ drivers\ etc\ hosts in the real machine.
192.168.80.104 www.centos.com
192.168.80.104 system.centos.com
Enter www.centos.com:8080 in the browser
Enter system.centos.com:8080 in the browser
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.