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
ÔÚÉÏÃæµ
Ïà¹ØÎĵµ£º
ÓÃGCC¿ª·¢linuxÓ¦ÓóÌÐò£¨¾µä£©
2009Äê11ÔÂ01ÈÕ ÐÇÆÚÈÕ 23:58
×÷Ϊ×ÔÓÉÈí¼þµÄÆì½¢ÏîÄ¿£¬Richard Stallman ÔÚÊ®¶àÄêÇ°¸Õ¿ªÊ¼Ð´×÷ GCC µÄʱºò£¬»¹Ö»ÊÇ°ÑËüµ±×÷½ö½öÒ»¸ö C³ÌÐòÓïÑԵıàÒëÆ÷£»GCC µÄÒâ˼ҲֻÊÇ GNU C Compiler ¶øÒÑ¡£¾¹ýÁËÕâô¶àÄêµÄ·¢Õ¹£¬GCC ÒѾ²»½ö½öÄÜÖ§³Ö CÓïÑÔ£»ËüÏÖÔÚ»¹Ö§³Ö Ada ÓïÑÔ¡¢C++ ÓïÑÔ¡¢Ja ......
¡¾¸´Ï°LinuxµÚÒ»²½¡¿
×¢Ò⣺ÓÐЩȨÏÞÖ»Óг¬¼¶Óû§²ÅÓУ¡
===°²×°===
×¢ÒâÔÚ·ÖÇøµÄʱºòµÄÑ¡Ôñ£¬Èç¹ûûѡÔòÓпÉÄܲ»ÄܼÌÐøÏÂÒ»²½
===°²×°===
*********
*********
===ÃüÁî===
[×î»ù±¾ÃüÁî]
ls
pwd
cd
ls -al
su Óû§
clear
[µÇ½½çÃæµÄÉèÖÃ]
Õâ¸öisoÎļþÓйØϵ£¬ÓÐЩlinux¾µÏñÎļþĬÈÏÊÇÆô¶¯Í¼Ðλ¯½çÃæ ......
ÕªÒª
LinuxÄÚºËÄ£¿é±à³ÌµÄ×ÊÁÏÓÐЩ·×·±¸´ÔÓ£¬ÓеĹýÓÚ¼òµ¥£¬ÓеĹýÓÚÅÓÔÓ£¬ÎÒÊÔͼÓñʼǵÄÐÎʽÏë¶ÁÕßչʾÔõÑùÀ´½ø³ÌLinuxÄ£¿é±à³Ì£¬Á¦Í¼×öµ½¼òÃ÷¶óÒª£¬ÕâƪÎÄÕÂÒ²ÊÇ×÷Ϊ±¾È˱¸ÍüµÄ×ÊÁÏ£¬ËùÒÔÓÐЩµØ·½¹ýÓÚ¼òÂÔÊÇÄÑÃâµÄ¡£±¾À´ÕâƪÎÄÕµÄÄ¿µÄ¾ÍÊÇÈÃÓû§ÖªÆäÈ»£¬ÖÁÓÚËùÒÔÈ»»¹ÊÇÇë²Î¿¼ÏàÓ¦µÄ×ÊÁÏ£¬Æäʵ×îºÃµÄ×ÊÁÏĪ¹ýÓÚLinux ......
ÏÂÃæÓÃ×ÔÆô¶¯apacheΪÀý;
×ÔÆô¶¯½Å±¾:
/usr/local/apache2/bin£»
./apachectl start
ÎļþλÓÚ/etc/rc.d/init.dÏÂ,ÃûΪapached, ×¢ÒâÒª¿ÉÖ´ÐÐ.
#chmod +x /etc/rc.d/init.d/apached //ÉèÖÃÎļþµÄÊôÐÔΪ¿ÉÖ´ÐÐ
#ln -s /etc/rc.d/init.d/apached /etc/rc3.d/S90apache //½¨Á¢ÈíÁ¬½Ó,¿ì½Ý·½Ê½
#ln -s /etc/rc.d/init.d/a ......