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
Ïà¹ØÎĵµ£º
LinuxÄÚºËÅäÖð취£º
1. make config
ÕâÖÖ°ì·¨»á±éÀúËùÓÐÅäÖÃÏҪÇóÓû§Öð¸öÑ¡ÔñY/N/M
2. make menuconfig
Õâ¸ö°ì·¨ÊÇ»ùÓÚncurse¿â±àÖƵÄͼÐνçÃ湤¾ß¡£³£ÓÃ
3. make xconfig
ÓÃÓÚ»ùÓÚX11µÄͼÐι¤¾ß
4. make gconfig
ÓÃÓÚ»ùÓÚgtk+ͼÐι¤¾ß
5. make defconfig
´´½¨Ò»¸öĬÈϵÄÅäÖã¬Éú³Éµ±Ç°µÄ.config
6. make x ......
/*
* buffer.c ³ÌÐòÓÃÓÚ¶Ô¸ßËÙ»º³åÇø(³Ø)½øÐвÙ×÷ºÍ¹ÜÀí¡£¸ßËÙ»º³å
* ÇøλÓÚÄں˴úÂëºÍÖ÷ÄÚ´æÇøÖ®¼ä¡£
*
* |---|---|------------------|---------------------|-------------------|
* | | | * * * | &nbs ......
ÔÚ/etc/rc.d/init.d/ ´´½¨oracle10gÎļþ
touch oracle10g
chmod a+x oracle10g
[root@test~]# vi /etc/rc.d/init.d/oracle10g
#!/bin/bash
#chkconfig:345 51 49
#description:starts the oracle database deamons
#
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
case "$1" in
start)
echo ......
/*
* ¸ÃÎļþÖеÄÁ½¸öº¯Êýread_pipeºÍwrite_pipeÊÇÉϲ㺯Êý
* readºÍwriteµÄµ×²ãʵÏÖ
*/
/*
* linux/fs/pipe.c
*
* (C) 1991 Linus Torvalds
*/
#include <signal.h>
#include <linux/sched.h>
// ÄÚ´æ¹ÜÀíÍ·Îļþ¡£º¬ÓÐÒ³Ãæ´óС¶¨Òåº ......
תÔØ£ºhttp://www.cnblogs.com/hexapodsoft/archive/2007/04/24/724902.html
I/OÖض¨ÏòÏê½â¼°Ó¦ÓÃʵÀý
1¡¢ »ù±¾¸ÅÄÕâÊÇÀí½âºóÃæµÄ֪ʶµÄÇ°ÌᣬÇëÎñ±ØÀí½â£©
a¡¢ I/OÖض¨Ïòͨ³£Óë FDÓйأ¬shellµÄFDͨ³£Îª10¸ö£¬¼´ 0¡«9£»
b¡¢ ³£ÓÃFDÓÐ3¸ö£¬Îª0£¨stdin£¬±ê×¼ÊäÈ룩¡¢1£¨stdout£¬±ê×¼Êä³ö£©¡¢2£¨stderr£¬±ê×¼´íÎóÊä ......