First article
Tomcat is a servlet container developed by Apache that implements support for Serclet and JSP (Java) and provides some unique features as a Web server, such as Tomcat management and
JDK must be downloaded
JRE Java Runtime Environment
JDK Java Development Kit, development Library
Tomcat belongs to the Java family to deploy the JDK environment
JDK version: Me mobile version SE standard EE Enterprise Edition
wget jdk to add parameter wget--No-cookies--No-check-certificate--header"Cookie:gpw_e24=http%3a%2f%2fwww. oracle.com%2f; Oraclelicense=accept-securebackup-cookie " http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.rpmJDK website requirements.
Rpm-ivh JADK ....
Vim/etc/profile Modifying variables
Java_home=/usr/java/latest
Path= $PATH: Java_home/bin
Source/usr/perfile
Useradd work
MV apache-tomcat-9.0.6.tar.gz/tmp/
Su-work
Tar xf/tmp/apache-tomcat-9.0.6.tar.gz
Ln-s Apache-tomcat-9.0.6/tomcat do redirect to ~ down
Bin/startup.sh Open Tomcat
Ps-ef | grep java
lsof-i:8080 view Tomcat Port turned on No
Configure Jspgou Mall
Configure MySQL First
Create DATABASE Jspgou default character set UTF8; The configuration here is required by the JSP configuration
Grant all privileges the jspgou.* to ' jspgouadmin ' @ '% ' identifiedby ' jspgou_pwd2018 '; The user names here are the requirements of the following JSP configuration
Flush privileges;
Modify the following:
Vim Root/web-inf/config/jdbc.properties #配置mysql地址, Port, library name, user name, password
Import Jspgou Library
mysql-uroot-pjspgou_pwd2018 Jspgou < ~work/jspgouv6-root/dbjspgou.sql
Su-work
cd/tomcat/webapps/
MV Root{,_bak} to modify Tomcat's homepage
MV ~/jspgouv6-root/root./Move the Jspgou home page and change it to the home page of Tomcat
bin/shutdown.sh
lsof-i:8080 (the Java process shuts down, but waits for all client disconnect ports to disappear)
bin/startup.sh
lsof-i:8080
Test access input your IP with port, Jspgou's Marketplace home page appears
The application of Tomcat and Jspgou,mysql