Installation and deployment of Linux under JBOSS7

Source: Internet
Author: User
Tags jboss wildfly

What is JBoss?
JBoss is an open source application server based on the Java EE. The last version of JBoss is jboss as 7, after which the JBoss community has changed it to the Wildfly project as a new version of JBoss. Wildfly official website: http://wildfly.org/.
JBoss: http://jbossas.jboss.org/downloads/
The operation of the JBoss service requires a Java environment, so the JDK is installed first:


Installing the JDK

[[EMAIL PROTECTED] ~]# SH HM-JDK-INSTALL.SH  # JDK Installation Script #!/bin/bash#  Author: hm  email: [email protected]jdk_v=jdk1.7.0_79jdk_s=jdk-7u79-linux-x64.gzjdk_ home=/usr/local/jdkif [ ! -d ${jdk_home} ];then    echo     echo  "-----Installing ${jdk_v}-----"     echo     cd /usr/local/src    if [ ! -e ${jdk_s} ];then         echo  "[${jdk_s}] source package no find!  PLEASE PUT IT IN /USR/LOCAL/SRC/&NBSP: "    else         tar -zxf ${jdk_s} -C /usr/local &&  cd /usr/local && ln -s ${jdk_v} jdk         echo -e&nbSP; ' Export java_home=/usr/local/jdk\nexport path= $JAVA _home/bin: $PATH '  > /etc/profile.d/ jdk.sh        source /etc/profile.d/jdk.sh &&  java -version        echo  "------------------------"          echo    fielse    source  /etc/profile.d/jdk.sh && java -versionfi


Installing jboss-as-7.1.1.final.tar.gz

[[email protected] ~]# tar-zxf jboss-as-7.1.1.final.tar.gz-c/usr/local/[[email protected] ~]# Cd/usr/local/[[email Pro Tected] local]# ln-s jboss-as-7.1.1.final JBoss

Setting JBoss Environment variables

[Email protected] ~]# vim/etc/profile.d/jboss.shexport jboss_home=/usr/local/jbossexport path= $JBOSS _home/bin:$ Path[[email protected] ~]# source/etc/profile.d/jboss.sh

Modify the default listener address

[Email protected] ~]# vim/usr/local/jboss/standalone/configuration/standalone.xml <interface name= "public" > <inet-address value= "${jboss.bind.address:10.0.0.31}"/> </interface># the 127.0.0.1 under "public" Change to the native IP address, or you can modify it to 0.0.0.0, which means listening for all addresses. # This address is listening on port 8080 by default

Start JBoss

[[email protected] ~]# nohup standalone.sh &   #  Start jboss# in the background to view listening ports and processes [[email protected] ~]# netstat -tuanlp | grep  javatcp        0      0  10.0.0.31:4447              0.0.0.0:*                     LISTEN      4032/java            tcp        0      0  127.0.0.1:9990               0.0.0.0:*                    listen      4032/java           tcp         0      0 127.0.0.1:9999               0.0.0.0:*                    LISTEN       4032/java           tcp         0      0 10.0.0.31:8080               0.0.0.0:*                    LISTEN       4032/java
[Email protected] ~]# Ps-elf | grep java
0 S Root 4032 3979 0-801821 futex_ 15:22 pts/3 00:00:11/usr/local/jdk/bin/java-d[standalone]-serve r-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-dorg.jboss.boot.log.file=/usr/local/jboss/standalone/log/boot.log-dlogging.configuration=file:/ Usr/local/jboss/standalone/configuration/logging.properties-jar/usr/local/jboss/jboss-modules.jar-mp/usr/local /jboss/modules-jaxpmodule Javax.xml.jaxp-provider Org.jboss.as.standalone-djboss.home.dir=/usr/local/jboss
0 S Root 4128 2131 0 0-25826 pipe_w 15:23 pts/3 00:00:00 grep java


Browser access to JBoss

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/85/3B/wKiom1edp-WC6dG2AADNHPWR_zY716.jpg "title=" Qq20160731152511.jpg "alt=" Wkiom1edp-wc6dg2aadnhpwr_zy716.jpg "/>


Debug logs for JBoss

[Email protected] log]# pwd
/usr/local/jboss/standalone/log
[Email protected] log]# tail Server.log
15:22:12,960 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) Jbas015400:bound mail session [java:jboss/mail/ Default]
15:22:13,116 INFO [org.jboss.as.connector.subsystems.datasources] (Serverservice Thread Pool--) JBAS010403: Deploying Jdbc-compliant Driver Class Org.h2.Driver (version 1.3)
15:22:13,280 INFO [Org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-7) JBoss Web Services-sta CK CXF Server 4.0.2.GA
15:22:13,422 INFO [Org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) starting Coyote http/1.1 on http--10 .0.0.31-8080
15:22:14,014 INFO [org.jboss.as.remoting] (MSC service thread 1-6) jbas017100:listening on/10.0.0.31:4447
15:22:14,015 INFO [org.jboss.as.remoting] (MSC service thread 1-7) jbas017100:listening on/127.0.0.1:9999
15:22:14,019 INFO [Org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) jbas015012:started Filesystemdeploymentservice for Directory/usr/local/jboss/standalone/deployments
15:22:14,255 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) jbas010400:bound data source [Java:jboss/datasources/exampleds]
15:22:14,319 INFO [org.jboss.as] (Controller Boot Thread) jbas015951:admin console listening on http://127.0.0.1:9990
15:22:14,321 INFO [org.jboss.as] (Controller Boot Thread) Jbas015874:jboss as 7.1.1.Final "Brontes" started in 3557ms- Started 133 of 208 services (passive or on-demand)


JBoss Project Deployment

Upload the war package to the/usr/local/jboss/standalone/deployments/directory


JBoss configuration file/usr/local/jboss/bin/standalone.conf
This file can modify JBoss boot memory-related information, etc.






Installation and deployment of Linux under JBOSS7

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.