eGov ERP DevOps

Wildfly Server

  1. Installation:
    > ssh login
    > date
    > sudo dpkg-reconfigure tzdata
    > download jdk
    > . .bashrc
    > java -version
    > echo $JAVA_HOME, > Download wildfly

  2. Configuration:

go to bin, add config in standalone.conf

vi /home/user/wildfly-11.0.0.Final/bin/standalone.sh
add JAVA_HOME = /usr/share/jdk1.8.0_131

go to /home/user/wildfly-11.0.0.Final/bin/standalone.conf, and do

vi /home/user/wildfly-11.0.0.Final/bin$ vi standalone.conf

add at the end of the file: JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 -Djboss.as.management.blocking.timeout=9999"

go to /home/user/wildfly-11.0.0.Final/standalone/configuration/standalone.xml, and do

vi /home/user/wildfly-11.0.0.Final/bin$ vi standalone.xml

add update below details: in both pool-name="READWRITE_DS" and pool-name="QUARTZ_NO_TXN_DS"

jdbc connection-url: update jdbc connection details: //<hostName:5432/dbUserName

username, password

mini-pool-size, max-pool-size 

$ sudo apt-get update
$ sudo apt-get install build-essential unzip curl wget rsync nfs-common fontconfig -y
$ sudo apt-get install build-essential unzip curl wget rsync nfs-common fontconfig ttf-mscorefonts-installer -y
$ ifconfig
(get the inet addr)

Start Server:

> /wildfly-11.0.0.Final/bin$ nohup ./standalone.sh &

Stop Server:
:~$ ps -ef | grep wildfy
:~/wildfly-11.0.0.Final/standalone$ tail -f ../standalone/log/server.log
:~/wildfly-11.0.0.Final/bin$ ./jboss-cli.sh --connect command=:shutdown
> gracefully stop
:~/wildfly-11.0.0.Final/bin$ ./jboss-cli.sh --connect --controller=inet_addr:9990 --command=:shutdown --timeout=10000
:~/wildfly-11.0.0.Final/bin$ tail -9 portNumber

Restart Server:
:~/wildfly-11.0.0.Final/bin$ ./jboss-cli.sh --connect command=:reload
To Check the log:
:~/wildfly-11.0.0.Final/bin$ tail -f ../standalone/log/server.log

egov-override-properties:

/wildfly-11.0.0.Final/modules/system/layers/base/org/egov/settings/main/config/egov-erp-override.properties

DevOps as a Culture