linux jboss java_how to install redhat-linux,java-jdk1.6,jboss4.2

/**************************************************************************

title :how to install redhat-linux,java-jdk,webServer-Jboss

function:install redhat,jdk,jboss

file    :install-linux-jdk-jboss.TXT

author  :chinayaosir   QQ:44633197

date    :5/11/2012

blog    :http://blog.csdn.net/chinayaosir

note    :禁止其它网站转载此文章

***************************************************************************/

first.install  redhat enterprise linux 5.4

get redhat iso file with baidu or google

put iso file with redhat enterprise linux 5.4 on your disk

***************************************************************************

second.install java jdk

1.copy jdk-6-linux-i586.bin into /usr/jdk-6-linux-i586.bin with ssh

2.uninstall java jdk1.4.2

[root@xxxxx]#yum remove java

3.install java jdk

[root@xxxxx]#cd /usr

[root@xxxxx]#chmod +x jdk-6-linux-i586.bin

[root@xxxxx]#./jdk-6-linux-i586.bin

4.setup java environment variable into /etc/profile

[root@xxxxx]#vi /etc/profile

export JAVA_HOME="/usr/jdk1.6.0_27"

export CLASSPATH="/usr/jdk1.6.0_27/lib:/usr/jdk1.6.0_27/jre/lib"

pathmunge /usr/jdk1.6.0_27/bin:/usr/jdk1.6.0_27/jre/bin

[root@xxxxx]#source /etc/profile

5.check java jdk is ok or not?

[root@xxxxx]#java -version

[root@xxxxx]#java version "1.6.xxxx"

***************************************************************************

third.install jboss in linux (redhat5.4)

1.copy jboss4.2.2.GA from c:\jboss4.2.2.GA(winxp)

into /usr/local/jboss with ftp or ssh(windows )

2.setup jboss environment variable into /etc/profile

[root@xxxxx]#vi /redhat enterprise linux 5.4etc/profile

export JBOSS_HOME=/usr/local/jboss

export PATH=$PATH:$JBOSS_HOME/bin

[root@xxxxx]#source /etc/profile

3.setup character set into i18n and profile

[root@xxxxx]#chmod 777 /etc/sysconfig/i18n

[root@xxxxx]#vi /etc/sysconfig/i18n

LANG="zh_CN.GBK"

LANGUAGE="zh_CN.GBK:zh_CN.GB18030:zh_CN.GB2312:zh_CN"

SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"

SYSFONT="lat0-sun16"

[root@xxxxx]#source /etc/sysconfig/i18n

[root@xxxxx]#chmod 777 /etc/profile

[root@xxxxx]#vi /etc/profile

export LC_ALL=zh_CN.GBK

[root@xxxxx]#source /etc/profile

4.start/stop jboss server

entry jboss path

[root@xxxxx]#cd /usr/local/jboss/bin

start jboss

[root@xxxxx]#run.sh -b 0.0.0.0   //output log into console

[root@xxxxx]#nohup run.sh -b 0.0.0.0  //output log into nohup.out

stop jboss server

[root@xxxxx]#ctrl+c

[root@xxxxx]#shutdown.sh --shutdown

5.map server photo path into redhat 5.4

mount

[root@xxxxx]cd /dev

[root@xxxxx]mkdir z

[root@xxxxx]mount -o username="username@domain.com",password="password" //192.168.3.202/Bab-photo  //dev//z/

3.umount

[root@xxxxx]umount /dev/z

***************************************************************************

i testting ok wtih redhat enterprise 5.4 linux,jdk1.6.0_27,jboss4.2.2.GA

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值