Install Wildfly 10 on Remote server (CentOS 7) and Create Resource

First, you need to download Wildfly from here. For my environment, I used Wildfly 10 version. In this blog, I'll show you how to create application and connect to database server (Postgresql12). For IDE, I use eclipse oxygen. I use jdk verion 8.

For my environment, I use CentOS 7 and I have create user and group for install Wildfly

Create user

#groupadd wildfly
#adduser -g wildfly wildfly
#passwd wildfly
#chmod -R wildfly:wildfly /opt

Download Install Widfly

I use wildfly 10.1.0 for this project.

#su - wildfly
$cd /opt
$wget https://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.zip .
$unzip wildfly-10.1.0.Final.zip
$cd $HOME
$vi .bash_profile
Add JAVA_HOME and JBOSS_HOME environment variable as below.
JAVA_HOME=/usr/java/jdk1.8.0_201-amd64
JRE_HOME=/usr/java/jdk1.8.0_201-amd64/jre
JBOSS_HOME=/opt/wildfly-10.1.0.Final

export JAVA_HOME
export JRE_HOME
export JBOSS_HOME

PATH=$PATH:$HOME/.local/bin:$HOME/bin:$JBOSS_HOME/bin

export PATH
Apply change to current bash shell.
$source .bash_profile
$bash $JBOSS_HOME/bin/add-user.sh
Enable Remote Connection
$vi $JBOSS_HOME/standalone/standalone.xml
Edit file as below.
<interfaces>
        <interface name="management">
            <any-address/>
        </interface>
        <interface name="public">
            <any-address/>
        </interface>
</interfaces>
Open connection port 9990.
#firewall-cmd --zone=public --add-port=9990/tcp --permanant
#firewall-cmd --reload
Add user
$bash $JBOSS_HOME/bin/add-user.sh
Start Jboss
$bash $JBOSS_HOME/bin/standalone.sh

Create Datasource

Open browser go to wildfly.itstikk.pro:9990, log in to management page by username and password you created.
Deply postgesql driver file

1.Log in to Wildfly management page

2.Deploy Postgres Drive



Choose Driver






Create Datasource












After Create your resource you can test the connection to your resource.


No comments:

Post a Comment

Feature Recently

Running Wildfly Application Server in Domain Mode

  Wildfly application server provides two modes of how to run application one wildfly application server. It is very simple if you run your ...

Most Views