[Linux use (2)] 64-bit Linux under Install jboss-as-7.1 and jdk1.7

Source: Internet
Author: User
Tags infinispan jboss jboss server

First, the software download

Jdk:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Jboss:

http://jbossas.jboss.org/downloads/

Second, the installation of the JDK

1, before the installation must first determine whether the system has a default JDK,

# Rpm-qa|grep JDK

2, if after the command, after the display of the JDK information, then you have to remove these things first, and then in the installation.

#rpm-E xxx--nodeps              # XXX is the first step to show after the execution, to put all the displayed step by step to finish.

3. Prepare the installation steps

Before the operation, my jdk1.7 compressed package is in the/home/java directory

4. Configuration of environment variables

# vi/etc/profile                                                                # edit this file append the following to the file ... #set java environmentexport java_home=/home/java/jdk1.7.0_79export jre_ Home=/home/java/jdk1.7.0_79/jreexport path= $PATH:/home/java/jdk1.7.0_79/binexport classpath=./:/home/java/ Jdk1.7.0_79/lib:/home/java/jdk1.7.0_79/jre/lib

5. See if the installation is successful

#  Java-versionjava Version "1.7.0_79" Java (tm) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot (tm) Client VM ( Build 24.79-b02, Mixed mode)

A Java message appears stating that the installation was successful.

Third, the installation of JBoss

1, the installation before the first look at the system has not installed JBoss, if there is the first delete, delete similar to the above JDK delete.

2, ready to install (Note: My JBoss installation package Location/home/jboss directory)

# Unzip Jboss-as-7.1.1.final.zip

3. Configuring JBoss Environment variables

# vi/etc/profile          # edit this file append the following to the file .... # set JBoss Environmentexport jboss_home=/home/jboss/ Jboss-as-7.1.1.final

  

4. Start \ Shut down the JBoss server

#/home/jboss/jboss-as-7.1.1.final/bin/standalone.sh=========================================================== ============== JBoss Bootstrap Environment jboss_home:/home/jboss/jboss-as-7.1.1.final JAVA:/home/java/jdk1.7.0_79/ Bin/java java_opts:-server-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=========================================================================08:08:29,847 INFO [ Org.jboss.modules] JBoss modules version 1.1.1.ga08:08:32,665 INFO [Org.jboss.msc] jboss MSC version 1.0.2.ga08:08:32,98 5 info [org.jboss.as] jbas015899:jboss as 7.1.1.Final "Brontes" starting08:08:43,126 INFO [Org.jboss.as.server] JBAS015 888:creating HTTP Management Service using socket-binding (management-http) 08:08: 43,169 info [Org.xnio] xnio version 3.0.3.ga08:08:43,209 INFO [Org.xnio.nio] Xnio NIO implementation Version 3.0.3.ga08 : 08:43,373 info [org.jboss.remoting] JBoss Remoting version 3.2.3.ga08:08:43,402 INFO [org.jboss.as.logging] JBAS011502 : Removing bootstrap log handlers08:08:43,546 INFO [Org.jboss.as.osgi] (Serverservice Thread Pool--) Jbas011940:acti vating OSGi subsystem08:08:43,551 INFO [Org.jboss.as.clustering.infinispan] (Serverservice Thread Pool--) JBAS010280 : Activating Infinispan subsystem.08:08:43,755 INFO [org.jboss.as.naming] (Serverservice Thread Pool--) jbas011800:a ctivating naming subsystem08:08:43,874 INFO [org.jboss.as.security] (Serverservice Thread Pool--) Jbas013101:activat ing Security subsystem08:08:44,262 INFO [org.jboss.as.webservices] (Serverservice Thread Pool--) Jbas015537:activati ng webservices extension08:08:45,091 INFO [org.jboss.as.security] (MSC service thread 1-1) jbas013100:current Picketbox Version=4.0.7.final08:08:45,305 INFO [Org.jboss.as.connector] (MSC service thread 1-2) jbas010408:starting JCA Subsystem (JBoss Ironjacamar 1.0.9. Final) 08:08:45,706 INFO [org.jboss.as.connector.subsystems.datasources] (Serverservice Thread Pool--) JBAS010403: Deploying Jdbc-compliant Driver Class Org.h2.Driver (version 1.3) 08:08:46,070 INFO [org.jboss.as.naming] (MSC service THR EAD 1-2) jbas011802:starting naming service08:08:47,829 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS 015400:bound Mail session [java:jboss/mail/default]08:08:49,705 INFO [ Org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web services-stack CXF Server 4.0.2. ga08:08:51,043 INFO [Org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) starting Coyote http/1.1 on http-- 192.168.118.128-808008:08:54,080 INFO [org.jboss.as.remoting] (MSC service thread 1-2) jbas017100:listening on/127.0.0 .1:999908:08:55,084 INFO [Org.jboss.as.server.deployment.scanner] (MSC Service thread 1-2) jbas015012:started Filesystemdeploymentservice for directory/home/jboss/jboss-as-7.1.1.final/ standalone/deployments08:08:55,159 INFO [org.jboss.as.remoting] (MSC service thread 1-2) jbas017100:listening on/192.1 68.118.128:4447

This means that the JBoss server started successfully.

If you close the server directly CTRL + C You can shut down all jboss services directly.

5, Linux under the browser test JBoss

If the Welcome page appears, the installation configuration is successful.

6, outside the network access server

By default, Linux can only be accessed by this machine, if the need for extranet access, then the following configuration

# cd/home/jboss/jboss-as-7.1.1.final/standalone/configuration# VI standalone.xml ....        <interface name= "Public" >            <inet-address value= "${jboss.bind.address:192.168.118.128}"/>         # External interface set to Linux IP address        </interface>.

Save exit after Setup is complete, open JBoss Server, external network access

  

  

 

[Linux use (2)] 64-bit Linux installation jboss-as-7.1 and jdk1.7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.