Linux Java»·¾³ÅäÖð²×°
Ò»¡¢°²×°JDK
°²×°°üÃûΪ£ºjdk-1_5_0_18-linux-i586.rpm.bin
°²×°²½Ö裺
1. ÒÔrootÉí·ÝµÇ¼Linux²Ù×÷ϵͳ
2. ½«jdk-1_5_0_18-linux-i586.rpm.bin°²×°°üÉÏ´«µ½/tmpĿ¼ÏÂ, ¼ì²âÈ·±£jdk-1_5_0_18-linux-i586.rpm.binÓпÉÖ´ÐÐȨÏÞ£»
Èç¹ûjdk-1_5_0_18-linux-i586.rpm.binûÓпÉÖ´ÐÐȨÏÞ£¬¿ÉʹÓÃÒ»ÏÂÃüÁîÌí¼Ó
#chmod a+x jdk-1_5_0_18-linux-i586.rpm.bin
3. °²×°JDK
#./ jdk-1_5_0_18-linux-i586.rpm.bin
³öÏÖÊÚȨÐÒ飬
Do you agree to the above license terms? [yes or no] yes
ÊäÈë“yes”£¬°´Enter¼ü½ÓÊÜ¡£
´Ë²½Íê³Éºó£¬µ±Ç°Ä¿Â¼Ï»áÉú³Éjdk-1_5_0_18-linux-i586.rpmÎļþ
#rpm –ivh jdk-1_5_0_18-linux-i586.rpm
ĬÈÏ°²×°ÔÚÊÇ/usr/java/Ï£¬¼´/usr/java/ jdk1.5.0_18¡£
½øÈëĿ¼/usr/java£¬Ö´ÐÐÃüÁî
#ln -s jdk1.5.0_18 jdk
4. ÉèÖû·¾³±äÁ¿
#vi /etc/profile.d/java.sh
ÕâÑù¿ÉÒÔÔÚËùÓеÄÓû§ÖÐʹÓÃ
ÔÚеÄjava.shÖÐÊäÈëÒÔÏÂÄÚÈÝ£º
#set java environment
export JAVA_BINDIR=/usr/java/jdk/bin
export JAVA_HOME=/usr/java/jdk
export JAVA_ROOT=/usr/java/jdk
export JDK_HOME=/usr/java/jdk
export JRE_HOME=/usr/java/jdk/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
±£´æÍ˳ö£¬ÖØеǼϵͳ¡£
¼ì²é°²×°£º
ÔËÐÐÃüÁî:
#java –version
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b04)
Java HotSpot(TM) Server VM (build 1.5.0_18-b04, mixed mode)
°²×°³É¹¦.
¶þ¡¢°²×°JBOSS
°²×°²½Ö裺
1. rootÉí·ÝµÇ¼Linux²Ù×÷ϵͳ
2. ½«jboss-4.2.3.GA.zipÉÏ´«µ½·þÎñÆ÷/opt Ŀ¼ÏÂÖ´ÐÐ.
# unzip jboss-4.2.3.GA -d /opt
Ö¸¶¨°²×°Ä¿Â¼Îª/opt
¼ì²âÊÇ·ñ½âѹ³É¹¦
# ln –s jboss-4.2.3.GA jboss
3. ÉèÖû·¾³±äÁ¿
#vi /etc/profile.d/java.sh
JBOSS_HOME=/opt/jboss
&nbs
Ïà¹ØÎĵµ£º
Ò»¸ö³ÌÐòµÄ¿ª·¢Àë²»¿ªÐí¶à¿âº¯ÊýµÄÖ§³Ö£¬¿ÉÊÇ¿âÈç´ËÖ®¶à£¬ÓпªÔ´Ãâ·ÑµÄÒ²ÓÐÊշѵġ£ºÜÏ£ÍûÊìϤ±à³ÌµÄÇ°±²°Ñ×Ô¼ºµÄ¾ÑéÕûÀíÏ£¬³£ÓõĿⶼ°üº¬ÄÄЩ¹¦ÄÜ¡£ÏÂÎÄÊÇÔÚÍøÉÏÕÒµÄÒ»¸öÀàËƵÄ×ÊÁÏ¡£ÆÚ´ý¸ü¶à¸üÈ«µÄÄÚÈÝ¡£
---------------------------------------------------------------------------------------------------
¿´µ ......
//
ͬ²½ÎÊÌ⣺
¶Ô¹²ÏíÊý¾ÝµÄ·ÃÎÊ£¬ÐèҪͬ²½£¬»¥³â¡£
ÔÚÖжϣ¬ÇÀÕ¼£¬¶àCPU£¬¶àÏß³Ì »·¾³ÏÂÓÈÆäÖØÒª¡£
ͬ²½·ÖΪ: ×èÈûͬ²½£¬·Ç×èÈûͬ²½
×èÈûͬ²½ÓÐÐí¶àʵÏÖ·½Ê½ÁË£ºmutex, semaphore. ×èÈûͬ²½Ê¹Óò»µ±¾Í¿ÉÄÜÔì³ÉËÀËø£¬»îËø£¬ÓÅÏȼ¶·´×ª¡£
·Ç×èÈûͬ²½£º£¨ÏÖÔÚÁ÷ÐÐÈýÖÖ£©
wait free ºÜÄÑʵÏÖ£¬Ë¼ÏëÊDZ¾Ïß³ÌÓÐÏÞ²½¾Í ......
תÔØʱÇë×¢Ã÷³ö´¦ºÍ×÷ÕßÁªÏµ·½Ê½
ÎÄÕ³ö´¦£ºhttp://www.limodev.cn/blog
×÷ÕßÁªÏµ·½Ê½£ºÀîÏȾ² <xianjimli at hotmail dot com>
Ëæ×ÅXPµÄÁ÷ÐУ¬ÈËÃÇÔ½À´Ô½×¢ÖØÈí¼þµÄÇ°ÆÚÉè¼Æ¡¢ºóÆÚµÄʵÏÖ£¬ÒÔ¼°¹á´©ÓÚÆäÖеIJâÊÔ¹¤×÷£¬¾¹ýÕâ¸ö¹ý³Ì³öÀ´µÄ×ÔÈ»ÊǸßÖÊÁ¿µÄÈí¼þ¡£ÉõÖÁÓÐÈËÉù³ÆXP»áÌÔ̵÷ÊÔÆ÷£¡Õ⵱ȻÊÇÓÐÒ»¶¨µÀÀíµÄ£¬È ......
ÔÚlinuxÉÏ£¬jprofiler¿ÉÒÔ·ÖÎöjavaµÄÈí¼þϵͳ£¬oprofile¿ÉÒÔ·ÖÎöCµÄÈí¼þϵͳ¡£
oprofile¿ÉÒÔ˵ÊÇÒ»¸ö¹¤¾ß¼¯£¬°üº¬£º
ophelp£¬
opcontrol£¬
agent libraries£¬
opreport£¬
opannotate£¬
opgprof£¬
oparchive£¬
opimport¡£
³ ......
LinuxÏÂÅäÖþ²Ì¬IPµØÖ·£¬ÉèÖÃDNSºÍÖ÷»úÃû
ÅäÖÃÎļþλÓÚ£º
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ʹIPµØÖ·ÉúЧ£º
/sbin/ifdown eth0
/sbin/ifup eth0
ÅäÖÃdns½âÎö
echo "nameserver 211.98.1.28" ......