Last active
February 15, 2017 05:19
-
-
Save clairtonluz/413bbf6f487d75a4282c to your computer and use it in GitHub Desktop.
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 | |
# 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