Installing Deployment Wildfly on Linux 10

Source: Internet
Author: User
Tags jboss jboss application server wildfly

WildFly used Name: JBoss application Server , Red Hat announced that Wildfly,wildfly, the successor to JBoss as, will drive the development of next-generation application server technology, the name of which jboss.org community members voted at the end of 2012.

WildFly will continue to maintain the JBoss enterprise application platform and locate some key middleware technologies, including more flexible and more advanced application development, enabling open hybrid cloud and Java EE 7.

Experimental Platform: CentOS 7.2

Software: wildfly-10.0.0.final . zip Jdk-8u77-linux-x64.tar quickstart-10.x. zip apache-maven-3.3.9-bin. zip

Steps:

1. build The JDK platform

Wildfly requires a platform running on JDK 8 or above

# tar zxf jdk-8u the -linux-x64.tar.gz && rm-rf jdk-8u the -linux-x64.tar

# mv Jdk-1.8.0_ the //USR/LOCAL/JDK

#vim /etc/profile.d/java.sh

Java_home=/usr/local/jdk

java_bin= $JAVA _home/bin

Jre_home= $JAVA _home/jre

Path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin

Classpath= $JAVA _home/jre/lib: $JAVA _home/lib: $JAVA _home/jre/lib/charsets.jar

# source/etc/profile.d/java.sh

# java-version

Java Version "1.8.0_77"

Java (TM) SE Runtime Environment (build 1.8.0_77-b03)

Java HotSpot (TM) 64-bit Server VM (build 25.77-b03, Mixed mode)


2. Installing wildfly

After uploading to the Linux host root directory, unzip to /usr/local

# Unzip wildfly-10.0.0.final.zip -D /usr/local/

#cd/usr/local

#mv wildfly-10.0.0.final Wildfly

Add a System administrative user

#cd/usr/local/wildfly/bin

Find add-user.sh

#./add-user.sh

Follow the prompts to establish a user:adminwildfly(custom) Password: custom

Modifying a configuration file Standalone.xml

# Vim/usr/local/wildfly/standalone/configuration/standalone.xml

Replace the 127.0.0.1 in the file with the 0.0.0.0

Then start the service

# ./standalone.sh&

To see if the service is started

# Netstat-anput |grep Java

TCP 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3475/java

TCP 0 0 0.0.0.0:9990 0.0.0.0:* LISTEN 3475/java


3. install maven

# Unzip apache-maven-3.3.9-bin.zip-d/usr/local

Set environment variables and Add the following to/etc/profile

#vim/etc/profile

export maven_home=/usr/local/apache-maven-3. 3.9
Path= $PATH: $MAVEN _home/bin

#source/etc/profile

Test whether the installation was successful

#mvn-V

Apache Maven 3.3.9 (BB52D8502B132EC0A5A3F4C09453C07478323DC5; 2015-11-10t11:41:47-05:00)

Maven Home:/usr/local/apache-maven-3.3.9

Java version:1.8.0_77, Vendor:oracle Corporation

Java Home:/usr/local/jdk/jre

Default Locale:en_us, Platform Encoding:utf-8

OS name: "Linux", Version: "4.4.6", Arch: "AMD64", Family: "Unix"

4. quickly deploy the application (make sure the wildfly has been started)

# Unzip Quickstart-10.x.zip

# CD Quickstart-10.x/helloworld

# mvn Clean Package Wildfly:deploy

[INFO]------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO]------------------------------------------------------------------------

[INFO] Total time:02:59 min

[INFO] Finished at:2016-04-06t23:07:24-04:00

[INFO] Final memory:25m/266m

[INFO]------------------------------------------------------------------------

Verify that the deployment is successful: Http://localhost:8080/wildfly-helloworld

Hello world!


This article is from the "10319031" blog, please be sure to keep this source http://10329031.blog.51cto.com/10319031/1761255

Installing Deployment Wildfly on Linux 10

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.