First, quartz learning Java Framework Introduction: Quartz from beginner to advancedHttp://edu.yesky.com/edupxpt/233/2209233.shtmlExample: http://javacrazyer.iteye.com/blog/675460http://blog.csdn.net/lotusyangjun/article/details/6450421Official website: http://www.quartz-scheduler.orgSecond, Scheduledthreadpoolexecutor studyJDK5 after Java introduced the Scheduledthreadpoolexecutor, theoretically no longer need to use a timer The difference between a timer and a scheduledthreadpoolexecutor :http
/cron.daily, tasks that have not been performed within a certain period, 5 minutes after power-on7cron.weeklyNice run-parts/etc/cron.weekly, a task that has not been performed in a certain period and is executed 25 minutes after booting@monthlycron.monthlyNice run-parts/etc/cron.monthly, a task that has not been performed in a certain period and is executed 45 minutes after bootII. Mail command: Lists the m
/bin/systemctl Stop sshd0 * */5 * */usr/bin/rm-rf/var/ftp/pub/ *30 7 * * 6/USR/BIN/SYTEMCTL Restart HTTPD30 * * 1,3,5/usr/bin/tar JCVF HTTPDCONF.TAR.BZ2/ETC/HTTPDNote: When setting a task that is not performed every minute, the Minutes field should also fill in a specific time value instead of the default "*", otherwise the scheduled task will be executed every minute.Confirm the contents of the root user's
Tags: Apache server1. First find the Windows Task Scheduler 2. Periodically call the. Bat program to point to the appropriate action by creating a Windows task schedule1) Back up the MySQL data The. bat code is as follows @echo off
Set "ymd=%date:~,4%%date:~5,2%%date:~8,2%"
e:/appserv/mysql/bin/mysqldump--opt-u root--password =password testdb > E:/db/testdb_%
* * * Root cat/etc/fatab executed every three hours from 8 to 8 o'clock in the first minute of the night.Every two days 2:7 A.M. will be the etc under all the files packaged into etc-' date +%f '. tar.xz format in the backup directory7 2 */2 * * Root tar-jcf/backup/etc-' date +%f '. tar.xz/etc/*Monday to Friday 8 o'clock to 18, twice every 3 hours.2,32 8-18/3 * * 1-5B, PATH:/bin:/sbin:/usr/bin:/usr/sbinIf it is a command: use absolute pathIf it's a script: Customize the path in the scriptC, Re
View logs in real time:Tail-f/var/log/cronShow Task Scheduler Bash#crontab-u username-l Edit bash#crontab-u username-e Content: * * * * * commandline meaning: #分钟0-59 | Hours 0-23 | Date 1-31 | Month 1-12 | Day of the Week 0-6# * * * * *sample:0 */2 * * */sbin/service httpd restart30 6 */10 * ls means 1, 11, 21, 31st of the Month is The 6:30 executes the LS command onceRestart: Bash#service c
Java Code test Class public class Testquartz {public void Test () {System.out.println ("*********************quartz Task Scheduler ******************* **");}} Quartz configuration file Then load this configuration file! Attached: cronexpression configuration instructions (from the network)Cron expression on-line generator: http://www.hahuachou.com/cron/index.htm special characters allowed for field allow
First, the Task plan management--crontabEdit Scheduled Task: Crontab-e "-u user Name"View Scheduled Tasks: Crontab-l "-u user Name"Delete Scheduled Task: Crontab-r "-u user Name"Root user can manage scheduled tasks for a specified userOrdinary users can only manage their own scheduled tasksII. configuration format of the task
at any moment. For example, the day, month, and week of an example are *, which means that the follow-up order is executed 12:00 on the day of the week, regardless of the month.
, (comma)
Represents the meaning of the separation period. For example, if the work to be performed is 3:00 and 6:00, it will be:0 3,6 * * commandThe time is still five columns, but the second column is 3,6, representing 3 and 6.
-(minus)
Represents a period of time, for example, be
() {//TODO: Add code here to perform the close operation required to stop the service. PCore.Log.LogTextHelper.WriteLog ("onstop:test Service End ..."); } protected Override voidOnPause () {PCore.Log.LogTextHelper.WriteLog ("onpause:test Service paused ..."); } protected Override voidOnContinue () {PCore.Log.LogTextHelper.WriteLog ("oncontinue:test Service continues ..."); } }}About the Windows service on the loading and unloading can self-Baidu, no more beep.After the installa
Most people may use github.com/robfig/to write cron module, but this module only dynamically add tasks, but there is no dynamic removal of the task Func, so after some search, found a better cron module: https:// Github.com/jakecoffman/cronThis module although fork less people but personally think it is good, he basically is robfig write the improvement of Cron, the task of the structure to add the name str
To view system process commands:1. Utility Command PS-EF View all background processes generally use the filtering process with grep2.ps-fu root View all root processesPID Process number PPID The parent process number TTY process related terminal2.top command Continuous monitoring processphysical memory is not enough to see Swap: Swap space sizein the The Top command presses M or P to see the processes that consume the most memory and cupsPstree View process relationship Pstree can also add
Native-hadoop library for your platform ... using Builtin-java classes where applicable*** State changed ********** ... Omit a large heap of copy jar logs ********** info changed ******************** state changed **********mar, 2018 12:00:55 PM Org.apach E.spark.launcher.outputredirector redirectinfo:18/03/10 12:00:55 INFO yarn. Client:application Report for application_1518263195995_37615 (state:accepted) ... Omit a heap of redirected logs application_1518263195995_37615 (state:accepted) ID a
BUG Error: Execution failed for task': app: dexdebug'., executiondexdebug
Error:Execution failed for task ':app:dexDebug'.
> Com. android. ide. common. process. processException: org. gradle. process. internal. execException: Process 'COMMAND 'C: \ Program Files \ Java \ jdk1.8.0 _ 66 \ bin \ java.exe ''finished with non-zero exit value 2
I want to get a google
Android issue highlights forty-seven: Error: Execution failed for task #39;: app: packageRelease #39;.) Unable to compute hash
The jna-related warnings are listed above when you encounter this problem during obfuscation compiling when using the jna jar package.You need to develop compilation rules in the proguard-rules.pro to ignore the jna-related package warnings.
-keep class com.sun.jna.** { *; }-dontw
Error: Execution failed for task ': app: transformClassesWithDexForRelease' occurs during androidstudio packaging. solution,
When packaging a project on android studio today, I encountered the Error: Execution failed for task ': app: transformClassesWithDexForRelease. I remember that I encountered this problem before,
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.