Skip to content

Instantly share code, notes, and snippets.

@sukharevd
sukharevd / wildfly-install.sh
Last active Jun 18, 2020
Script to install JBoss Wildfly 10.x as service in Linux
View wildfly-install.sh
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
View wildfly.conf.sh
#!/bin/sh -e
sed -i "s/# JAVA_HOME=\"\/usr\/lib\/jvm\/default-java\"/JAVA_HOME=\"\/usr\/lib\/jvm\/java-8-oracle\"/" ./wildfly.conf.bk
sed -i "s/# JBOSS_HOME=\"\/opt\/wildfly\"/JBOSS_HOME=\"\/opt\/wildfly\"/" ./wildfly.conf.bk
sed -i "s/# JBOSS_USER=wildfly/JBOSS_USER=wildfly/" ./wildfly.conf.bk
sed -i "s/# JBOSS_MODE=standalone/JBOSS_MODE=standalone/" ./wildfly.conf.bk
sed -i "s/# JBOSS_CONFIG=standalone.xml/JBOSS_CONFIG=standalone.xml/" ./wildfly.conf.bk
sed -i "s/# STARTUP_WAIT=60/STARTUP_WAIT=60/" ./wildfly.conf.bk
sed -i "s/# SHUTDOWN_WAIT=60/SHUTDOWN_WAIT=60/" ./wildfly.conf.bk
sed -i "s/# JBOSS_CONSOLE_LOG=\"\/var\/log\/wildfly\/console.log\"/JBOSS_CONSOLE_LOG=\"\/var\/log\/wildfly\/console.log\"/" ./wildfly.conf.bk
View wildfly-setup-as-service.sh
# PARA DISTRIBUIÇÕES REDHAT
cp /opt/wildfly/bin/init.d/wildfly-init-redhat.sh /etc/init.d/wildfly
# PARA DISTRIBUIÇÕES DEBIAN
cp /opt/wildfly/bin/init.d/wildfly-init-debian.sh /etc/init.d/wildfly
# ADICIONA WILDFLY COMO SERVIÇO
# REDHAT
chkconfig --add wildfly
chkconfig wildfly on
@qvicksilver
qvicksilver / postinstall.jboss
Created Oct 31, 2015
EJBCA 6.3.1.1 on Wildfly 8.2.1
View postinstall.jboss
connect
/interfaces=/interface=httpspub:add(inet-address="0.0.0.0")
/interfaces=/interface=httpspriv:add(inet-address="0.0.0.0")
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=redirect-socket, value="httpspriv")
reload
/core-service=management/security-realm=SSLRealm:add()
/core-service=management/security-realm=SSLRealm/server-identity=ssl:add(keystore-path="${jboss.server.config.dir}/keystore/keystore.jks", keystore-password="serverpwd", alias="localhost")
/core-service=management/security-realm=SSLRealm/authentication=truststore:add(keystore-path="${jboss.server.config.dir}/keystore/truststore.jks", keystore-password="changeit")
/socket-binding-group=standard-sockets/socket-binding=httpspriv:add(port="8443",interface="httpspriv")
/subsystem=undertow/server=default-server/https-listener=httpspriv:add(socket-binding=httpspriv, security-realm="SSLRealm", verify-client=REQUIRED)
@sebastianwebber
sebastianwebber / jboss_as7-standalone.sh
Last active Feb 15, 2017
JBoss AS7+/Wildfly standalone start script
View jboss_as7-standalone.sh
#!/bin/bash
#
# chkconfig: 2345 90 10
#
# JBoss Standalone Control Script
#
# Developped by:
# Sebastian Webber - sebastian@swebber.me
# Last update:
# 2013-08-01
@lichti
lichti / wildfly-install-oracle.sh
Created Jan 12, 2017
Install oracle driver on Wildfly
View wildfly-install-oracle.sh
#!/bin/bash
#title :wildfly-install-oracle.sh
#description :The script to install oracle drive in Wildfly 10.x
#usage :/bin/bash wildfly-install-oracle.sh
DRIVER_VERSION=11.2.0
DRIVER_FILENAME=ojdbc6-${DRIVER_VERSION}
DRIVER_UNTAR_NAME=${DRIVER_FILENAME}.jar
DRIVER_DOWNLOAD_ADDRESS=hhttps://www.dropbox.com/s/6smy2smg71jhgnx/ojdbc6-11.2.0.jar
You can’t perform that action at this time.