Categories
Java ubuntu wildfly

Install Wildfly 10.1 as a service on Ubuntu 17.10

Here is how i do it on my ubuntu 17.10 to deploy my jcore.war to wildfly 10.1.

Stay tune and relax.

  1. Download wildfly-10.1.0.Final.zip from http://wildfly.org/downloads/
  2. extract to your home dir so you will have wildfly-10.1.0.Final dir under it.
  3. adduser –disabled-login –no-create-home –disabled-password wildfly
  4. mv wildfly-10.1.0.Final /opt/wildfly
  5. cd /opt
  6. chown -R wildfly.wildfly  wildfly
  7. cp /opt/wildfly/docs/contrib/scripts/init.d/wildfly-init-debian.sh /etc/init.d/wildfly
  8. update-rc.d wildfly defaults
  9. cp /opt/wildfly/docs/contrib/scripts/init.d/wildfly.conf /etc/default/wildfly
  10. cd /etc/default
  11. vi wildfly
  12. service wildfly start
  13. check if wildfly listening on 127.0.0.1 port 8080
  14. copy your war files on /opt/wildfly/standalone/deployments
  15. use nginx proxy_pass to forward request to wildfly (edit /etc/nginx/sites-enabled/default)
  16. location /jcore refer to jcore.war deployed on wildfly
  17. done for now !!!

Leave a Reply

Your email address will not be published. Required fields are marked *