The application of Tomcat and Jspgou,mysql

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.