Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
# DEBIAN
update-rc.d wildfly defaults
# CRIA DIRETÓRIO DE LOGS
mkdir -p /var/log/wildfly
# ADICIONA USUÁRIO PARA EXECUTAR O WILDFLY
adduser wildfly
# ALTERANDO O PROPRIETÁRIO DOS DIRETÓRIOS
chown -R wildfly:wildfly /opt/wildfly-9.0.2.Final
chown -R wildfly:wildfly /opt/wildfly
chown -R wildfly:wildfly /var/log/wildfly
# INICIA O WILDFLY
service wildfly start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.