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

ÈçºÎÔÚWINDOWSºÍLinuxÏÂÅäÖû·¾³±äÁ¿

ÍøÂçÉϺÍÊéÉÏÓи÷ÖÖÅäÖÃJDK»·¾³±äÁ¿µÄ·½·¨£¬µ«ÊÇÈ·ÃèÊö²»Ò»Ö£¬¸ø³õѧÕßÔì³ÉÁËÒ»¶¨µÄÀ§ÄÑ£¨ÏëÆðµ±Ê±µÄÎÒ£©¡£ÒÔÏÂÊÇÎÒ×Ô¼º×ܽáµÄ£¬°Ù·Ö°Ù¿ÉÒÔÓá£
´ËÎÄÏêÊöÁËÈçºÎÔÚwindowsºÍlinuxÏÂÅäÖû·¾³±äÁ¿¡£
Ò»¹²ÐèÒªÅäÖÃ3¸ö±äÁ¿£º
JAVA_HOME£ºÖ÷ÒªÊÇΪÁËÆäËüÁ½¸öʹÓ㬼ò»¯ÅäÖã¬jdk°²×°µÄÍêÕûµÄ·¾¶Ãû£¬Ò»Ö±µ½jdk...Ϊֹ¡£
CLASSPATH£ºjava³ÌÐòÔËÐÐʱҪÓõ½µÄjar°ü£¨Ò²¾ÍÊÇÆäËü³ÌÐòÀïµÄº¯Êý¿âµÄ¸ÅÄ
PATH:ϵͳÉϳÌÐòµÄ·¾¶µÄ¼¯ºÏ£¬ÔÚÃüÁîÐÐÏÂÕÒ¸÷ÖÖ³ÌÐò£¬²»ÓôòÍêÕûµÄ·¾¶Ãû¡£ÎÒÃǰÑjdkµÄ¿ª·¢ºÍÔËÐеÄÃüÁÈçjava,javacµÈ£©µÄ·¾¶£¨ÔÚJAVA_HOMEÏÂÃæµÄbinĿ¼Ï£©·ÅÈëµ½PATHÖУ¬ÕâÑùÎÒÃǾͿÉÒÔÖ±½ÓʹÓÃÃüÁîÁË¡£
windows:
×ÀÃæ-->ÎҵĵçÄÔ(ÓÒ¼ü)-->ÊôÐÔ-->¸ß¼¶-->»·¾³±äÁ¿£º
 
 
 
 
ÔÚϵͳ±äÁ¿ÏÂн¨
JAVA_HOME=D:\Program Files\Java\jdk1.6.0_10    (ÄãµÄjdk°²×°µÄĿ¼)
CLASSPATH=%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;.  £¨Â·¾¶·Ö¸ôΪ·ÖºÅ£©
 
È»ºóÕÒµ½path±äÁ¿£¬Ñ¡Ôñ±à¼­£¬ÔÚpath±äÁ¿µÄ×îÇ°Ãæ¼ÓÉÏ%JAVA_HOME%\bin;    (×îºóÓÐÒ»¸ö·ÖºÅ)
 
´ËʱÎÒÃǵÄJDKÏà¹ØµÄ±äÁ¿¾ÍÒѾ­ÍêÈ«ÅäÖúÃÁË¡£ÏÖÔÚÎÒÃÇ¿ÉÒÔ²âÊÔһϣº]
¿ªÊ¼-->½øÐÐ ÊäÈëcmd ½øÈëÃüÁîÐÐ
echo %path%
echo %classpath%
echo %java_home%
java
javac
Äã¿ÉÒÔ±àд¸öhelloWordµÄС³ÌÐò²âÊÔһϡ£
 
linux주
ÔÚlinuxÏÂÅäÖû·¾³±äÁ¿£¬ÓëÔÚWindowsϵÄÔ­ÀíÏàͬ
ÒòΪbash shellÿ´ÎÆô¶¯¶¼Ö´ÐмÒĿ¼Ï嵀 .bashrc½Å±¾£¬ÎÒÃÇ¿ÉÒÔ½«jdkµÄ»·¾³±äÁ¿Ð´ÔÚÕâÀ
Èç¹ûÄãÏëÈÃËùÓеÄÓû§¶¼¿ÉÒÔʹÓÃjdk£¬¿ÉÒÔ¿¼Âǽ«jdkµÄ»·¾³±äÁ¿ÅäÖÃÔÚ/etc/profileÖÐ
 
´ò¿ªÒ»¸öÖÕ¶Ë£¬ÓÃvimµÈ±à¼­Æ÷´ò¿ª.bashrc
vim .bashrc
¶¨Î»µ½Îļþβ
Ìí¼ÓÒÔϼ¸Ðл·¾³±äÁ¿,ÐèҪעÒâµÄÊÇlinuxÀïµÄÎļþºÍ±äÁ¿ÊÇÇø·Ö´óСдµÄ²¢ÇÒ·¾¶·Ö¸ô·ûΪ:(ðºÅ)
#jdk environment
JAVA_HOME=/opt/jdk1.6.0_15
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=/opt/mybin/bin:$JAVA_HOME/bin:$PATH
 
±£´æÍ˳ö¡£
 
ÔÚshellÏÂÖ´ÐÐÒÔÏÂÃüÁîʹÅäÖÃÁ¢¼´ÉúЧ
source .bashrc
 
ÕâʱÎÒÃÇ¿ÉÒÔ²âÊÔÒ»ÏÂÎÒÃǵÄjdkÁË:
echo $PATH
echo $CLASSPATH
echo $JAVA_HOME
java
javac
 
 
 
 


Ïà¹ØÎĵµ£º

Linux FTPÃüÁîÏê½â¼°Ê¹Óü¼ÇÉ

ÂÜÀòÊÀ½ç ¸úÄúÒ»Æð¿´ÊÀ½ç http://lolier.info/ FTP>ascii: É趨ÒÔASCII·½Ê½´«ËÍÎļþ(ȱʡֵ) FTP>bell: ÿÍê³ÉÒ»´ÎÎļþ´«ËÍ,±¨¾¯Ìáʾ. FTP>binary: É趨ÒÔ¶þ½øÖÆ·½Ê½´«ËÍÎļþ. FTP>bye: ÖÕÖ¹Ö÷»úFTP½ø³Ì,²¢Í˳öFTP¹ÜÀí·½Ê½. FTP>case: µ±ÎªONʱ,ÓÃMGETÃüÁ±´µÄÎļþÃûµ½±¾µØ»úÆ÷ÖÐ,È«²¿×ª»»ÎªÐ¡Ð´×Öĸ. FTP>cd: ͬUNIXµÄCD ......

¹ØÓÚLinuxʹÓõÄÕæÊµÄÚ´æ

ÎÒÃÇʹÓõÄLinuxºÍWindows¿É²»Ì«Ò»Ñù£¬ÓÃtopÃüÁîµÃ³öÀ´µÄ¿ÉÄܲ»ÊÇÕæÊµÊ¹ÓõÄÄڴ棬ÓÃfreeÃüÁîµÚ¶þÐвÅÊÇÏµÍ³ÕæÊµÊ¹ÓõÄÄÚ´æ¡£Èç¹û·¢ÏÖPHP-CGI°ÑÄãµÄÄÚ´æÕ¼ÂúÁ˿ɲ»Òª¾ª»ÅŶ¡£
Page cacheºÍbuffer cacheÒ»Ö±ÒÔÀ´ÊÇÁ½¸ö±È½ÏÈÝÒ×»ìÏýµÄ¸ÅÄÔÚÍøÉÏÒ²ÓкܶàÈËÔÚÕù±çºÍ²ÂÏëÕâÁ½¸öcacheµ½µ×ÓÐÊ²Ã´Çø±ð£¬ÌÖÂÛµ½×îºóҲһֱûÓÐÒ»¸ ......

Linux³£ÓÃÃüÁî

1¡¢free ²é¿´·þÎñÆ÷µÄÄÚ´æ·ÖÅäÇé¿ö
2¡¢resin ¼ò½é£º
 ps -elf|grep java    //²é¿´½ø³Ì resinÆô¶¯Çé¿ö
 ps -elf|grep java
 ll               //²é¿´½Å±¾Æô¶¯ÁÐ±í£¨ÒªÆô¶¯µÄÎļþÁÐ±í£©
 dl _jsp
 // ......

linuxϽ¨Á¢isoÎļþ£¨ÓÃmkisofsÃüÁ

Ì«·½±ãÁË£¬Ì«·½±ãÁË¡£¡£
¿´man»á¿´ÔΣ¬Ö±½Ó¿´ÊµÀý£º
ʾ   Àý:
1)½¨Á¢Ó³ÏñÎļþ (°ÑĿ¼aϵÄÄÚÈÝ×ö³ÉisoÎļþ)
$mkisofs  -r -o a.iso    a/
2)½¨Á¢Ó³ÏñÎļþ (°ÑĿ¼aϵÄÄÚÈÝ×ö³ÉisoÎļþ£¬²¢Ö¸¶¨²»°ÑÎļþb.txt·Åµ½isoÖÐ)
$mkisofs -m b.txt -r -o a.iso    a/
3)½¨Á¢Ó³ÏñÎļ ......

LINUXÔÚ¶àºË»·¾³Ï£¬Èç¹û¿ØÖÆÊ¹ÓõÄCPUÊýÄ¿

½øÈë/boot/grub
ÐÞ¸Ägrub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ