3 Replies Latest reply on Aug 25, 2014 11:27 AM by pix

    How to use jboss EAP 6 on red hat 6.5?

    doubting.thomas

      Hi,

       

      I have a very silly question that I hope someone could provide some pointers. I have installed JBoss EAP 6.1 on Red Hat 6.5 using the standard rpm. I am abit confused about where it places things and how to use them. The rpm puts all the software in /usr/share/jbossas and sets up a jboss account but doesn't allow access to the account. So what I am confused about is - when I want to set up a jboss instance do I copy the software into a directory or do I unlock the jboss account and use that instead? I had a look at the red hat jboss notes but whilst it indicates how to do the install it doesn't seem to indicate how to use it under the structure. Thanks. Sorry for the silly question though.

       

      thomas.

        • 1. Re: How to use jboss EAP 6 on red hat 6.5?
          jason.marley

          I believe the rpm creates a nologin user so that the process is owned by a non privileged user. You will have to run something like

           

          su -s /bin/bash -c '/usr/share/jboss-as/bin/standalone.sh -c standalone.xml' jboss


          P.S. Is Thomas Doubting you're real name is it a salute to Doubting Thomas saying?

          • 2. Re: How to use jboss EAP 6 on red hat 6.5?
            doubting.thomas

            Blame it on the folks.

             

            Thanks for the info. I was hoping that I had missed something as the setup feels abit strange as it's not really obvious where to look for jboss nor how to easily configure it. Oh well.

             

            Jon.

            • 3. Re: How to use jboss EAP 6 on red hat 6.5?
              pix

              I created my own init-script for RHEL6.x and use it with a "jboss" user (no root).

               

              This init-script will auto-select the right DC to connect to at start of HC (depending of the environment).

              Is also able to start the DC.

               

              I didn't use the RPM version but the ZIP version. This is because if you want to update RHEL, it could break application under JBoss because some RPM would be upgraded and your application could have an issue.

               

              Also, I manually install the JRE from Oracle.