In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The following is followed by the author to understand how to install and deploy JDK7+Tomcat7+MySQL5.6+Redis3.07 under Linux. I believe you will benefit a lot after reading it. The text is not much in essence. I hope you want this short article on how to install and deploy JDK7+Tomcat7+MySQL5.6+Redis3.07 under Linux.
Configure jdk environment variables
1. Decompress: tar-zxvf jdk-8u121-linux-x64.tar.gz
Generate a new folder
two。 By command
[root@localhost /] # vi etc/profile
3. Add at the end:
Unset i
Unset-f pathmunge
Export JAVA_HOME=/usr/java/jdk8
Export PATH=$JAVA_HOME/bin:$PATH
Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export PATH=/usr/local/git/bin:$PATH
4.
[root@localhost /] # source etc/profile
[root@localhost /] # Java-version
[root@localhost java] # java-version
The following message indicates that the configuration is successful
Java version "1.8.0mm 121"
Java (TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot (TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Tomcat configuration
Go to apache to download tomcat CVM software. Version is apache-tomcat-7.0.5.tar.gz
Extract the downloaded apache-tomcat-7.0.5.tar.gz and put it in a folder and rename it tomcat7
The user with administrator privileges is required to extract the package.
Command: sudo tar zxvf apache-tomcat-7.0.5.tar.gz
(named tomcat7) sudo mv apache-tomcat-7.05 tomcat7
Perform bin files under tomcat7 at the terminal
(i.e. cd tomcat7/bin)
Here you use the vim editor to open it, or you can open it with gedit, that is, enter:
Sudo gedit catalina.sh
Find the following in the open file:
Cygwin=false
Os400=false
Darwin=false case "`uname`" in
CYGWIN*) cygwin=true
OS400*) os400=true
Darwin*) darwin=true
Add the following to the top of the content:
Path of JAVA_HOME=//jdk installation
/ / JAVA_HOME sets the path of JDK
JAVA_OPTS= "- server-Xms512m
-Xmx1024m-XX:PermSize=600M
-XX:MaxPermSize=600m
-Dcom.sun.management.jmxremote "
/ / JAVA_OPTS is used to configure CVM memory, etc.
The port of tomcat7.0.5 (the default port of tomcat7.0.5 is 8080). If there is a conflict, you can modify it in the following file.
In the tomcat7/conf/server.xml file:
Change it to 8888, or anything else (use 8888 here)
Go to the tomcat7/bin folder.
Enter:
[root@localhost bin] # sudo. / startup.sh
Using CATALINA_BASE: / usr/local/tomcat/apache-tomcat-8.5.13
Using CATALINA_HOME: / usr/local/tomcat/apache-tomcat-8.5.13
Using
CATALINA_TMPDIR: / usr/local/tomcat/apache-tomcat-8.5.13/temp
Using JRE_HOME: / usr/java/jdk8
Using
CLASSPATH:/usr/local/tomcat/apache-tomcat-8.5.13/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-8.5.13/bin/tomcat-juli.jar
Tomcat started.
Tomcat7 started successfully.
View the log:
[root@localhost logs] # tail-f catalina.out
After reading this article on how to install and deploy JDK7+Tomcat7+MySQL5.6+Redis3.07 under Linux, many readers will want to know more about it. For more industry information, you can follow our industry information section.
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
Yum install sysstat= 6, the sar-n command is to view network information and flow speed. =
© 2024 shulou.com SLNews company. All rights reserved.