标签:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
单选Accept License Agr
http://jbossas.jboss.org/downloads/
点击ZIP进行下载,需要登录
地址:http://pan.baidu.com/s/1o67eph4
使用:
[root@localhost ~]# cd /usr/java/
[root@localhost java]# tar zxvf jdk-7u71-linux-x64.tar.gz
[root@localhost java]# cd ~
[root@localhost ~]# vi /etc/profile
# set java jdk1.7.0_71 java envirment
JAVA_HOME=/usr/java/jdk1.7.0_71
CLASSPATH=.:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH
[root@localhost ~]# source /etc/profile
[root@localhost ~]# java -version
[root@localhost java]# cd /usr/java/
[root@localhost java]# unzip jboss-eap-6.3.0.zip
[root@localhost java]# cd ~
[root@localhost ~]# vi /etc/profile
#jboss home
JBOSS_HOME=/usr/java/jboss-eap-6.3
PATH=$JBOSS_HOME/bin:$PATH
export JBOSS_HOME
[root@localhost ~]# source /etc/profile
[root@localhost ~]# echo $JBOSS_HOME
/usr/java/jboss-eap-6.3
[root@localhost ~]#
[root@localhost java]# cd /usr/java/jboss-eap-6.3/bin
[root@localhost bin]# ./standalone.sh
默认端口8080,访问地址如下:http://localhost:8080/
远程访问启动./standalone.sh –b 0.0.0.0,也可以修改配置文件
配置文件standalone.xml,所在目录usr/java/jboss-eap-6.3/standalone/configuration,修改为红色部分
<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:0.0.0.0}"/> </interface> <!-- TODO - only show this if the jacorb subsystem is added --> <interface name="unsecure"> <!-- ~ Used for IIOP sockets in the standard configuration. ~ To secure JacORB you need to setup SSL --> <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/> </interface> </interfaces>
修改后启动./standalone.sh
[root@localhost ~]# rpm -qa|grep jdk
[jdk-1.7.0_71-fcs.i586
[root@localhost ~]# rpm -e --nodeps jdk-1.7.0_71-fcs.i586
标签:
原文地址:http://www.cnblogs.com/ying-07/p/4545831.html