10月 132015
 

JBoss Application Server 7.1.1安装配置
问题分析:JDK版本兼容性问题引起Jboss卡住无法启动
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
15:10:05,495 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
15:10:06,056 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
15:10:06,139 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting
安装JDK环境

ln -s jdk1.7.0_79/ java

设定环境变量
PATH是系统用来指定可执行文件的完整路径
CLASSPATH是指定你在程序中所使用的类(.class)文件所在的位置

export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:%JAVA_HOME%/jre/lib
修改配置文件
[root@iZ94tctyhhfZ ~]# ls /usr/local/jboss-as-7.1.1.Final/standalone/configuration/
application-roles.properties  logging.properties     standalone-full-ha.xml  standalone-ha.xml
application-users.properties  mgmt-users.properties  standalone-full.xml     standalone.xml
[root@iZ94tctyhhfZ ~]# vi /usr/local/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml

开放访问权限,修改为外部可访问
276         <interface name=”management”>
277             <inet-address value=”${jboss.bind.address.management:127.0.0.1}”/>
278         </interface>

279         <interface name=”public”>
280             <inet-address value=”${jboss.bind.address:127.0.0.1}”/>
281         </interface>
修改为
276         <interface name=”management”>
277             <inet-address value=”${jboss.bind.address.management:0.0.0.0}”/>
278         </interface>

279         <interface name=”public”>
280             <inet-address value=”${jboss.bind.address:0.0.0.0}”/>
281         </interface>

监听端口

296         <socket-binding name=”http” port=”8080″/>
297         <socket-binding name=”https” port=”8443″/>

访问控制台

控制台相关端口配置
293         <socket-binding name=”management-http” interface=”management” port=”${jboss.management.http.port:9990}”/>
294         <socket-binding name=”management-https” interface=”management” port=”${jboss.management.https.port:9443}”/>

增加管理用户
[root@iZ94tctyhhfZ ~]# /usr/local/jboss-as-7.1.1.Final/bin/add-user.sh

What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : ops
Password :
Re-enter Password :
About to add user ‘ops’ for realm ‘ManagementRealm’
Is this correct yes/no? yes
Added user ‘ops’ to file ‘/usr/local/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties’
Added user ‘ops’ to file ‘/usr/local/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties’
[root@iZ94tctyhhfZ ~]#

启动
[root@iZ94tctyhhfZ bin]# ./standalone.sh

后台启动
[root@iZ94tctyhhfZ ~]# nohup: ignoring input and appending output to `nohup.out’
[root@iZ94tctyhhfZ ~]#
将部署内容(war、ear、jar、sar等)放在standalone/deployments目录内,JBoss运行时会自动部署到服务器上。jboss-7.1.1-install-01 jboss-7.1.1-install-02 jboss-7.1.1-install-03

相关下载:
(1) Jboss Application Server 7.1.1
(2) JDK 1.7_7u79 RPM  JDK 1.7_7u79 Tarball

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据