LinuxÏ°²×°JDK£¬¼°Ïà¹Ø»·¾³±äÁ¿ÅäÖÃ
Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jdk-1_5_0_02-linux-i586.rpm.bin
´Ëʱ»áÉú³ÉÎļþjdk-1_5_0_02-linux-i586.rpm£¬Í¬Ñù¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm
°²×°³ÌÐò
#rpm -ivh jdk-1_5_0_02-linux-i586.rpm
³öÏÖ°²×°ÐÒéµÈ£¬°´½ÓÊܼ´¿É¡£
Linux°²×°JDK²½Öè2.ÉèÖû·¾³±äÁ¿¡£
ҪʹJDKÔÚËùÓеÄÓû§ÖÐʹÓ㬿ÉÒÔÕâÑù£º
vi /etc/profile.d/java.sh
ÔÚеÄjava.shÖÐÊäÈëÒÔÏÂÄÚÈÝ£º
#set java environment
JAVA_HOME=/usr/java/jdk-1_5_0_02
CLASSPATH=.:¡çJAVA_HOME/lib/tools.jar
PATH=¡çJAVA_HOME/bin:¡çPATH
export JAVA_HOME CLASSPATH PATH
±£´æÍ˳ö£¬È»ºó¸øjava.sh·ÖÅäȨÏÞ£ºchmod 755 /etc/profile.d/java.sh
Linux°²×°JDK²½Öè3.ÔÚÖÕ¶ËʹÓÃechoÃüÁî¼ì²é»·¾³±äÁ¿ÉèÖÃÇé¿ö¡£
#echo ¡çJAVA_HOME
#echo ¡çCLASSPATH
#echo ¡çPATH
4.¼ì²éJDKÊÇ·ñ°²×°³É¹¦¡£
#java -version
Èç¹û¿´µ½JVM°æ±¾¼°Ïà¹ØÐÅÏ¢£¬¼´°²×°³É¹¦£¡
Ïà¹ØÎĵµ£º
1:ÏÂÔØÉçÇø°æµÄmysql£¬
ÒªÏÂÔØÁ½¸öÎļþ£¬·Ö±ðΪ£ºMySQL-server-community-5.1.46-1.rhel5.i386.rpm
......
Linux ÄÚºËÈíÖжÏ(softirq)Ö´ÐзÖÎö
Author: sinister
Email: sinister@whitecell.org
Homepage:http://www.whitecell.org
Date: 2007-01-11
±¾ÎÄ¶Ô Linux ÄÚºËÈíÖжϵÄÖ´ÐÐÁ÷³Ì½øÐÐÁË·ÖÎö£¬²¢¾¡¿ÉÄܵĽáºÏµ±Ç°ÔË
Ðл·¾³ÏêϸµØд³öÎÒµÄÀí½â£¬µ«Õâ²¢²»±íÃ÷ÎÒµÄÀí½âÒ»¶¨ÕýÈ·¡£Õâ±¾ ......
ÔÚѧϰAPUEʱѧϰÐźűà³Ì£¬ºÜ¶àµØ·½²»ÊÇÀí½â£¬±ã²éÔÄÁËÍøÂçÉϵÄÏà¹Ø×ÊÁÏ£¬×î³£¼ûµÄÒ»¾ä»°¾ÍÊÇ“ÐźÅÊÇÖжϻúÖƵÄÒ»ÖÖÄ£Ä┣¬¼ÈÈ»Ìáµ½ÁËÖжϣ¬ÄǾÍÊ×ÏÈÁ˽âÁËÒ»ÏÂÖжϵľßÌå·ÖÀàÒÔ¼°ÊµÏÖ£¬×îºóÔÙÕÒ³öÖжϺÍÐźŵÄÇø±ð¡£
LINUXÖжϻúÖÆÓëÐźÅ
ÖжϺÍÒì³£
l
ÖÐ ¶Ï£¨Ò²³ÆÓ²¼þÖжϣ©
¶¨Òå
£ºÖ ......
¶þ¡¢ÐÅ ºÅ »ú ÖÆ
ÉÏ Ò»½ÚÖнéÉÜÁËÐźŵĻù±¾¸ÅÄÔÚÕâÒ»½ÚÖУ¬ÎÒÃǽ«½éÉÜÄÚºËÈçºÎʵÏÖÐźŻúÖÆ¡£¼´ÄÚºËÈçºÎÏòÒ»¸ö½ø³Ì·¢ËÍÐźš¢½ø³ÌÈçºÎ½ÓÊÕÒ»¸öÐźš¢½ø³ÌÔõÑù¿ØÖÆ×Ô¼º¶ÔÐÅ ºÅµÄ·´Ó¦¡¢ÄÚºËÔÚʲôʱ»ú´¦ÀíºÍÔõÑù´¦Àí½ø³ÌÊÕµ½µÄÐźš£»¹Òª½éÉÜÒ»ÏÂsetjmpºÍlongjmpÔÚÐźÅÖÐÆðµ½µÄ×÷Óá£
1¡¢Äں˶ÔÐźŵĻ ......
4¡¢alarmºÍ setitimerϵͳµ÷ÓÃ
ϵͳµ÷ÓÃalarmµÄ¹¦ÄÜÊÇÉèÖÃÒ»¸ö¶¨Ê±Æ÷£¬µ±¶¨Ê±Æ÷¼Æʱµ½´ïʱ£¬½«·¢³öÒ»¸öÐźŸø½ø³Ì¡£¸Ãµ÷ÓõÄÉùÃ÷¸ñʽÈçÏ£º
unsigned int alarm(unsigned int seconds);
&n ......