JBOSS Application-Server 7.1

[root@ansible1 ~]# yum install epel-release -y

[root@ansible1 ~]# yum update -y

[root@ansible1 ~]# yum install java-1.6.0-openjdk-devel -y

[root@ansible1 ~]# java -version
java version “1.6.0_41”
OpenJDK Runtime Environment (IcedTea6 1.13.13) (rhel-1.13.13.1.el7_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.41-b41, mixed mode)

[root@ansible1 ~]# yum install mlocate -y

[root@ansible1 ~]# locate java
locate: can not stat () `/var/lib/mlocate/mlocate.db’: No such file or directory

[root@ansible1 ~]# updatedb

[root@ansible1 ~]# locate java |grep /usr/lib/jvm/jre*
grep: /usr/lib/jvm/jre-1.6.0: Is a directory
grep: /usr/lib/jvm/jre-1.6.0-openjdk.x86_64: Is a directory
grep: /usr/lib/jvm/jre-openjdk: Is a directory
[root@ansible1 ~]# wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
-bash: wget: command not found
[root@ansible1 ~]# yum install wget -y
[root@ansible1 ~]# wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
–2017-01-16 05:33:28– http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip
Resolving download.jboss.org (download.jboss.org)… 23.35.28.22
Connecting to download.jboss.org (download.jboss.org)|23.35.28.22|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 133255203 (127M) [application/zip]
Saving to: ‘jboss-as-7.1.1.Final.zip’

100%[=====================================================================================================>] 13,32,55,203 859KB/s in 2m 26s

2017-01-16 05:35:55 (888 KB/s) – ‘jboss-as-7.1.1.Final.zip’ saved [133255203/133255203]

[root@ansible1 ~]# ls -l
total 130136
-rw-r–r–. 1 root root 133255203 Mar 10 2012 jboss-as-7.1.1.Final.zip
[root@ansible1 ~]# yum install unzip -y
[root@ansible1 ~]# unzip jboss-as-7.1.1.Final.zip -d /usr/share

[root@ansible1 ~]# adduser jboss
[root@ansible1 ~]# chown -fR jboss.jboss /usr/share/jboss-as-7.1.1.Final/
[root@ansible1 ~]# su jboss
[jboss@ansible1 root]$

[jboss@ansible1 root]$ cd /usr/share/jboss-as-7.1.1.Final/bin/
[jboss@ansible1 bin]$ ls -l
total 128
-rw-r–r–. 1 jboss jboss 1922 Mar 10 2012 add-user.bat
-rwxr-xr-x. 1 jboss jboss 2032 Mar 10 2012 add-user.sh
-rw-r–r–. 1 jboss jboss 2597 Mar 10 2012 appclient.bat
-rw-r–r–. 1 jboss jboss 1941 Mar 10 2012 appclient.conf
-rw-r–r–. 1 jboss jboss 2670 Mar 10 2012 appclient.conf.bat
-rwxr-xr-x. 1 jboss jboss 3700 Mar 10 2012 appclient.sh
drwxr-xr-x. 2 jboss jboss 46 Mar 10 2012 client
-rw-r–r–. 1 jboss jboss 3589 Mar 10 2012 domain.bat
-rw-r–r–. 1 jboss jboss 2681 Mar 10 2012 domain.conf
-rw-r–r–. 1 jboss jboss 3489 Mar 10 2012 domain.conf.bat
-rwxr-xr-x. 1 jboss jboss 7885 Mar 10 2012 domain.sh
drwxr-xr-x. 2 jboss jboss 55 Mar 10 2012 init.d
-rw-r–r–. 1 jboss jboss 1609 Mar 10 2012 jboss-cli.bat
-rwxr-xr-x. 1 jboss jboss 1825 Mar 10 2012 jboss-cli.sh
-rw-r–r–. 1 jboss jboss 611 Mar 10 2012 jboss-cli.xml
-rw-r–r–. 1 jboss jboss 2370 Mar 10 2012 jconsole.bat
-rwxr-xr-x. 1 jboss jboss 2309 Mar 10 2012 jconsole.sh
-rw-r–r–. 1 jboss jboss 2087 Mar 10 2012 jdr.bat
-rwxr-xr-x. 1 jboss jboss 2092 Mar 10 2012 jdr.sh
-rw-r–r–. 1 jboss jboss 387 Mar 10 2012 run.bat
-rwxr-xr-x. 1 jboss jboss 385 Mar 10 2012 run.sh
-rw-r–r–. 1 jboss jboss 4097 Mar 10 2012 standalone.bat
-rw-r–r–. 1 jboss jboss 2246 Mar 10 2012 standalone.conf
-rw-r–r–. 1 jboss jboss 3007 Mar 10 2012 standalone.conf.bat
-rwxr-xr-x. 1 jboss jboss 7563 Mar 10 2012 standalone.sh
-rw-r–r–. 1 jboss jboss 1256 Mar 10 2012 vault.bat
-rwxr-xr-x. 1 jboss jboss 2904 Mar 10 2012 vault.sh
-rw-r–r–. 1 jboss jboss 811 Mar 10 2012 wsconsume.bat
-rwxr-xr-x. 1 jboss jboss 2255 Mar 10 2012 wsconsume.sh
-rw-r–r–. 1 jboss jboss 750 Mar 10 2012 wsprovide.bat
-rwxr-xr-x. 1 jboss jboss 2077 Mar 10 2012 wsprovide.sh

[jboss@ansible1 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 : jboss
Password :
Re-enter Password :
About to add user ‘jboss’ for realm ‘ManagementRealm’
Is this correct yes/no? yes
Added user ‘jboss’ to file ‘/usr/share/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties’
Added user ‘jboss’ to file ‘/usr/share/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties’

[jboss@ansible1 bin]$ ./standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0&
[1] 7672
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/share/jboss-as-7.1.1.Final

JAVA: java

JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

=========================================================================
05:44:03,768 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
05:44:03,959 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
05:44:04,004 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting
05:44:05,264 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
05:44:05,270 INFO [org.xnio] XNIO Version 3.0.3.GA
05:44:05,275 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
05:44:05,291 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
05:44:05,335 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
05:44:05,384 INFO [org.jboss.as.configadmin] (ServerService Thread Pool — 26) JBAS016200: Activating ConfigAdmin Subsystem
05:44:05,436 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool — 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
05:44:05,567 INFO [org.jboss.as.webservices] (ServerService Thread Pool — 48) JBAS015537: Activating WebServices Extension
05:44:05,579 INFO [org.jboss.as.security] (ServerService Thread Pool — 44) JBAS013101: Activating Security Subsystem
05:44:05,590 INFO [org.jboss.as.osgi] (ServerService Thread Pool — 39) JBAS011940: Activating OSGi Subsystem
05:44:05,592 INFO [org.jboss.as.naming] (ServerService Thread Pool — 38) JBAS011800: Activating Naming Subsystem
05:44:05,622 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool — 31) JBAS010280: Activating Infinispan subsystem.
05:44:05,637 INFO [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final
05:44:05,730 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
05:44:05,984 INFO [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
05:44:06,104 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services – Stack CXF Server 4.0.2.GA
05:44:06,362 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
05:44:06,620 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http–0.0.0.0-8080
05:44:06,638 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory /usr/share/jboss-as-7.1.1.Final/standalone/deployments
05:44:06,750 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /0.0.0.0:9999
05:44:06,753 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /0.0.0.0:4447
05:44:06,861 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
05:44:06,955 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990
05:44:06,955 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final “Brontes” started in 3442ms – Started 133 of 208 services (74 services are passive or on-demand)

[root@ansible1 ~]# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 7715/java
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 7715/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 990/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1032/master
tcp 0 0 0.0.0.0:4447 0.0.0.0:* LISTEN 7715/java
tcp 0 0 0.0.0.0:9990 0.0.0.0:* LISTEN 7715/java
tcp6 0 0 :::22 :::* LISTEN 990/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1032/master

[root@ansible1 ~]# firewall-cmd –zone=public –permanent –add-port=9990/tcp
success
[root@ansible1 ~]# firewall-cmd –reload
success

jboss1jboss2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s