尊龙凯时人生就是搏

linuxʹÃüÍýÏë×Ö·û´®ÊÇʲôÃûÌÃ

linuxʹÃüÍýÏë×Ö·û´®ÊÇ¡°crontab¡±  £¬ÃûÌÃΪ¡°* * * * * command¡±£º1¡¢µÚÒ»¸ö*´ú±íСʱ£»2¡¢µÚ¶þ¸ö*´ú±íÿÖܵĵڼ¸Ì죻3¡¢µÚÈý¸ö*´ú±íÿÔµĵڼ¸Ì죻4¡¢µÚËĸö*´ú±íµÚ¼¸¸öÔ·Ý£»5¡¢command´ú±íÏÂÁî/¾ç±¾¡£

±¾½Ì³Ì²Ù×÷ϵͳ£ºLinux5.18.14ϵͳ¡¢Dell G3µçÄÔ¡£

ÔÚLinuxÖÐ  £¬Ê¹ÃüÍýÏëʹÓõÄÊÇcrontab£¨cron table£©×Ö·û´®À´Ö¸¶¨Ê¹ÃüµÄÖ´ÐÐʱ¼ä¡£crontab×Ö·û´®ÓÉ5¸ö»ò6¸öÓò×é³É  £¬Ã¿¸öÓòÓÿոñ»òÖƱí·ûÍÑÀë  £¬ÌåÏÖʹÃüµÄÖ´ÐÐʱ¼äºÍƵÂÊ¡£

±ê×¼µÄcron±í´ïʽÃûÌÃÈçÏ£º

* * * * * command
©¦ ©¦ ©¦ ©¦ ©¦
©¦ ©¦ ©¦ ©¦ ©¸©¤©¤©¤ ÏÂÁî/¾ç±¾
©¦ ©¦ ©¦ ©¸©¤©¤©¤©¤©¤ µÚ¼¸¸öÔÂ·Ý (1 - 12)
©¦ ©¦ ©¸©¤©¤©¤©¤©¤©¤©¤ ÿÔµĵڼ¸Ìì (1 - 31)
©¦ ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤ ÿÖܵĵڼ¸Ìì (0 - 7,ÆäÖÐ 0 ºÍ 7 ¶¼´ú±íÐÇÆÚÈÕ)
©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ Сʱ (0 - 23)

µÇ¼ºó¸´ÖÆ

ÉÏÃæµÄ5¸öÓò»®·ÖÌåÏÖ·ÖÖÓ¡¢Ð¡Ê±¡¢Ã¿Ôµĵڼ¸Ìì¡¢Ô·ÝÒÔ¼°Ã¿Öܵĵڼ¸Ì졣ͨÅä·û” *” ÌåÏÖÆ¥ÅäËùÓпÉÄܵÄÖµ¡£ÀýÈç  £¬Ê¹ÓÔ * “ÌåÏÖÿһ·ÖÖÓ  £¬Ê¹ÓÔ */5 “ÌåÏÖÿ 5 ·ÖÖÓ¡£

±ðµÄ  £¬»¹¿ÉÒÔʹÓÃÌØÊâ×Ö·ûÀ´ÌåÏÖ¸üÎÞаµÄÍýÏ룺

Ê¡ÂԺţ¨-£©ÌåÏÖÒ»¸ö¹æÄ£ÄÚµÄÒ»Á¬Öµ  £¬Èç “9-17” ÌåÏÖ´Ó 9 µ½ 17 µÄСʱ¡£

¶ººÅ£¨,£©ÓÃÓÚÁгö¶à¸öÀëÉ¢Öµ  £¬Èç “1,3,5” ÌåÏÖ 1¡¢3 ºÍ 5¡£

ÐǺţ¨*£©ÌåÏÖÆ¥ÅäËùÓпÉÄܵÄÖµ  £¬Èç ” * ” ÌåÏÖÿ·Ö¡¢Ã¿Ð¡Ê±»òÌìÌì¡£

бÏߣ¨/£©ÓÃÓÚÖ¸¶¨¾àÀë  £¬Èç “*/5” ÌåÏÖÿ 5 ¸öµ¥Î»¡£

ÏÂÃæÊÇһЩʾÀý£º

ÌìÌìÏÂÕ½Êé 2 µãÔËÐо籾£º0 14 * * * command

ÿÖÜÈÕÆÆÏþ 3 µãÔËÐо籾£º0 3 * * 0 command

ÿСʱÔËÐо籾£º0 * * * * command

ÿ 5 ·ÖÖÓÔËÐо籾£º*/5 * * * * command

ÐèҪעÖصÄÊÇ  £¬Óû§¿ÉÒÔʹÓÃcrontab -eÏÂÁî±à¼­×Ô¼ºµÄcron±í´ïʽ  £¬²¢½«ÆäÉúÑĵ½Ê¹ÃüÍýÏëÖС£Ê¹ÓÃcrontab -lÏÂÁî¿ÉÒÔÁгöÄ¿½ñÓû§µÄËùÓÐcronʹÃü¡£

ÒÔÉϾÍÊÇlinuxʹÃüÍýÏë×Ö·û´®ÊÇʲôÃûÌõÄÏêϸÄÚÈÝ  £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí  £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø  £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È  £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ  £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢  £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢  £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå  £¬9:30-18:30  £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ