ÔÚLinuxϲ¿ÊðJDK»·¾³
1. È¥http://java.sun.com/javase/downloads/index.jspÏÂÔØÒ»¸öLinux PlatformµÄJDK¡£
2. ÉÏÔØ
# chmod 755 jdk-6u2-linux-i586-rpm.bin
# ./jdk-6u2-linux-i586-rpm.bin
3. ³ÌÐò»á×Ô¶¯Éú³ÉÎļþ
Ö´ÐÐ
# rpm -ivh jdk-6u11-linux-i586.rpm
4. ÉèÖû·¾³±äÁ¿
¸öÈËÓû§ÐÞ¸Ä.bashrcÎļþ¡£
#vi .bashrc
set JAVA_HOME=/usr/java/jdk1.6.0_11
export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
È«¾ÖÐÞ¸Ä/etc/profile
#koris add java start
export JAVA_HOME=/usr/java/jdk1.6.0_11
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
#koris add java end
Ö´ÐÐ
££ source /etc/profile¡¡ ← ʹ»·¾³±äÁ¿ÉúЧ
5. ´´½¨ÎļþÁ¬½Ó
½øÈë /usr/bin/Ŀ¼
cd /usr/bin
ln -s -f /usr/java/jdk1.6.0_11/jre/bin/java
ln -s -f /usr/java/jdk1.6.0_11/bin/javac
6. ÑéÖ¤£¨ÔÚÑé֤ǰÏÈlogoutһϣ¬ÔÙÖØеǽ£©£»
# echo $JAVA_HOME
/usr/java/jdk1.6.0_11
# echo $CLASSPATH
/usr/java/jdk1.6.0_11/lib/dt.jar:/usr/java/j2sdk1.4.2_06/lib/tools.jar
# echo $PATH /usr/java/jdk1.6.0_02/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
# java -version
java version "1.6.0_11"
&nb
Ïà¹ØÎĵµ£º
ÔÎĵØÖ·£ºhttp://wanping.blogbus.com/logs/28663569.html
1¡¢Ê±¼ä´Áת»»ÎªÕý³£ÏÔʾµÄʱ¼ä¸ñʽ
Freebsd
ϵͳÏ£º
ת»»ÃüÁîΪ£º
date -r 1112173761 »òÕߣºdate -r 1112173761 +"%Y-%m-%d %T %z"£¨ÄêÔÂÈյĸñʽ²»Ò»Ñù£©
Linux
ϵͳÏ£º
ת»»ÃüÁdate -d '1970-01-01 UTC 11121 ......
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#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
-------------ÍøÉϲ鵽£¬Òª½øÐÐÏÂÃæÒ»²½£¬ÎÒÔÙ./jdkʱºò¾ÍÒѾ³öÏÖÐÒéÁË£¬Ò²¾ÍÊÇÒ ......
Ò»°ãÀ´Ëµ£¬Ä¿Ç°Ð°æµÄ Linux Ô¤Éè¿ÉÒÔÖ§³ÖµÄÍøÂ翨оƬ×éÊýÁ¿ÒѾºÜÍ걸ÁË£¬ºÜ¶àÍøÂ翨оƬ¶¼ÒѾ±»Ö§³Ö,ÀýÈçRLT 8139 оƬ ( RealTek 8139 ) µÄÍøÂ翨ËùÒÔʹÓÃÕß¿ÉÒÔºÜÇáÒ×µÄÉ趨ºÃËûÃǵÄÍøÂ翨¡£²»¹ý£¬Èç¹ûÍòÒ»²»ÐÒºËÐÄûÓÐÖ§³Ö¸ÃÍøÂ翨µÄ»°£¬ÄÇô¿ÉÒÔ͸¹ýÖØбàÒëºËÐÄ»òÕß±àÒëÍøÂ翨Çý¶¯Ä£¿é ( Modul ......
su
suÃüÁîÊÇ×î»ù±¾µÄÃüÁîÖ®Ò»£¬³£ÓÃÓÚ²»Í¬Óû§¼äÇл»¡£ÀýÈ磬Èç¹ûµÇ¼Ϊ user1£¬ÒªÇл»Îªuser2£¬Ö»ÒªÓÃÈçÏÂÃüÁ
$su user2
È»ºóϵͳÌáʾÊäÈëuser2¿ÚÁÊäÈëÕýÈ·µÄ¿ÚÁîÖ®ºó¾Í¿ÉÒÔÇл»µ½user2¡£Íê³ÉÖ®ºó¾Í¿ÉÒÔÓÃexitÃüÁî·µ»Øµ½user1¡£
suÃüÁîµÄ³£¼ûÓ÷¨ÊDZä³É¸ùÓû§»ò³¬¼¶Óû§¡£Èç¹û·¢³ö²»´øÓû§ÃûµÄsuÃüÁî £¬Ôòϵ ......
Õâ¸öÊÇÎÒÔÚÒ»±¾ÊéÉÏ¿´µ½µÄ£¬ÆäÖеÄһЩ´úÂëÎÒÓÐËù¸Ä±ä£¬Ð´¸ø¸÷λºÃÓѹ²Ïíһϣ¡
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h&g ......