Quartzdesk (Lite Edition) installation Deployment and Usage Summary

Source: Internet
Author: User
First. Environmental requirements
Oracle Java (JDK) 6, 7, 8

apache-Tomcat 6.x or 7.x mysql5.6 +

Second, install and deploy QuartzDesk
1. Release Notes There are three versions of QuartzDesk:
Lite Edition / Standard Edition / Enterprise Edition, where Lite Edition is the free edition and Standard Edition / Enterprise Edition is the commercial edition. The free version has only some monitoring functions, while the commercial version has more functions. See the installation steps and features comparison of each version (from https://www.quartzdesk.com/documentation/installation-steps).
2. Download
 Download the corresponding version on the official website www.quartzdesk.com, this article chooses quartzdesk-web-2.0.1.war
3. Installation and configuration
   This article introduces the standard installation process. If you just want a simple survey, you can refer to the one-step installation tutorial provided on the official website (search for one-step-installation under the homepage https: //www.quartzdesk.comFAQs).
3.1 Database // Create a user named quartzdesk in the mysql database (the password can be set arbitrarily), for example: CREATE USER 'quartzdesk' @ 'localhost' IDENTIFIED BY '123456'; // Create a database named quartzdesk create database quartzdesk; // Authorize the user and guarantee that the quartzdesk user has the operation authority for the quartzdesk database. GRANT ALL ON *. * TO 'quartzdesk' @ 'localhost';
3.2 JDBC Driver Download the JDBC driver (this article uses mysql-connector-java-5.1.22-bin.jar) and copy the JAR file to the TOMCAT_HOME / lib directory

3.3 Data Source
     Open the TOMCAT_HOME / conf / server.xml file and add the following code after GlobalNamingResources, where the red part is replaced according to the actual situation. <!-MySQL JDBC data-source used by the QuartzDesk web application.-> <Resource name = "jdbc / QuartzDeskDS" auth = "Container" type = "javax.sql.DataSource" removeAbandoned = "true" removeAbandonedTimeout = " 30 "maxActive =" 10 "maxIdle =" 1 "maxWait =" 2000 "validationQuery =" select 1 "poolPreparedStatements =" true "username =" quartzdesk "password =" 123456 "driverClassName =" com.mysql.jdbc.Driver "url = "jdbc: mysql: // localhost: 3306 / quartzdesk? cachePrepStmts = true" />

3.4 Creating a working directory
     Create a working directory named word_dir (anywhere will work) and copy the license.key file into this directory. The license.key file is available at Try / Purchase on the homepage of the official website. Open the quartzdesk-web-2.0.1.war package (change the suffix to .zip and decompress it to open it), and copy all files in the extras / work directory to word_dir. At this point, the work_dir directory contains at least three files: license.key, logback.xml, and quartzdesk.properties.
3.5 Configuration
 Open work_dir / quartzdesk.properties and change the value of db.profile to mysql_innodb. In addition, you can modify the log configuration in the work_dir / logback.xml file.
3.6 Stop tomcat
    TOMCAT_HOME / bin / shutdown.sh
3.7 Deploying the application
    Open the quartzdesk-web-2.0.1.war package and copy the extras / tomcat / quartzdesk.xml file to the TOMCAT_HOME / conf / Catalina / localhost directory. Open the quartzdesk.xml file and change the value of quartzdesk.work.dir to the actual work_dir address, for example:

    <Parameter name = "quartzdesk.work.dir" value = "F: / quartzdesk / work_dir" /> Change the file name of quartzdesk-web-2.0.1.war to quartzdesk.war and copy it to TOMCAT_HOME / webapps Under contents.
3.8 Security settings

   Open the TOMCAT_HOME / conf / tomcat-users.xml file and add user permission information. The following is an example of the tomcat-users.xml file: <? Xml version = ‘1.0’ encoding = ‘utf-8’?>
<tomcat-users>
... <!-QuartzDesk web application roles-> <role rolename = "QuartzDeskUser" /> <role rolename = "QuartzDeskMonitor" /> <role rolename = "QuartzDeskService" /> <user username = "user" password = "password" roles = "QuartzDeskUser" /> <user username = "monitor" password = "password" roles = "QuartzDeskMonitor" /> <user username = "service" password = "password" roles = "QuartzDeskService" /> </ tomcat-users> 3.9 start tomcat
    TOMCAT_HOME / bin / startup.sh

4. Access test

   Enter http: // TOMCAT_HTTP_HOST: TOMCAT_HTTP_PORT / quartzdesk in the browser, and enter the username and password as prompted. If the page can be opened, the installation and deployment are successful. Otherwise, check the logs under TOMCAT_HOME / logs and work_dir / logs to see why. 


Third, use quartzdesk to monitor quartz Schedulers 

Use Quartzdesk to monitor quartz Schedulers includes the following two steps:

 1. Enabling remote JMX access to the Platform MBean Server of the JVM the Quartz scheduler is running on (Platform MBean Server is a standard component of all modern JVMs).
 2. Exporting the Quartz scheduler management interface (MBean) to the JVM ’s Platform MBean Server. Under Windows:
 1. Modify the JVM parameters in Arguments of Eclipse, and click run -Djava.rmi.server.hostname = localhost -Djavax.management.builder.initial = -Dcom.sun.management.jmxremote = true -Dcom.sun.management .jmxremote.port = 1099 -Dcom.sun.management.jmxremote.ssl = false -Dcom.sun.management.jmxremote.authenticate = false -Dorg.quartz.scheduler.jmx.export = true
 2. Execute JAVA_HOME \ bin \ jconsole.exe to verify that JMX can connect to the Quartz scheduler.
 3. After verifying that you can connect, open http: // TOMCAT_HTTP_HOST: TOMCAT_HTTP_PORT / quartzdesk with your browser, add connection, and you can start monitoring.
   Under Linux:
1. Write a startup program and add the red part in the sample to the startup program #! / Bin / bash usage () {echo "usage:` basename $ 0` curl URL_ADDR --data-binary CSV_FILE_NAME -H 'Content-type: text / plain; charset = gb2312 '"} if [$ # -ne 0]; then usage exit 1 fi java -jar -Djava.rmi.server.hostname = localhost -Djavax.management.builder.initial = -Dcom.sun. management.jmxremote = true -Dcom.sun.management.jmxremote.port = 1099 -Dcom.sun.management.jmxremote.ssl = false -Dcom.sun.management.jmxremote.authenticate = false -Dorg.quartz.scheduler.jmx. export = true XX.jar
2. Perform the above startup procedure
3. Open http: // TOMCAT_HTTP_HOST: TOMCAT_HTTP_PORT / quartzdesk with a browser, add a connection, and you can start monitoring.
QuartzDesk (Lite Edition) installation and deployment summary

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.