ÈçºÎʹÓÃeclipse½øÐÐǶÈëʽLinuxµÄ¿ª·¢
×÷ÕߣºÔøºê°²£¬»ªÇåÔ¶¼ûǶÈëʽѧԺ¸ß¼¶½²Ê¦¡£
ÈçºÎʹÓÃeclipse½øÐÐǶÈëʽLinuxµÄ¿ª·¢ Ï°¹ßÁËÔÚwindows»·¾³Ï¿ª·¢µÄ³ÌÐòÔ±ÔÚתµ½Linuxƽ̨ʱ¾³£»á±§Ô¹Ã»ÓÐÒ»¸öºÃÓõļ¯³É¿ª·¢»·¾³¡£ºÍwindowsϳ£ÓõÄһЩ¿ª·¢Èí¼þÏà±È£¬Linux×Ô´øµÄһЩ¿ª·¢»·¾³Ê¹ÓÃÆðÀ´ÒªÃ´½çÃæºÍ²Ù×÷²»¹»·½±ã¡¢ÓѺã¬ÒªÃ´¹¦Äܲ»È«¡£ÆäʵÎÒÃÇÍêÈ«¿ÉÒÔÔÚ¿ªÔ´ÉçÇøÉÏÕÒµ½²Ù×÷·½±ã£¬¹¦ÄÜÇ¿´óµÄ¿ª·¢»·¾³¡£ÏÂÃæ¾ÍÏò´ó¼Ò½éÉÜÒ»¸öÄÜÔÚLinuxÉÏÔËÐУ¬½çÃæºÍ¹¦ÄÜÓëwindowsÉÏͬÀàÈí¼þÏàËƵĿª·¢Æ½Ì¨eclipse¡£
eclipseÊÇÖøÃûµÄ¿çƽ̨µÄ¼¯³É¿ª·¢»·¾³(IDE)£¬×î³õÊÇÓÉIBM¹«Ë¾¿ª·¢µÄÌæ´úÉÌÒµÈí¼þVisual Age For JaveµÄÏÂÒ»´ú¿ª·¢»·¾³¡£2001Ä꣬IBM½«eclipse¹±Ï׸ø¿ªÔ´ÉçÇø£¬ÏÖÔÚÓÉeclipse»ù½ð»á¹ÜÀí¡£2005Äê7Ô£¬eclipseÎȶ¨°æ3.1.0·¢²¼£¬Ä¿Ç°×îеÄÎȶ¨°æ±¾ÊÇ3.4¡£
eclipse±¾ÉíÖ»ÊÇÒ»¸ö¿ò¼Üƽ̨£¬×î³õÖ÷ÒªÓÃÓÚjavaÓïÑԵĿª·¢¡£µ«ÊÇÖÚ¶à²å¼þµÄÖ§³ÖʹµÃeclipseͬÑù¿ÉÒÔÓÃÀ´¿ª·¢ÆäËûµÄÓïÑÔ£¬Èçc/c++¡¢c#¡¢perl¡¢cobolµÄµÈµÈ¡£cdt(c/c++ development toolkit)¾ÍÊÇÖ§³Öc/c++¿ª·¢µÄ²å¼þ¡£Ðí¶àÈí¼þ¿ª·¢ÉÌÒ²ÒÔeclipseΪ¿ò¼ÜÍƳöÁË×Ô¼ºµÄ¼¯³É¿ª·¢»·¾³¡£ÓÉÓÚeclipseƽ̨ÓÃjavaʵÏÖ£¬ËùÒÔÔËÐÐʱÐèÒªjre(java runtime environment)µÄÖ§³Ö¡£ÏÂÃæÎÒÃÇÒÔubuntu(linux·¢ÐаæµÄÒ»ÖÖ)ΪÀý£¬½éÉÜÈçºÎÔÚlinuxÉÏʹÓà eclipse+cdtÀ´½øÐÐǶÈëʽLinuxÓ¦ÓóÌÐòµÄ¿ª·¢¡£
Ò»¡¢°²×°Èí¼þ
ÔÚubuntuÏ°²×°Èí¼þÓÐÁ½ÖÖ·½·¨:ʹÓÃapt-getÀ´×Ô¶¯°²×°»òÊÖ¶¯°²×°¡£Óû§Ê¹ÓÃ×Ô¶¯°²×°·Ç³£·½±ã£¬ÊʺϳõѧÕß¡£µ«ÊÇ°²×°¹ý³Ì¹ýÓÚÒÀÀµ×ÊÔ´ÍøÕ¾µÄÁ¬½Ó×´¿ö£¬¿ÉÄÜÐèÒªºÄ·Ñ¹ý¶àµÄʱ¼ä¡£ÕâÀïÎÒÃÇÍƼöÊÖ¶¯°²×°µÄ·½Ê½£¬»¨µÄʱ¼ä±È½Ï¶Ì¡£
1¡¢°²×°jdk
jdk(java development kit)¼´java¿ª·¢°ü£¬ÆäÖаüº¬ÁËÔËÐÐeclipseËùÐèÒªµÄjre. ubuntuȱʡ°²×°µÄgnu°æ±¾µÄjreÔËÐÐЧÂʲ»¸ß£¬ËùÒÔÎÒÃÇÐèÒª°²×°sun¹«Ë¾µÄjre. Ê×ÏÈ´ÓsunµÄÍøÕ¾ÉÏ(http://java.sun.com/javase/downloads/index.jsp)ÏÂÔØ°²×°°üjdk-6u7-linux-i586.bin£¬È»ºóÈçϽøÐа²×°£º
# mkdir -p /opt/java
# ./jdk-6u7-linux-i586.bin // Ö´ÐÐ×Ô½âѹÎļþ£¬Éú³ÉĿ¼
# mv jdk1.6.0_07 /opt/java // °ÑĿ¼ÒƵ½/opt/javaÏÂ
# cd /opt/java
# ln -s jdk1.6.0_07 jdk
&nbs
Ïà¹ØÎĵµ£º
2009 Äê 7 ÔÂ 30 ÈÕ
±¾ÎÄÊÇ Unix/Linux ϵͳ¹ÜÀí×Ô¶¯»¯ÏµÁÐÖеÄһƪ£¬Ö÷Òª½²ÊöÈçºÎʵÏÖ×Ô¶¯»¯¼à¿Ø´ÅÅÌ¿Õ¼ä״̬²¢¼°Ê±Í¨ÖªÏµÍ³¹ÜÀíÔ±²ÉÈ¡ÏàÓ¦´ëÊ©¡£
ÔÚ Unix/Linux ϵͳµÄÈÕ³£¹ÜÀí¹¤×÷ÖУ¬ÏµÍ³¹ÜÀíÔ±¿ÉÄÜ»áÓöµ½Òò´ÅÅÌ¿Õ¼äºÄ¾¡¶øµ¼Ö¶ªÊ§Êý¾Ý£¬»òÕßϵͳ±ÀÀ£µÈ¡£ÕâЩÑÏÖصÄʹʼ«´óµÄÓ°ÏìÁ˹¤×÷ЧÂÊ¡£Òò´Ë£¬¹ØעϵͳµÄ´ÅÅÌʹ ......
#include <stdio.h>
#include <unistd.h>
int main() {
char link[100], path[100];
sprintf(link, "/proc/%d/exe", getpid());
readlink(link, path, sizeof(path));
printf("%s\n.", path);
return 0;
} ......
ÊÂÒòÐÞ¸ÄÁËij¸öÅäÖÃÎļþ£¬µ¼ÖÂϵͳÆô¶¯Ä³¸ö·þÎñµÄʱºòholdסÁË£¬ÏµÍ³Æô¶¯²»ÆðÀ´¡£ÕâÖÖÇé¿öϳ£³£Í¨¹ýÐ޸ıíÆô¶¯¼¶±ð£¬Çл»µ½·ÇxwindowģʽÏÂÖØÐÂÆô¶¯£¬Ò»°ãÑ¡È¡Æô¶¯¼¶±ðrunlevelΪ3¼´¿É¡£
²Î¿¼»·¾³£ºRedhat Enterprise Linux AS 4
²½Ö裺
1.µ±LinuxÆô¶¯Ê±£¬°´ e ½øÈ¥²ÎÊýÑ¡Ôñ±à¼½çÃ棺
2.Òƶ ......
×òÌìÓиö¹«Ë¾µÄÍøÕ¾£¬ÒªÉÏ´«linux·þÎñÆ÷ÍøÕ¾´ó¸ÅÓÐ1¸ö¶àG£¬ÓÃÓÚ¹«Ë¾ÍøËÙµÄÎÊÌ⣬ÓÃwinscpÉÏ´«ÂýµÄÒªËÀ£¬ËùÒÔÅܵ½»ú·¿±¾´òËãͨ¹ý¿Í»§µÄÒƶ¯Ó²ÅÌ¿½±´ÉÏÈ¥£¬µ«ÊÇÊÔÁ˺ܾÃҲûÓÐmountµ½»úÆ÷ÉÏ£¬ÊµÔÚÓôÃÆ¡£ÓÉÓÚʱ¼äÌ«ÍíËùÒԾͻؼÒÁË£¬ËùÒÔÖ»ÄÜͨ¹ýÈí¼þÉÏ´«ÁË£¬½ñÌìÀ´ÁË°ÑÒƶ¯Ó²Å̲åÔÚµçÄÔÉÏ¿´µ½Ã ......
תÔØʱÇë×¢Ã÷³ö´¦ºÍ×÷ÕßÁªÏµ·½Ê½
×÷ÕßÁªÏµ·½Ê½£ºÀîÏȾ² <xianjimli at hotmail dot com>
LinuxÊÖ»úµÄǰ;ËƺõºÜÉÙÓÐÈË»³Òɹý¡£Ôø¾×ö¹ýµÄ£¬ÏÖÔÚÕýÔÚ×öµÄ£¬¼´½«´òËã×öµÄ£¬ÔÚ¹úÄÚ¹À¼Æ²»ÏÂÊýÊ®¼Ò¹«Ë¾¡£´ó¼Ò¶¼Ïë´ÓÖÐÌÔһͰ½ð£¬²»¹ý´ó¶àÊdzËÐ˶øÀ´°ÜÐ˶ø¹é£¬ÉÙÔòËðʧ¼¸°ÙÍò£¬¶àÔòÊýǧÍò£¬ÓеÄÉõÖÁÕû¸ö¹«Ë¾Òò´ËÒ»Øʲ»Õñ¡£ ......