ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÔÚlinuxÏÂjdkµÄÅäÖÃ

·¢²¼Ê±¼ä:2008-05-16 10:53:11À´Ô´:ºìÁª×÷Õß:Ddrmail
½ñÌìÎÒ×°ÉÏÁËlinuxÒÔÇ°Ö½ÉÏ̸±ø,½ñÌìʵ¼ÊÔËÓÃÆðÀ´Æäʵ¶¼ÊÇһͷÎíË®²éÁË,ËùÒ԰ѽñÌìµÄÐĵÃдÏÂÀ´,ÒÔ±ãÓöµ½Í¬ÑùÎÊÌâµÄÅóÓѽè¼ø:
jdkµÄ°²×°:ÕâÀï²»¶à˵ÁË

»·¾³±äÁ¿ÉèÖã¬ÍøÉϺܶàÈ˶¼ÊÇָʾ

ÔÚÖÕ¶ËÖÐÊäÈëÃüÁî
vi /etc/profile.d/java.sh(ÕâÖмäviÃüÁîescÇл»,ÓÐcommond,insert½çÃæ,ÎÒÓõÄredhat,ÆäÖÐiÊǽøÈëinsert½çÃæ,esc·µ»Øcommond½çÃæ, :w ÊDZ£´æ, :wq ÊDZ£´æÍ˳ö, :q! ÊÇÇ¿ÖÆÍ˳ö,¸ü¶àµÄ¿ÉÒÔÉÏÍø²é)

ÕâÑù¿ÉÒÔÔÚËùÓеÄÓû§ÖÐʹÓÃ,ÔÚÎļþÖÐÊäÈëÒÔÏÂ×Ö¶Î:
#set java environment
export JAVA_HOME=/usr/java/jdk1.5.0_15 (Õâ¸ö·¾¶¿´Äã°²×°µÄʱºòÔÚÄÄĬÈÏÔÚ/usr/java/ÏÂ)
export CLASSPATH=./:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

±£´æºóÍ˳ö

source /etc/profile.d/java.shÏ൱ÓÚ./etc/profile/java.sh

ÈôÆäÖÐÓöµ½ÔËÐÐȨÏÞÎÊÌâ ¿ÉÒÔʹÓà chmod 755 /ect/profile.d/java.sh ´ò¿ªÔËÐÐȨÏÞ 777Ϊ¿ªËùÓеĶÁдִÐÐȨÏÞ

setÃüÁî¿ÉÒԲ鿴ÉèÖõÄ·¾¶!×÷Õߣºhawk
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ