Adding multithreading on the basis of spring task schedulingThree different ways:(1) using the Opensymphony Quartz Scheduler(2) using the JDK Timer support class(3) Springtaskexecutor abstractSpring Container ConfigurationReceive Data - Asynchronous thread pool - BeanID= "ThreadPool"class= "Org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> number of core threads - Propertyname=
I believe that many people will encounter such a problem, that is, they do not know how to get an alert in windows. When we start all the programs, attachments, and so on, we find it again and again, when the clock does not find the word "Alarm Clock", most of them will choose to give up. "It seems that Window clock is used for this small program. I will continue with the next program ". Well, at the beginning, I was troubled by this problem for a long time. Finally, I found that Windows was not
/M01/72/D3/wKiom1Xt1PPzLspkAABT1VbWOa0293.jpg "title=" 36020150908021813197.jpg "alt=" Wkiom1xt1ppzlspkaabt1vbwoa0293.jpg "/>3, every night 12 o'clock, get all the lines in the/proc/meminfo file starting with S or M, appended to the/statistics/meminfo.txt file, and the daily message before, to add a similar =============== separator line;650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/D3/wKiom1Xtz1qiKb2uAAAw2bU75_s070.jpg "title=" 36020150908015417669.jpg "alt=" Wkiom1xtz1qikb2uaaa
Linux Task Scheduler Cron[Email protected] ~]# CRONTAB-ENo crontab for root-using an empty oneThis is done 3 o'clock in the morning every day.0 3 * * */usr/bin/touch/root/123.txt >/dev/nullStart the service[Email protected] ~]# systemctl start CrondBasic format:* * * * * commandTime-sharing Weekly commandThe 1th column represents minutes 1~59 per minute with * or */1The 2nd column represents the hour 1~23 (
-defined data source for Localsessionfactorybean-PropertyName= "DataSource"Ref= "DataSource">Property>To add an object-relational mapping file-PropertyName= "Mappingdirectorylocations">List>The entity package under the SRC directory-Value>classpath:entityValue>List>Property>Bean>Inject DAO layer-BeanId= "Bookdao"Class= "Dao.impl.BookDaoImpl"P:sessionfactory-ref= "Sessionfactory">Bean>Injected into the SERIVCE layer-BeanId= "Bookserivce"Class= "Serivce.impl.BookSerivceImpl"P:bd-ref= "Bookdao">Bea
Pictures YangtabDocuments Public4. List the jobs submittedAfter a job is committed, you can use the "at-l" command to list all the jobs.Example: Use "at-l" to list all jobs.[Email protected] ~]# at-l6 2015-01-25 06:13 a root[Email protected] ~]#Where the 1th column is the job ID, followed by the date/time that the job was run, and a represents the at,root that represents the user executing the at job.You can also use the ATQ command to accomplish the same function, which is a link to the AT com
/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
Recently, the telephone switch every day, to restart once a day to be good, I really can't stand to do a script put on the server, do a task scheduled to execute once a day, manual execution completely no problem, directly put in the task plan inside.The second Sky server on the wrong "function is incorrect (0x80070001)", manual operation in the task plan is not
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_%
Most of the management of the system is done automatically by executing a script on a regular basis. Linux's mission plan can be crotab. What to do at what time of day.To install the command tool:Yum Install Vixie-cron CrontabsCrond boot from:Chkconfig Crond onTo see if the Crond service is turned on:Service Crond StatusTo start the Crond service:Service Crond StartCrontab Common options:-L: You can view the schedule of users for the specified user.-U useranme: Specifies that the user name defau
The php Tutorial file implemented by ignore_user_abort () can run after the browser is turned off. let's take a look at this function usage. ignore_user_abort (): will the execution of the script be terminated when the function is set to be disconnected from the client...
Ignore_user_abort () implements the php Tutorial file to run after the browser is closed. let's take a look at this function usage.
The ignore_user_abort () function sets whether the script execution is terminated when the
* * * 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
be executed,Script 1:"D:\LogFiles\APPService\AppServer.exe"EXE file to be executedThe hidden window only needs to set the second parameter of run to 0, the display is set to 1;Script 2Set Winscripthost = CreateObject ("Wscript.Shell") Winscripthost.run Chr "Set Winscripthost = NothingThe hidden window only needs to set the second parameter of run to 0, the display is set to 1;Configuration such as:Set the time interval for execution as needed:Perfect solution!There are a number of ways to set
Save File
18
When a user creates a new file or modifies a file, they canClick "Save File Button". The software pop-up Save Address dialog box allows users toSelect the Save address for the file.
05
Automatically save files
30
The user creates a new file or modifies a file, without pressing saveThe file button will leave the current interface. The software Pop-up warning dialog box tells you to useThe user does not save changes to the
Label:1. Create a batch file Restartsqlserver.batThe contents are as follows:net stop mssqlserver/yNET start MSSQLServerNet start SQLServerAgentPauseThe following is a description:net stop mssqlserver/y: Stop the SQL Server serviceNet start SQLServerAgent: Start the SQL Server service2, set up a scheduled task, run the batch on a regular basis; You can also add a job in the job, add a step to execute the execcmd command step step, in the command conte
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
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.