Tomcat management functions using:
/usr/local/tomcat/bin/startup.sh // Enable
Click to verify and make a mark in the red part of Figure:
Click on the red marker section will be a 403 error to indicate that access is denied (error occurs because the authentication of the user name and password error, or an authorized address; two are restricted)
vim /usr/local/tomcat/conf/tomcat-users.xml // modify configuration files
【content】
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username = "tomcat" password = "tomcat" roles = "manager-gui, admin-gui" /> // user name and password for Tomcat , will be used later in
/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh // a closed off a restart service
vim /usr/local/tomcat/webapps/manager/META-INF/context.xml // the text comment out below
/usr/local/tomcat/bin/startup.sh // restart the service, to display a user name and password and then into
WEB site deployment:
On-line codes ;
===============================================================================
Make war package: add files to the compressed file to be compressed into zip format, and finally into a war format like ( war package is a compressed package)
Upload meminfo.war package
netstat -lnpt // port open to view
mv meminfo.war / usr / local / tomcat / webapps / // move war package
// war package is automatically unpacked in the system
View Results:
Using the war package installation forum:
The jpress-web-newest of war incoming packets
mv jpress-web-newest.war / usr / local / tomcat / webapps / // move war package
View Results:
yum install MySQL:
yum -y install mariadb mariadb-server
systemctl start mariadb // start the service
mhysql // Login
MariaDB [(none)]> create database jp; // a name for the jp
MariaDB [(none)]> grant all on jp * to 'jp' @ 'localhost' identified by '123456';. // give a permission, and set a password for 123456
/usr/local/tomcat/bin/shutdown.sh
/usr/local/tomcat/bin/startup.sh // restart the web server
result: