LINUXÏÂÈÎÎñ¶¨Ê±Ö´ÐÐ
LinuxÖкǫִ́ÐÐÈÎÎñ·½Ê½:
cron
ÊÇϵͳÖ÷ÒªµÄµ÷¶È½ø³Ì£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£crontabÃüÁîÔÊÐíÓû§Ìá½»¡¢±à¼»òɾ³ýÏàÓ¦µÄ×÷Òµ¡£Ã¿Ò»¸öÓû§¶¼¿ÉÒÔÓÐÒ»¸ö
crontabÎļþÀ´±£´æµ÷¶ÈÐÅÏ¢¡£¿ÉÒÔʹÓÃËüÔËÐÐÈÎÒâÒ»¸öshell½Å±¾»òij¸öÃüÁÿСʱÔËÐÐÒ»´Î£¬»òÒ»ÖÜÈý´Î£¬ÕâÍêÈ«È¡¾öÓÚÄ㡣ÿһ¸öÓû§¶¼¿ÉÒÔÓÐ
×Ô¼ºµÄcrontabÎļþ£¬µ«ÔÚÒ»¸ö½Ï´óµÄϵͳÖУ¬ÏµÍ³¹ÜÀíÔ±Ò»°ã»á½ûÖ¹ÕâЩÎļþ£¬¶øÖ»ÔÚÕû¸öϵͳ±£ÁôÒ»¸öÕâÑùµÄÎļþ¡£ÏµÍ³¹ÜÀíÔ±ÊÇͨ¹ý
cron.denyºÍcron.allowÕâÁ½¸öÎļþÀ´½ûÖ¹»òÔÊÐíÓû§ÓµÓÐ×Ô¼ºµÄcrontabÎļþ¡£
crontabµÄÓò
ΪÁËÄܹ»ÔÚÌض¨µÄʱ¼äÔËÐÐ×÷Òµ£¬ÐèÒªÁ˽âcrontabÎļþÿ¸öÌõÄ¿Öи÷¸öÓòµÄÒâÒåºÍ¸ñʽ¡£
ÏÂÃæ¾ÍÊÇÕâЩÓò£º
µÚ1ÁзÖÖÓ1¡«5 9
µÚ2ÁÐСʱ1¡«2 3£¨0±íʾ×ÓÒ¹£©
µÚ3ÁÐÈÕ1¡«3 1
µÚ4ÁÐÔÂ1¡«1 2
µÚ5ÁÐÐÇÆÚ0¡«6£¨0±íʾÐÇÆÚÌ죩
µÚ6ÁÐÒªÔËÐеÄÃüÁî
crontabµÄ¸ñʽ£º
·Ö ʱ ÈÕ ÔÂÐÇÆÚÒªÔËÐеÄÃüÁî
crontabÎļþµÄÒ»¸öÌõÄ¿ÊÇ´Ó×ó±ß¶ÁÆðµÄ£¬µÚÒ»ÁÐÊÇ·Ö£¬×îºóÒ»ÁÐÊÇÒªÔËÐеÄÃüÁËüλÓÚÐÇÆڵĺóÃæ¡£
¿ÉÒÔÓúá¸Ü-À´±íʾһ¸öʱ¼ä·¶Î§£¬ÀýÈçÄãÏ£ÍûÐÇÆÚÒ»ÖÁÐÇÆÚÎåÔËÐÐij¸ö×÷Òµ£¬ÄÇô¿ÉÒÔÔÚÐÇÆÚÓòʹÓÃ1 - 5À´±íʾ¡£
»¹¿ÉÒÔÔÚÕâЩÓòÖÐʹÓöººÅ“,”£¬ÀýÈçÄãÏ£ÍûÐÇÆÚÒ»ºÍÐÇÆÚËÄÔËÐÐij¸ö×÷Òµ£¬Ö»ÐèҪʹÓÃ1 , 4À´±íʾ¡£
¿ÉÒÔÓÃÐǺÅ*À´±íʾÁ¬ÐøµÄʱ¼ä¶Î¡£Èç¹ûÄã¶Ôij¸ö±íʾʱ¼äµÄÓòûÓÐÌرðµÄÏÞ¶¨£¬Ò²Ó¦¸ÃÔÚ¸ÃÓòÌîÈë*¡£¸ÃÎļþµÄÿһ¸öÌõÄ¿±ØÐ뺬ÓÐ5¸öʱ¼äÓò£¬¶øÇÒÿ¸öÓòÖ®¼äÒªÓÿոñ·Ö¸ô¡£
¸ÃÎļþÖÐËùÓеÄ×¢ÊÍÐÐÒªÔÚÐÐÊ×ÓÃ#À´±íʾ¡£
crontabÃüÁîµÄÒ»°ãÐÎʽΪ
crontab [-u user] -e -l –r
ÆäÖУº
-u Óû§Ãû¡£
-e ±à¼crontabÎļþ¡£
-l ÁгöcrontabÎļþÖеÄÄÚÈÝ¡£
-r ɾ³ýcrontabÎļþ¡£
Èç¹ûʹÓÃ×Ô¼ºµÄÃû×ֵǼ£¬¾Í²»ÓÃʹÓÃ-uÑ¡ÏÒòΪÔÚÖ´ÐÐcrontabÃüÁîʱ£¬¸ÃÃüÁîÄܹ»ÖªµÀµ±Ç°µÄÓû§¡£
´´½¨Ò»¸öеÄcrontabÎļþ
´´½¨Ò»¸öÃûΪ<user>cronµÄÎļþ£¬ÆäÖÐ<user>ÊÇÓû§Ãû£¬ÀýÈ磬samcron¡£ÔÚ¸ÃÎļþÖмÓÈëÈçϵÄÄÚÈÝ¡£
$su sam
$crontab samcron
#(put your own initials here) echo the date to the console every
#15 minutes between 6pm and 6am
0,15,30,45 18-06 * * * /bin/echo 'date' > /dev/console
ÔÚÉÏÃæµ
Ïà¹ØÎĵµ£º
ËùÓÐÀý×ÓÔÚ
linux-2.6.29.3
£¨
gcc-4.3.3
£©Ï±àÒëͨ¹ý£¬ÐèÒª×öµÄÐÞ¸ÄÈçÏ£º
l
´ò¿ªapue.2e
Îļþ¼ÐϵÄMake.defines.linux
Îļþ£¨¸ù¾ÝÄãµÄϵͳѡÔñ¶ÔÓ¦Îļþ£©£¬ÐÞ¸ÄWKDIR=/home/var/apue.2e
ΪÄãµÄapue.2e
Ŀ¼£¬ÈçWKDIR=/h ......
¡¡¡¡×òÌìÒѾ½«Ubuntu 9.10µÄ°²×°¹ý³ÌдÁËÒ»±é£¬µ±È»½ö½ö×°ºÃϵͳ»¹ÊÇʲô¶¼×ö²»ÁË¡£½ñÌìÖ÷ÒªÍƼöÏÂÎÒÕâЩÌìÓõÄÈí¼þºÍдһЩ¼òµ¥µÄ½Å±¾Ê¹ÏµÍ³¸üÒ×ÓÚʹÓá£
¡¡¡¡UbuntuÊÇÒ»¸öºÜÒÀÀµÍøÂçµÄLinux·¢Ðа汾£¬°²×°Îļþ½ö½ö700M£¬³ýÁË»ù±¾µÄϵͳÐèÒªµÄ²¿·Ö¼¸ºõ¶¼ÐèҪͨ¹ýÍøÂç½øÐиüС£Ê×ÏÈÎÒÃÇÐèÒªÅäÖà UbuntuµÄÈí¼þÔ´£¬Ä¬È쵀 ......
2007Äê12ÔÂ05ÈÕ ÐÇÆÚÈý 05:36
Linux×ö´úÀíÉÏÍø·þÎñÆ÷
Linux×ö´úÀíÉÏÍø·þÎñÆ÷--Ë͸øÄÇЩÏëÓÃLinux×öÍø°É´úÀíÉÏÍø·þÎñÆ÷µÄÅóÓÑ
Ê×ÏÈÉùÃ÷£¬»áÕâ¸öµÄÀÏÄñ²»Óÿ´£¬ÎÒÕâÖ»ÊǸøÐÂÊÖ¿´µÄ
Ê×ÏÈ°²×°ºÃLinux£¬×¼±¸Ò»Ì¨ÓÐÁ½¿éÍø¿¨µÄ·þÎñÆ÷£¬Ò»Íø¿¨½ÓÄÚÍø£¬ÁíÒ»Íø¿¨½ÓÍâÍø£¬±ÈÈçÍø°ÉÍâÍøIPΪ61.178.89.234 ÄÚÍøIP¶ÎΪ192.16 ......
ZZTµÄ£¬×ö¸ö±Ê¼Ç¡£ÒÔ±¸²é¿´¡£
linuxÏÂConfigureÃüÁî
http://hi.baidu.com/wanyinglong/blog/item/3d4eb9fd08d5a91e08244d34.html
2009-04-19 22:18
‘configure’½Å±¾ÓдóÁ¿µÄÃüÁîÐÐÑ¡Ïî.¶Ô²»Í¬µÄÈí¼þ°üÀ´Ëµ,ÕâЩѡÏî¿ÉÄÜ»áÓб仯,µ«ÊÇÐí¶à»ù±¾µÄÑ¡ÏîÊDz»»á¸Ä±äµÄ.´øÉÏ’–help’ Ñ¡ ......
1.ÐÞ¸Ä/etc/oratab £¬Ìí¼Ó$ORACLE_SID:$ORACLE_HOME:Y --
Y´ú±íOSÆô¶¯ÔòDBÆô¶¯±ØÐëÉèÖÃΪY£¬·ñÔòdbstartºÍdbstop²»¿ÉÓã¬NΪ²»Æô¶¯£¬$ORACLE_SIDÊÇDB
SID£¬$ORACLE_HOMEÊÇDB ¾ø¶Ô·¾¶
2.ÐÞ¸Ä/etc/rc.d/rc.loacl,¼ÓÈëÒÔÏ£º
#listener command
COMM_LISTENER=/opt/oracle/product/10.2.0/db_1/bin/lsnrctl
L ......