jdk+resin配置详解

1.   字符集

   设定系统语言环境:/etc/sysconfig/i18n为zh_CN.GBK

   #vi /etc/sysconfig/i18n
   LANG="zh_CN.GBK"
   SUPPORTED="zh_CN.GBK:zh:zh_CN.GB2312:zh:zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
   SYSFONT="latarcyrheb-sun16"

2.  /etc/profile
删除系统原来的export这一行,加入如下一行:
export JAVA_HOME CLASSPATH PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC NLS_LANG
下面有这行。

export NLS_LANG='SIMPLIFIED CHINESE_CHINA'.ZHS16GBK
JAVA_HOME=/usr/local/zhanghu/jdk1.5.0_08
CLASSPATH=$JAVA_HOME/jre/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
NLS_LANG='SIMPLIFIED CHINESE_CHINA'.ZHS16GBK
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$JAVA_HOME/jre/bin
export JAVA_HOME CLASSPATH PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC NLS_LANG

3.  删除系统原来的export这一行,加入如下一行:
export JAVA_HOME CLASSPATH PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC NLS_LANG

 

4.
# mv /usr/bin/java /usr/bin/java.bak
# mv /usr/bin/javac /usr/bin/javac.bak

5.  cd /opt
     chmod 755 jdk-1_5_0_08-linux-i586-rpm.bin
     ./jdk-1_5_0_08-linux-i586-rpm.bin
     rpm -ivh jdk-1_5_0_08-linux-i586.rpm
6.    cd /usr/java/
      mv jdk1.5.0_08  /usr/local/zhanghu/jdk1.5.0_08
7.    rmdir /usr/java
8.   cd /usr/local/resin

     ./configure
     make
     make install

9.   vi resin.conf
     配置监听端口80
    


你可能感兴趣的:(java,jdk,user,语言,Path)