In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Https://pan.baidu.com/s/12uOOI3bB003VI_YX7LpwvA / / Software Baidu Cloud disk connection
Yum install lrz*-y / / you can directly drag the package to the command tar xf apache-tomcat-8.5.23-embed.tar.gz / / compress apache-tomcat-8.5.23-embed.tar.gz in xshell's current directory to tar xf jdk-8u144-linux-x64.tar.gz / / compress jdk-8u144-linux-x64 in the current directory. .tar.gz to the current directory cp-rv jdk1.8.0_144/ / usr/local/java/ / copy the jdk1.8.0_144 to the / usr/local/java directory vi / 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 at the end of the file
Source / etc/profilejava-version / / displays the following content: java version "1.8.0144"
……
……
-the above is to build a JAVA environment-
Cp-r apache-tomcat-8.5.23 / usr/local/tomcat8/ / copy apache-tomcat-8.5.23 to / usr/local/tomcat8ln-s / usr/local/tomcat8/bin/startup.sh / usr/bin/tomcatup / / link / usr/local/tomcat8/bin/startup.sh soft link to / usr/bin/tomcatup ln-s / usr/local/tomcat8/bin/shutdown.sh / usr/bin/tomcatdown / / soft link / usr/local/tomcat8/bin/shutdown.sh to / usr/bin/tomcatdowntomcatupnetstat-anpt | grep 8080 / / check which programs are running on port 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. -above is the tomcat installation-mkdir-p / web/webapp1/ / create the webapp1 directory under the root directory web vi / web/webapp1/index.jsp / / create index.jsp text in the root directory web/webapp1 and enter JSP test page tomcatdown / / close tomcattomcatup / / enable tomcatvi / usr/local/tomcat8/conf/server.xml / / add multiple hosts to / usr/local/tomcat8/conf/server.xml in the root directory: vi / webapp/web01/index.jsp / / create index.jsp JSP test page vi / webapp/web02/index.jsp / in / webapp/web01/ create the index.jsp JSP test page attribute in / webapp/web02/ description name: in this example has been Emphasize that the localhost virtual hostname debug in $CATALINA_HOME/config/Catalina/localhost: is the debug level of the log appBase: the default application path That is, put the application in a directory, and if the autoDeploy is true, you can automatically deploy and apply this path relative to $CATALINA_HOME/ (the basic directory of web applications) unpackWARs: set to true, and in the Web application to * .war, extract the WAR file. If true, tomcat automatically decompresses the WAR file Otherwise, run the application directly from the WAR file. AutoDeploy: the default is true, which means that if a new WEB application is put into appBase and Tomcat is running, the application path: accessed URI will be automatically loaded, such as: http://localhost/ is the root directory of my application. Access to this application will operate with: http://localhost/demm. This element must indicate the prefix of the URL of this web application. Used to match a Context. The URL form of the request is the directory of the http://localhost:8080/path/*docBase:WEB application, which must conform to the specification of the Java WEB application, the path for storing web application files or the path for storing WAR files. Debug: log level reloadable: whether to reload when the program is changed. Setting it to true will affect performance, but can automatically load modified files. If true, Tomcat will support hot deployment, automatically detect changes in the / WEB-INF/lib and / WEB-INF/classes directories of web application, and automatically load new JSP and Servlet. We can change web applicationtomcatdown / / close tomcattomcatup / / enable tomcat without restarting Tomcat
Http://192.168.80.101:8080
Go to your real machine and enter C:\ Windows\ System32\ drivers\ etc to open the hosts file, open it in notepad, skip to the last line and write 192.168.80.101 www.centos.com192.168.80.101 system.centos.com.
Http://www.centos.com:8080
Http://system.centos.com:8080
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: 280
*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.