{"id":5433,"date":"2015-12-17T08:10:54","date_gmt":"2015-12-17T00:10:54","guid":{"rendered":"http:\/\/rmohan.com\/?p=5433"},"modified":"2015-12-17T08:10:54","modified_gmt":"2015-12-17T00:10:54","slug":"wildfly-8-2-installation-on-centos-6-7-x86_64","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5433","title":{"rendered":"Wildfly 8.2 Installation on Centos 6.7 x86_64"},"content":{"rendered":"<article class=\"post-content\">Distributives:<\/p>\n<ul>\n<li>Centos &#8211; 6.7 (http:\/\/centos.org\/modules\/tinycontent\/index.php?id=15)<\/li>\n<li>WildFly &#8211; 8.2 (http:\/\/wildfly.org\/downloads\/)<\/li>\n<li>jdk 8 (http:\/\/java.sun.com)<\/li>\n<\/ul>\n<h3 id=\"before-install\">Before Install:<\/h3>\n<pre><code># sed -i.bkp -e \"s\/SELINUX=enforcing\/SELINUX=disabled\/g\" \/etc\/selinux\/config\r\n<\/code><\/pre>\n<pre><code># sed -i.bkp -e \"s\/timeout=5\/timeout=0\/g\" \/boot\/grub\/grub.conf\r\n<\/code><\/pre>\n<pre><code># service iptables stop\r\n<\/code><\/pre>\n<pre><code># chkconfig iptables off\r\n<\/code><\/pre>\n<pre><code># reboot\r\n<\/code><\/pre>\n<h3 id=\"jdk8-installation\">JDK8 Installation<\/h3>\n<p>http:\/\/javadev.org\/java_basics\/installation\/jdk\/8\/linux\/centos\/6\/x86_x64\/<\/p>\n<h3 id=\"add-user-and-groups\">Add User and Groups<\/h3>\n<pre><code>$ groupadd -g 1001 wildfly_admins\r\n<\/code><\/pre>\n<pre><code>$  useradd \\\r\n-g wildfly_admins \\\r\n-d \/home\/wildfly \\\r\n-m wildfly\r\n<\/code><\/pre>\n<p>If you need to add user to group wildfly_admins, you can do it with the next command:<\/p>\n<pre><code># usermod -a -G jboss_admins &lt;user_name&gt;\r\n<\/code><\/pre>\n<pre><code>$ passwd wildfly\r\n<\/code><\/pre>\n<h3 id=\"creating-folder-structure-and-permissions-for-wildfly\">Creating folder structure and permissions for wildfly<\/h3>\n<pre><code>$ mkdir -p \/opt\/wildfly\r\n$  chown -R wildfly:wildfly_admins \/opt\/wildfly\r\n$ chmod -R 775 \/opt\/wildfly\r\n<\/code><\/pre>\n<h3 id=\"setup-wildfly\">Setup wildfly<\/h3>\n<pre><code># su - wildfly\r\n$ cd \/opt\/wildfly\r\n$ wget http:\/\/download.jboss.org\/wildfly\/8.2.0.Final\/wildfly-8.2.0.Final.zip\r\n$ unzip wildfly-8.2.0.Final.zip\r\n$ mv wildfly-8.2.0.Final 8.2.0\r\n$ rm wildfly-8.2.0.Final.zip\r\n<\/code><\/pre>\n<h3 id=\"setup-user-environment\">Setup user environment<\/h3>\n<pre><code>$ vi ~\/.bash_profile\r\n<\/code><\/pre>\n<div class=\"highlight\">\n<pre><code class=\"language-bash\" data-lang=\"bash\"><span class=\"c\"># User specific environment and startup programs<\/span>\r\n\r\n<span class=\"c\">#### WildFly 8.2.0 ##################<\/span>\r\n\r\n<span class=\"nb\">export <\/span><span class=\"nv\">WILDFLY_HOME<\/span><span class=\"o\">=<\/span>\/opt\/wildfly\/8.2.0\r\n<span class=\"nb\">export <\/span><span class=\"nv\">PATH<\/span><span class=\"o\">=<\/span><span class=\"nv\">$PATH<\/span>:<span class=\"nv\">$HOME<\/span>\/bin:<span class=\"nv\">$WILDFLY_HOME<\/span>\/bin\r\n\r\n<span class=\"c\">#### WildFly 8.2.0 ##################<\/span><\/code><\/pre>\n<\/div>\n<p>Apply new parameters to current environment:<\/p>\n<pre><code>$ source ~\/.bash_profile\r\n<\/code><\/pre>\n<h3 id=\"create-user-for-access-to-the-wildfly-web-console\">Create user for access to the wildfly web console<\/h3>\n<pre><code>$ add-user.sh\r\n<\/code><\/pre>\n<div class=\"highlight\">\n<pre><code class=\"language-bash\" data-lang=\"bash\">What <span class=\"nb\">type <\/span>of user <span class=\"k\">do<\/span> you wish to add?\r\n a<span class=\"o\">)<\/span> Management User <span class=\"o\">(<\/span>mgmt-users.properties<span class=\"o\">)<\/span>\r\n b<span class=\"o\">)<\/span> Application User <span class=\"o\">(<\/span>application-users.properties<span class=\"o\">)<\/span>\r\n<span class=\"o\">(<\/span>a<span class=\"o\">)<\/span>: <span class=\"o\">[<\/span>Enter<span class=\"o\">]<\/span>\r\n\r\n\r\nEnter the details of the new user to add.\r\nUsing realm <span class=\"s1\">'ManagementRealm'<\/span> as discovered from the existing property files.\r\nUsername : admin\r\n\r\nThe username <span class=\"s1\">'admin'<\/span> is easy to guess\r\nAre you sure you want to add user <span class=\"s1\">'admin'<\/span> yes\/no? yes\r\nPassword recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.\r\n - The password should not be one of the following restricted values <span class=\"o\">{<\/span>root, admin, administrator<span class=\"o\">}<\/span>\r\n - The password should contain at least <span class=\"m\">8<\/span> characters, <span class=\"m\">1<\/span> alphabetic character<span class=\"o\">(<\/span>s<span class=\"o\">)<\/span>, <span class=\"m\">1<\/span> digit<span class=\"o\">(<\/span>s<span class=\"o\">)<\/span>, <span class=\"m\">1<\/span> non-alphanumeric symbol<span class=\"o\">(<\/span>s<span class=\"o\">)<\/span>\r\n - The password should be different from the username\r\nPassword :\r\n\r\nJBAS152565: Password must not be equal to <span class=\"s1\">'admin'<\/span>, this value is restricted.\r\nAre you sure you want to use the password entered yes\/no?\r\n\r\n\r\nWhat groups <span class=\"k\">do<\/span> you want this user to belong to? <span class=\"o\">(<\/span>Please enter a comma separated list, or leave blank <span class=\"k\">for<\/span> none<span class=\"o\">)[<\/span>  <span class=\"o\">]<\/span>:\r\n\r\n\r\nAbout to add user <span class=\"s1\">'admin'<\/span> <span class=\"k\">for<\/span> realm <span class=\"s1\">'ManagementRealm'<\/span>\r\nIs this correct yes\/no?\r\n\r\nAdded user <span class=\"s1\">'admin'<\/span> to file <span class=\"s1\">'\/opt\/wildfly\/8.2.0\/standalone\/configuration\/mgmt-users.properties'<\/span>\r\nAdded user <span class=\"s1\">'admin'<\/span> to file <span class=\"s1\">'\/opt\/wildfly\/8.2.0\/domain\/configuration\/mgmt-users.properties'<\/span>\r\nAdded user <span class=\"s1\">'admin'<\/span> with groups  to file <span class=\"s1\">'\/opt\/wildfly\/8.2.0\/standalone\/configuration\/mgmt-groups.properties'<\/span>\r\nAdded user <span class=\"s1\">'admin'<\/span> with groups  to file <span class=\"s1\">'\/opt\/wildfly\/8.2.0\/domain\/configuration\/mgmt-groups.properties'<\/span>\r\nIs this new user going to be used <span class=\"k\">for<\/span> one AS process to connect to another AS process?\r\ne.g. <span class=\"k\">for<\/span> a slave host controller connecting to the master or <span class=\"k\">for<\/span> a Remoting connection <span class=\"k\">for<\/span> server to server EJB calls.\r\nyes\/no?<\/code><\/pre>\n<\/div>\n<h3 id=\"to-start-wildfly\">To start WildFly<\/h3>\n<pre><code>$ standalone.sh -b=0.0.0.0 -bmanagement=0.0.0.0\r\n<\/code><\/pre>\n<p>http:\/\/192.168.1.11:8080\/<br \/>\nhttp:\/\/192.168.1.11:8080\/console<\/p>\n<p>192.168.1.11 &#8211; ip address of the wildfly server<\/p>\n<p>-b= &#8211; hosts what can connect to the server. 0.0.0.0 &#8211; all hosts can.<br \/>\n-bmanagement &#8211; hosts what can connect to admin console. 0.0.0.0 &#8211; all hosts can.<\/p>\n<p>You can specify config file for wildfly server. By default app server starting with standalone.xml config:<br \/>\n$ standalone.sh -c standalone-full.xml -b=0.0.0.0 -bmanagement=0.0.0.0<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Distributives:<\/p>\n<p> Centos &#8211; 6.7 (http:\/\/centos.org\/modules\/tinycontent\/index.php?id=15) WildFly &#8211; 8.2 (http:\/\/wildfly.org\/downloads\/) jdk 8 (http:\/\/java.sun.com) Before Install: # sed -i.bkp -e &#8220;s\/SELINUX=enforcing\/SELINUX=disabled\/g&#8221; \/etc\/selinux\/config # sed -i.bkp -e &#8220;s\/timeout=5\/timeout=0\/g&#8221; \/boot\/grub\/grub.conf # service iptables stop # chkconfig iptables off # reboot JDK8 Installation <\/p>\n<p>http:\/\/javadev.org\/java_basics\/installation\/jdk\/8\/linux\/centos\/6\/x86_x64\/<\/p>\n<p> Add User and Groups $ groupadd -g 1001 wildfly_admins $ useradd \\ -g wildfly_admins \\ -d [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5433"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5433"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5433\/revisions"}],"predecessor-version":[{"id":5434,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5433\/revisions\/5434"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}