Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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°æ±¾¼°Ïà¹ØÐÅÏ¢£¬¼´°²×°³É¹¦£¡


Ïà¹ØÎĵµ£º

LinuxÄÚºËÉý¼¶(ubuntu+virtual Box)


ÄÚºËÖÕÓÚ±à¹ý²¢ÇÒÉý¼¶ÁË£¬±¾À´´òËã×¥½ô¼ÌÐøÍùÏÂѧϰ¡£µ«ÊÇÔÚÀÏÆŵĹÄÀøÏ£¬¸Ð¾õ»¹ÊÇÍ£ÏÂÀ´×ܽáϱȽϺã¬ÕâÑù¶Ô×Ô¼º¶Ô±ðÈ˶¼ÓÐËù°ïÖú¡£
 
0¡¢»·¾³½éÉÜ
    ÎÒÊÇÔÚVirtualBox-3.1.6-59338-WinµÄÐéÄâ»úÉÏ°²×°ÁËubuntu-9.10-desktop-i386.iso¡£µçÄÔ±¾ÉíÊÇXPϵͳ¡£
    ×¢Ò⣬ÔÚ½øÐÐÏ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Ò»

ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
       
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......

Linux ÐźÅsignal´¦Àí»úÖÆ Èý

Ç°ÃæÁ½½ÚÒѾ­½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ

Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......

¹ØÓÚLinuxÐźŵÄ×ܽá


±ê×¼ÐźÅÓëʵʱÐźÅ
0-31 Õâ 32 ¸öÐźųÆΪ±ê×¼Ðźš£
´Ó 32 µ½ 63 Ö®¼äµÄ 32 ¸öÐźųÆΪʵʱÐźš£
¿ÉÒÔͨ¹ý man 7
signal ²é¿´¶Ô“±ê×¼ÐźŔºÍ“ʵʱÐźŔÏêϸµÄÃèÊö¡£
ÐźÅÅŶÓ
ÿ¸ö½ø³ÌÓµÓÐÒ»¸öÐźŵȴý¶ÓÁС£ÔÚ task_struct ÖÐÓÐÒ»¸ö struct sigpending pending Óò£¬
¾ÍÊǽø³ÌµÄÐźŠ......

linux statº¯Êý½²½â

statº¯Êý½²½â£¨×ª£©
±íÍ·Îļþ:    #include <sys/stat.h>
            #include <unistd.h>
¶¨Ò庯Êý:    int stat(const char *file_name, struct stat *buf);
º¯Êý˵Ã÷:    ͨ¹ýÎļþÃûfilename»ñÈ¡ÎļþÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ