Jboss 搭建
Jboss是Java EE应用服务器(就像Apache是web服务器一样),专门用来运行Java EE程序的。是一个基于J2EE的开放源代码的应用服务器。 JBoss代码遵循LGPL许可,可以在任何商业应用中免费使用。JBoss是一个管理EJB的容器和服务器,支持EJB 1.1、EJB 2.0和EJB3的规范。但JBoss核心服务不包括支持servlet/JSP的WEB容器,一般与Tomcat或Jetty绑定使用。

JBoss4包括web服务器(servlet/JSP容器,HTML服务器)、EJB2.0容器。完整的纯Java的数据库引擎,(Java消息服务)JMS,JavaMail,和Java事务处理API/Java事务处理服务(JTA/JTS)支持。早期的JBoss使用了ApacheTomcatWeb服务器,但在JBoss4.0中已经把Apache Tomcat内嵌到JBoss中了。后续又集成Java数据对象(JDO),对于JMS多点传送机制支持的修补,对J2EE1.4的完全实现和分布式事务机制。
当然后续出了Jboss5,Jboss5等等多种版本,写这个的目的是为了更好的理解Jboss到底是什么东西,如果要深入了解Jboss 请去往百度。

JBoss的应用服务器控制和配置-JMX机制,运行一次可以部署所有的组件和服务。

搭建JBOSS

#安装JAVA并配置环境变量
[[email protected] bin]# mkdir /usr/local/jdk1.8

[[email protected] bin]# tar zxf jdk-8u171-linux-x64.tar.gz -C /usr/local/jdk1.8

[[email protected] bin]# mkdir /usr/local/jdk1.8

#设置java环境
JAVA_HOME=/usr/local/jdk1.8/
JRE_HOME=/usr/local/jdk1.8/jre
PATH=PATH:PATH:JAVA_HOME/bin:JREHOME/binCLASSPATH=.:JRE_HOME/bin CLASS_PATH=.:JAVA_HOME/lib/dt.jar:JAVAHOME/lib/tools.jar:JAVA_HOME/lib/tools.jar:JRE_HOMR/lib
export JAVA_HOME JRE_HOME PATH CLASS_PATH
#保存后执行source命令使该文件生效

#安装JBOSS
[[email protected] bin]# unzip jboss-eap-6.4.0.zip

[[email protected] bin]# mv jboss-eap-6.4 /data/server/

[[email protected] bin]# vim /etc/profile

export JBOSS_HOME=/home/jboss/jboss7.1.1
export PATH=JBOSSHOME/bin:JBOSS_HOME/bin:PATH

[[email protected] bin]# vim /data/server/jboss-eap-6.4/standalone/configuration/standalone.xml

#添加和修改




#注册账号
[[email protected] bin]# sh 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.
Using realm ‘ManagementRealm’ as discovered from the existing property files.
Username : root
The username ‘root’ is easy to guess
Are you sure you want to add user ‘root’ yes/no? yes
Password requirements are listed below. To modify these restrictions edit the add-user.properties configuration file.

  • The password must not be one of the following restricted values {root, admin, administrator}
  • The password must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
  • The password must be different from the username
    Password :
    Re-enter Password :
    What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]:
    About to add user ‘root’ for realm ‘ManagementRealm’
    Is this correct yes/no? yes
    Added user ‘root’ to file ‘/data/server/jboss-eap-6.4/standalone/configuration/mgmt-users.properties’
    Added user ‘root’ to file ‘/data/server/jboss-eap-6.4/domain/configuration/mgmt-users.properties’
    Added user ‘root’ with groups to file ‘/data/server/jboss-eap-6.4/standalone/configuration/mgmt-groups.properties’
    Added user ‘root’ with groups to file ‘/data/server/jboss-eap-6.4/domain/configuration/mgmt-groups.properties’
    Is this new user going to be used for one AS process to connect to another AS process?
    e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
    yes/no? yes
    To represent the user add the following to the server-identities definition

#启动JBOSS
[[email protected] bin]# ./standalone.sh

#访问IP:8080并登录用户
Jboss 搭建
Jboss 搭建

相关文章: