How to perform tasks regularly under LinuxIn Linux you should first enter CRONTAB-E, then there will be a VI editing interface, and then enter 0 3 * * 1/clearigame2 content into the inside: Wq save exit.In Linux, the tasks performed by the cycle are
function Introduction
Cron is a timed distributed timed task service that ACE provides to developers, and can perform related tasks on a regular basis as required. For example, back.php periodically queries the database for specific messages to be
Network time Protocol (NTP) is also a new exam requirement for RHCE. Study time also by the way to review how to set up Linux time, now take out and share with youSetting up an NTP server is not difficult, but NTP itself is a very complex protocol.
1. Enter date directly to display the time, or you can add-u,
root@openwrt:/# Date-uThu Mar 11:36:33 UTC 2016root@openwrt:/# Date-rThu, 2016 11:36:49 +0000
2. Change the time zone in OpenWrt in/etc/config/systm
Changes in
Option timezone
1. Adjust database server timeBecause the app shook a shake activity found out of date 15 minutes, but also can continue to shake, the problem is that the database server time than the application server time is quite 18 minutes, and the app is the
Frequently used commands to view system InformationLinux versionUname-a Viewing system kernel informationLsb_release-a viewing LSB (Linux standard Base) and distribution informationCat/etc/issue View Linux
The default installed time zone for VPS I purchased is Moscow (East quad)? And look at the execution of several commands:
root@blogguy_cn:~# DateWed 8 20:16:23 MSK 2014root@blogguy_cn:~# Date-uWed 8 16:16:26 UTC 2014root@blogguy_cn:~# Date-rWed 2014
PHP itself does not have a timer function,PHP can not be multithreaded. PHP's scheduled task function must be combined with other tools to achieve Linux the script implementationHow to use :crontab Filecrontab [-u user ] [-u user ] {-l |-r |-e}
Linux ntp time server configuration tutorial, ntp server configuration
Network Time Protocol (NTP) is also a new test requirement for RHCE. During study, I also reviewed how to set the Linux Time. Now I will share it with you.
It is not difficult
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.