linux ¶¨Ê±ÈÎÎñ crontabµÄÓ÷¨
crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
2008Äê07ÔÂ30ÈÕ ÐÇÆÚÈý ÏÂÎç 01:00
crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
Step 1:
ʹÓÃÃüÁîcrontab
-e±à¼Ò»¸ö¶¨Ê±Ö´ÐеÄÈÎÎñ»òÔÚ/var/spool/cron/crontabsĿ¼ÏÂн¨Ò»¸öÓë×Ô¼ºÓû§ÃûÏàͬµÄÈÎÎñ.
¼´:
#ÿ¸ôÒ»·ÖÖÓÖ´ÐÐÒ»´Îºǫ́³ÌÐòtmpmail
* * * * * /home/milch/tmpmail
˳±ãÌáÒ»ÏÂcrontabÖеÄÃüÁî¸ñʽ:
µÚÒ»¸ö * ±íʾ·ÖÖÓ (0-59),
µÚ¶þ¸ö *
±íʾСʱ (0-23),
µÚÈý¸ö * ±íʾÔ·ÝÖеÄijһÌì (1-31),
µÚËĸö * ±íʾһÄêÖеÄijһÔÂ
(1-12),
µÚÎå¸ö * ±íʾһÖÜÖеÄÐÇÆÚ¼¸ (0-6 with 0=Sunday).
Step 2:
Í£Ö¹cron½ø³Ì,²¢ÖØÆô,
ÃüÁî:/etc/init.d/cron stop
/etc/init.d/cron start
-------------------------------------------------------------------------
Ö¸
ÁîÓï·¨
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
Ö¸Áî˵Ã÷
crontab ÌṩÎÒÃÇÔڹ̶¨µÄ¼ä¸ôʱ¼äÖ´ÐÐ×Ô¶©µÄ³Ìʽ¡¢ÏµÍ³Ö¸Áî»ò shell
secrip¡£Ê±¼ä¼ä¸ôµÄµ¥Î»¿ÉÒÔÊÇ·ÖÖÓ¡¢Ð¡Ê±¡¢ÈÕ¡¢ÖÜ¡¢Ô¼°ÒÔÉϵÄÈÎÒâ×éºÏ¡£ÔÊÐíʹÓÃÕßÀëÏßÖ´ÐУ¬²¢ÇÒ¿ÉÒÔ½«Ö´Ðнá¹ûÒÔ email
֪ͨʹÓÃÕß¡£Òò´Ë£¬·Ç³£ÉèºÏ¶ÔÖÜÆÚÐԵĹÜÀí·ÖÎö»ò×ÊÁϱ¸·ÝµÈ¹¤×÷¡£
»ù±¾ÉÏ£¬crontab µÄÖ¸Áî¸ñʽ·ÖΪÁù¸ö²¿·Ö£¬Ç°Îå¸öΪʱ¼ä¼ä¸ô£¬×îºóÔòÊÇÖ´ÐеÄÖ¸Áÿһ¸ö²¿·ÖÓÿոñÀ´Çø¸ô¡£
·Ö -- 0-59
ʱ -- 0-23
ÈÕ -- 1-31
Ô -- 1-12 »òʹÓÃÓ¢ÎÄÃû³Æ
ÐÇÆÚ --
0-7 »òʹÓÃÓ¢ÎÄÃû³Æ
¹¤×÷ÃüÁî -- Ö¸Áshell script£¬³Ìʽ....(½¨ÒéʹÓþø¶Ô·¾¶)
ÒÔÉÏÊÇ
crontab µÄ»ù±¾¸ñʽ¡£
Ñ¡Ïî˵Ã÷
-u user
ÒÔÖ¸¶¨µÄʹÓÃÕßÉí·Ý£¬Ö´ÐÐ crontab ¹¤×÷¡£´ËÑ¡Ïî½ö¹© root ʹÓá£
-l
ÏÔʾʹÓÃÕßÏÖÐÐµÄ crontab µµ¡£
-r
ÒÆ³ýÏÖÐÐµÄ crontab µµ¡£
-e
½øÈë vi ±à¼ crontab µµ(ÈçÓÐÉ趨 VISUAL »ò EDITOR
»·¾³±äÊý£¬ÔõʹÓøû·¾³±äÊýËùÉ趨µÄ±à¼Æ÷À´±à¼)¡£ÔÚʹÓÃÕßÍ˳ö±à¼Æ÷ºó£¬»á×Ô¶¯½«Ëù±à¼ crontab µµ£¬ÖÃÈë crontab Ö´ÐС£
Ïà
¹Øµµ°¸
/etc/cron.allow
/etc/cron.deny
ʵÀý
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæÍ¼±ê
Ŀǰ½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËÆµÄ·½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
ºÜ¶àLINUX³õѧÕß·Ö²»Çå³þlinuxºÍXÖ®¼ä,XºÍXfree86Ö®¼ä,XºÍKDE,GNOMEµÈÖ®¼äÊÇʲô¹ØÏµ.³£³£»ìÏý¸ÅÄî,ÎÒÏëÒԱȽÏÒ×ÓÚÀí ½âµÄ·½Ê½ËµÃ÷Ò»ÏÂX,X11,XFREE,WM,KDE,GNOMEµÈÖ®¼äµÄ¹ØÏµ.ÓÉÓÚ±¾ÈËˮƽÓÐÏÞ¿ÉÄÜ´æÔÚ´íÎó,Çë¸ßÊÖÖ¸Õý.
Ò»,linux±¾ÉíûÓÐͼÐνçÃæ,linuxÏÖÔÚµÄͼÐνçÃæµÄʵÏÖÖ»ÊÇlinuxϵÄÓ¦ÓóÌÐòʵÏÖµÄ.
ͼ ÐνçÃæ²¢²»ÊÇ ......
LinuxÐźÅÁ¿ ¹²ÏíÄÚ´æºÍÏûÏ¢¶ÓÁÐ
1. ÐźÅÁ¿
ʹÓÃÐźÅÁ¿¿ÉÒÔʵÏÖ½ø³Ì¼äͬ²½¡£Ö÷Òªº¯Êý¶¨Ò壺
#include <sys/sem.h>
int semctl(int sem_id, int sem_num, int command, …);
int semget(key_t key, int num_sems, int sem_flags);
int semop(int sem_id, struct sembuf *sem_ops, size_t num_sem_ops);
& ......
ÐÞ¸ÄÅäÖÃÎļþ£¬Ê¹tomcat×Ô¶¯Æô¶¯
(¼ÙÉètomcatµÄ°²×°Â·¾¶Î»ÓÚ /opt/apache-tomcat5.5.26Ŀ¼ÏÂ)
ÔÚroot¸ùĿ¼Ï£¬ÊäÈë vi /etc/profile
ÔÚprofileÎļþÖмÓÈëÏÂÃæ¼¸¾ä»°
cd /opt/apache-tomcat5.5.26/bin
chmod 777 * // °ÑbinĿ¼ÏµÄËùÓÐÎļþµÄȨÏÞÉèÖÃ×î´ó£¬·ñÔò½«²»ÄÜÔËÐÐ
  ......
Ò»¡¢Ð½¨²¢³õʼ»¯°æ±¾¿â
1.н¨´úÂë²Ö¿â
# svnadmin create /home/myrepos
ÕâÑù£¬ÎÒÃǾÍÔÚ/homeĿ¼ÏÂн¨Á˰汾¿âmyrepos¡£
2.³õʼ»¯´úÂë²Ö¿â
#mkdir -p code/{branches,tags,trunk}
°´ÕÕsvnÊÖ²áÉϵĽ¨Ò飬ÎÒÃǰ汾¿âµÄ²¼¾Ö²ÉÓÃbranches/tags/trunkÕâÑùµÄÈý¸öĿ¼¡£
È»ºó¿ÉÒÔ½«´úÂëÖ±½Ó¿½±´µÄtrunkĿ¼£¬Ò²¿ÉÒÔËæºó ......