This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# chkconfig: 2345 90 10 | |
# | |
# JBoss Standalone Control Script | |
# | |
# Developped by: | |
# Sebastian Webber - [email protected] | |
# Last update: | |
# 2013-08-01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |