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

linuxÏ°²×°ÅäÖÃjdk 1.6

Ô­ÎÄ£ºhttp://developer.51cto.com/art/200907/134477.htm
JDK1.6ÔÚLINUXϵݲװÅäÖÃÊÇJava³õѧÕß¿ªÊ¼Java±à³ÌµÄ
±Ø¾­Ö®Â·£¬ÄÇôÈçºÎJDK1.6ÔÚLINUXϵݲװÅäÖþͳÉÁËÊ×ÒªµÄÎÊÌ⣬ÄÇô±¾ÎľÍÏòÄã½éÉÜJDK1.6ÔÚLINUXϵݲװÅäÖÃÎÊÌâ¡£
JDK1.6ÔÚLINUXϵݲװÊÇÈçºÎ½øÐеÄÄØ£¬ÈÃÎÒÃÇ¿ªÊ¼ÎÒÃǵÄÑÝʾ£º
Ubuntu LinuxÏÂjdkµÄ°²×°ÓëÅäÖÃ
1.JDK1.6°²×°×¼±¸
´Ósun¹«Ë¾ÍøÕ¾www.sun.comÏÂÔØlinux°æ±¾µÄjdk,ÎÒÏÂÔصİ汾ÊÇJDK 6 Update 7,
µØÖ·http://java.sun.com/javase/downloads/index.jsp
jdk-6u7-linux-i586.bin,´ò¿ªÖնˣ¬ÓÃcdÃüÁî½øÈëjdkËùÔÚĿ¼,Ö´Ðи´ÖÆÃüÁî
sudo cp jdk-6u7-linux-i586.bin /usr
¼´½«jdk¸´ÖƵ½/usrĿ¼ÏÂ,È»ºó½øÈë/usrĿ¼cd /usr
Ö´ÐÐȨÏÞ
chmod +x jdk-6u7-linux-i586.bin
Ö´Ðа²×°ÃüÁî
./jdk-6u7-linux-i586.bin
ÈçÓö´íÎ󣬿ÉÏÈÇл»ÖÁrootÓû§ÏÂ,su root£¬ÔÙÖ´Ðа²×°ÃüÁî
°²×°³É¹¦»áÔÚ/usrĿ¼ÏÂÉú³Éjdk1.6.0_07Ŀ¼£¬¾ÍÊÇjdkµÄ°²×°Ä¿Â¼
ÖØÆôµçÄÔ,´ò¿ªÖնˣ¬ÊäÈëjava -version
ÈçÈôÓÐÏÔʾjavaµÄ°æ±¾ÐÅÏ¢£¬Ôò±íʾ°²×°³É¹¦,
2.JDK1.6°²×°ºóµÄÅäÖÃ
°²×°³É¹¦ºóÐèÒªÅäÖÃjdk»·¾³±äÁ¿
ÓÃcdÃüÁî½øÈë/etcĿ¼sudo vi profile¼´Ö´Ðб༭profileÎļþÃüÁî
ÔÚumas k022Ç°Ìí¼ÓÈçÏÂÄÚÈÝ:
export JAVA_HOME=/usr/jdk1.6.0_07
export JRE_HOME=/usr/jdk1.6.0_07/jre
export PATH=$PATH:/usr/jdk1.6.0_07/bin
export CLASSPATH=./:/usr/jdk1.6.0_07/lib:/usr/jdk1.6.0_07/jre/lib
±£´æÍ˳ö,ÖØÆôµçÄÔ
3.JDK1.6°²×°ÅäÖúóµÄ²âÊÔ
н¨Test.java
public class Test{  
   public static void main(String[] args){  
    System.out.println("Hello,Welcome to Linux World!");  
   }  

ÔÚÖÕ¶ËÓÃcdÃüÁî½øÈëTest.javaĿ¼,È»ºóÊäÈë
javac Test.java
java Test
ÈôÊä³ö
Hello,Welcome to Linux World!
Ôò±íÃ÷ÅäÖóɹ¦!
Èç²»ÄÜͨ¹ý±àÒ룬¿Éͨ¹ýÖØÐÂÆô¶¯ÏµÍ³ÊÔÊÔ
4.JDK1.6°²×°ÅäÖÃʱµÄ×¢ÒâÊÂÏî
ÔÚÓÃviÃüÁî±à¼­profileÎļþʱ£¬Linux³õѧÕß¿ÉÄÜ»¹²»ÊìÓÃ
sudo vi profile½øÈë±à¼­ÎļþºóÈç³öÏÖ
Press ENTER or type command to continue
Ôò°´»Ø³µÈ»ºó°´·½Ïò¼ü“Ï”ֱµ½umas k022Ç°Ò»ÐÐ
°´×Öĸo½øÈë±à¼­×´Ì¬
ÊäÈë»·¾³±äÁ¿ÄÚÈÝ
»Ø³µ,°´¼¸´ÎESC¼ü£¬Ö±µ½Ìýµ½&


Ïà¹ØÎĵµ£º

LinuxϱàÒëºÍ°²×°Èí¼þµÄ·½·¨

For all those who are beginners in any linux(ubuntu) find hard to find the package files of their distro and end up in finding an source package(which is either in tar.gz or .gz).. so now people think how to install these source files…..
lets now see how would you be installing source files ......

LinuxµÄÓû§ºÍÓû§×é¹ÜÀí

                      LinuxµÄÓû§ºÍÓû§×é¹ÜÀí
LinuxϵͳÊÇÒ»¸ö¶àÓû§¶àÈÎÎñµÄ·Öʱ²Ù×÷ϵͳ£¬ÈκÎÒ»¸öҪʹÓÃϵͳ×ÊÔ´µÄÓû§£¬¶¼±ØÐëÊ×ÏÈÏòϵͳ¹ÜÀíÔ±ÉêÇëÒ»¸öÕ˺ţ¬È»ºóÒÔÕâ¸öÕ˺ŵÄÉí·Ý½øÈëϵͳ¡£Óû§µÄÕ˺ ......

¼¸¸öLinuxʵÓóÌÐò

1. useradd ̞
useraddÃüÁÔðÌí¼ÓÓû§µ½Linuxϵͳ£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
useradd tom
2.userdel ̞
userdelÃüÁîɾ³ýÒ»¸öÓû§ÕË»§£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
userdel tom
3.passwd ̞
µ±´´½¨Ò»¸öÓû§Ö®ºóÐèҪΪÓû§ÉèÖÃÃÜÂ룬passwd ¿ÉÒÔÍê³É´Ë¹¦ÄÜ¡£µ±passwdºóÃæûÓвΠ......

·ÖÏí LinuxÑݱäµÄ15¸öÖØ´óÀï³Ì±®

¾Ý¹úÍâýÌ屨µÀ£¬½üÈÕ£¬×ÊѶÍøÕ¾TechradarÁоÙÁ˽üÊ®ÄêÀ´LinuxϵͳÑݱäÀú³ÌÖеÄÖØҪʱ¿Ì£¬ÏÂÃæÈÃÎÒÃÇÀ´ä¯ÀÀÕâ15¸ö¾ßÓÐÀï³Ì±®ÒâÒåµÄ¸Ä½ø£º
1¡¢2001Äê1Ô£ºLinux Kernel 2.4
Linux 2.4°æÊÇÒ»¸öÖØÒªµÄ·ÖË®Á룬¸Ã°æ±¾ÏµÍ³ÌṩÁËÐí¶àÖØÒªµÄ½Ó¿Ú£¬ÖîÈçUSBÆô¶¯¡¢À¶ÑÀÖÕ¶ËÉ豸¡¢ÄÚǶRAIDºÍext3¸ñʽµÄÎļþϵͳ¡£Linux³öÉ«µÄÇý¶¯³ÌÐ ......

ÔÚlinuxÏ »ñÈ¡£¬ÐÞ¸Ä×ÓÍøÑÚÂëNETMASKµÄÁ½¸öº¯Êý

//»ñÈ¡×ÓÍøÑÚÂëµÄº¯ÊýQString GetLocalNetMask()
{
int sock_netmask;
char netmask_addr[50];
struct ifreq ifr_mask;
struct sockaddr_in *net_mask;

sock_netmask = socket( AF_INET, SOCK_STREAM, 0 );
if( sock_netmask == -1)
{
perror("create socket failture...GetLocalNetMask\n");
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ