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

linuxÏ°²×°jdk

2.ÉèÖû·¾³±äÁ¿¡£
#vi /etc/profile
ÔÚ×îºóÃæ¼ÓÈë
#set java environment
export JAVA_HOME=/usr/java/jdk-1_5_0_02
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
:$JAVA_HOME/lib/mysql-connector-java-3.2.0.jar:$JAVA_HOME/lib/classes12.jar
export PATH=$PATH:$JAVA_HOME/bin
export JRE_HOME=$JAVA_HOME/jre
±£´æÍ˳ö¡£
# source /etc/profile  ##ʹ»·¾³±äÁ¿ÉúЧ
# set             
Ҫʹ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
3.ÔÚÖÕ¶ËʹÓÃechoÃüÁî¼ì²é»·¾³±äÁ¿ÉèÖÃÇé¿ö¡£
#echo ¡çJAVA_HOME
#echo ¡çCLASSPATH
#echo ¡çPATH
4.¼ì²éJDKÊÇ·ñ°²×°³É¹¦¡£
#java -version
Èç¹û¿´µ½JVM°æ±¾¼°Ïà¹ØÐÅÏ¢£¬¼´°²×°³É¹¦£¡
ÎÒÔÚFedora Core 3ÉÏÒѾ­³É¹¦°²×°ÁËjdk(jdk-1_5_0_02-linux-i586.rpm)£¬ÆäËü°æ±¾µÄLinux»ù±¾Ïàͬ£¬¹ý³ÌÈçÏ£º
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
³öÏÖ°²×°Ð­ÒéµÈ£¬°´½ÓÊܼ´¿É¡£
2.ÉèÖû·¾³±äÁ¿¡£
#vi /etc/profile
ÔÚ×îºóÃæ¼ÓÈë
#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
±£´æÍ˳ö¡£
ҪʹJDKÔÚËùÓеÄÓû§ÖÐʹÓ㬿ÉÒÔÕâÑù£º
vi /etc/profile.d/java.sh
ÔÚеÄjava.shÖÐÊäÈëÒÔÏÂÄÚÈÝ£º
#set java environment
JAVA_HOME=/usr/java/jdk-1_5_0_02
CLASSPA


Ïà¹ØÎĵµ£º

Linux¿ìËÙ¹¹½¨apache web·þÎñÆ÷

¡¡apache·þÎñÆ÷µÄ×îÐÂÎȶ¨·¢²¼°æ±¾ÊÇhttpd-2.2..0,¹Ù·½ÏÂÔصØÖ·ÊÇ£ºhttp://httpd.apache.org/download.cgi¡£ÎÒÃÇͨ¹ýÏÂÃæµÄ²½ÖèÀ´¿ìËٵĴһ¸öweb·þÎñÆ÷¡£
¡¡¡¡1¡¢ ÏÂÔØÔ´ÂëÎļþhttpd-2.2.0.tar.gz µ½linux·þÎñÆ÷µÄij¸öĿ¼¡£
¡¡¡¡2¡¢ ½âѹÎļþ # tar zxvf httpd-2.2.0.tar.gz .
¡¡¡¡3¡¢ ÅäÖÃ # ./c ╟refix=/usr ......

LinuxÅäÖÃjava¿ª·¢Æ½Ì¨

LinuxÅäÖÃjava¿ª·¢Æ½Ì¨
Ò»¡¢°²×°jdk
1.ÏÂÔØ°²×°jdk
£¨1£©¡¢Ê×ÏÈ£¬ÔÚhttp://java.sun.com
ÕÒµ½ÒªÏÂÔصÄjdk£¬ÏÂÔØ×Ô¼ºÐèÒªµÄjdk°æ±¾¡£ÎÒÕâÀïʹÓõÄÊÇjdk6£¬µÃµ½µÄÊÇÒ»¸öÃûΪjdk-6u6-linux-i586-rpm.binµÄÎļþ¡£´ËÎļþµ±Ç°Îª²»¿ÉÔËÐеÄshell script¡£
£¨2£©¡¢¸ü¸ÄȨÏÞ£¬ÌáÈ¡jdk°²×°Îļþ£º
   ´ò¿ªÖÕ¶ËÔËÐ ......

mysql ½«±íÖÐÊý¾Ýµ¼³ö £¨linux£©

½ñÌìÓöµ½Òªµ¼³öÊý¾Ý¿âÖбíµÄÊý¾Ý¡£ÏÂÃæÕâ¸ö¾Í¿ÉÒԸ㶨¡£¡£
#µ¼³öÖ¸¶¨µÄ±í #µ¼³öÃüÁî -uÓû§Ãû -pÃÜÂë -hÖ÷»úIPµØÖ· Êý¾Ý¿âÃû ±íÃû1 ±íÃû2 > µ¼³öÎļþ.sql
mysqldump -uroot -proot -h192.168.0.88 ok_db oktable1 oktable2 > ok_db.sql
ÁíÍâÔÚ¸ü¸ÄmysqlÃÜÂëʱºò£¬ÍøÉÏÓÐЩÃüÁî²»¶Ô£º
ÎÒÓÃÈçÏ£ºset password=pas ......

linux mount Óëumount ѧϰÐĵÃ

Òª½«Îļþϵͳ¹ÒÔص½ÎÒÃÇµÄ Linux ϵͳÉÏ£¬
¾ÍҪʹÓà mount Õâ¸öÖ¸Áî
Ó÷¨:
mount [-tonL]  ×°ÖÃÃû³Æ´úºÅ  ¹ÒÔصã
mount -a
²ÎÊý£º
-a  £ºÒÀÕÕ /etc/fstab µÄÄÚÈݽ«ËùÓÐÏà¹ØµÄ´ÅÅ̶¼¹ÒÉÏÀ´£¡
-n  £ºÒ»°ãÀ´Ëµ£¬µ±ÎÒÃǹÒÔØÎļþϵͳµ½ Linux ÉÏͷʱ£¬ Linux »áÖ÷¶¯µÄ½«
   &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ