Quantcast
Channel: Other – Michał Szałkowski – Blog
Viewing all articles
Browse latest Browse all 125

VPS, Debian 8 install wildfly 9

$
0
0

Base on eveloper-should-know.tumblr.com

Download WildFly and unpack binaries

wget http://download.jboss.org/wildfly/9.0.1.Final/wildfly-9.0.1.Final.zip
unzip wildfly-9.0.1.Final.zip -d /opt/

Create symbolic link in order to simplify WildFly updates in future

ln -s /opt/wildfly-9.0.1.Final /opt/wildfly

Copy and edit init script configuration

cp /opt/wildfly/bin/init.d/wildfly.conf /etc/default/wildfly.conf

Edit configuration

nano /etc/default/wildfly.conf
## Location of JDK
JAVA_HOME="/usr/lib/jvm/java"

## Location of WildFly
JBOSS_HOME="/opt/wildfly"

## The username who should own the process.
JBOSS_USER=wildfly

## The mode WildFly should start, standalone or domain
JBOSS_MODE=standalone

## Configuration for standalone mode
JBOSS_CONFIG=standalone.xml

## Configuration for domain mode
# JBOSS_DOMAIN_CONFIG=domain.xml
# JBOSS_HOST_CONFIG=host-master.xml

## The amount of time to wait for startup
STARTUP_WAIT=60

## The amount of time to wait for shutdown
SHUTDOWN_WAIT=60

## Location to keep the console log
JBOSS_CONSOLE_LOG="/var/log/wildfly/console.log"

Copy init script

cp /opt/wildfly/bin/init.d/wildfly-init-debian.sh /etc/init.d/wildfly

Add WildFly as a service

chkconfig --add wildfly
chkconfig wildfly on

Create directory for logs

mkdir -p /var/log/wildfly

Add user to run WildFly

adduser wildfly

Change the owner of WildFly directories

chown -R wildfly:wildfly /opt/wildfly-9.0.1.Final
chown wildfly:wildfly /opt/wildfly
chown wildfly:wildfly /var/log/wildfly

Start WildFly

service wildfly start

or

/etc/init.d/wildfly start

Viewing all articles
Browse latest Browse all 125

Trending Articles