This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| jboss_centos7 [2015/07/07 13:09] – created herwarth | jboss_centos7 [2015/07/07 19:09] (current) – herwarth | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| =====Installation===== | =====Installation===== | ||
| - | | + | ====CentOS packages==== |
| + | | ||
| + | ====Unzip JBoss EAP==== | ||
| mkdir / | mkdir / | ||
| cd / | cd / | ||
| unzip / | unzip / | ||
| ln -s jboss-eap-6.4 jboss-eap | ln -s jboss-eap-6.4 jboss-eap | ||
| + | ====Create application user==== | ||
| useradd -r -d / | useradd -r -d / | ||
| chown jboss. / | chown jboss. / | ||
| chown -R jboss. / | chown -R jboss. / | ||
| - | + | =====Configuration===== | |
| - | su - jboss | + | ====jboss homedir and path==== |
| - | cp / | + | |
| < | < | ||
| + | su - jboss | ||
| + | cp / | ||
| cat << EOF >> .bash_profile | cat << EOF >> .bash_profile | ||
| # EAP | # EAP | ||
| Line 27: | Line 29: | ||
| exit | exit | ||
| </ | </ | ||
| + | ====Configuration of the daemon==== | ||
| + | < | ||
| + | mkdir / | ||
| + | cat > / | ||
| + | ## Process user | ||
| + | JBOSS_USER=jboss | ||
| + | ## Waiting time for returning control to SHELL, it depends upon how many applications/ | ||
| + | STARTUP_WAIT=30 | ||
| + | ## Waiting time for returning control to SHELL, it depends upon how many applications/ | ||
| + | SHUTDOWN_WAIT=30 | ||
| + | ## Log directory and file. | ||
| + | JBOSS_CONSOLE_LOG=/ | ||
| + | ## JBoss EAP home directory | ||
| + | JBOSS_HOME=/ | ||
| + | EOF | ||
| + | </ | ||
| + | ====Daemon directories needed to run==== | ||
| + | < | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | chown -R jboss. / | ||
| + | chown -R jboss. / | ||
| + | </ | ||
| + | ====Systemd service==== | ||
| + | < | ||
| + | cat > / | ||
| + | [Unit] | ||
| + | Description=Jboss Application Server | ||
| + | After=syslog.target network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | ExecStart=/ | ||
| + | ExecStop=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | EOF | ||
| + | </ | ||
| + | < | ||
| + | systemctl daemon-reload | ||
| + | systemctl start jboss-as-standalone.service | ||
| + | systemctl status jboss-as-standalone.service | ||
| + | systemctl enable jboss-as-standalone.service | ||
| + | </ | ||
| + | ====Firewalld==== | ||
| + | < | ||
| + | cat > / | ||
| + | <?xml version=" | ||
| + | <service version=" | ||
| + | < | ||
| + | <port port=" | ||
| + | <port port=" | ||
| + | <port port=" | ||
| + | <port port=" | ||
| + | <port port=" | ||
| + | <port port=" | ||
| + | </ | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | firewall-cmd --permanent --zone=management --add-service=jboss-as-standalone | ||
| + | firewall-cmd --permanent --zone=local --add-service=jboss-as-standalone | ||
| + | firewall-cmd --reload | ||
| + | |||
| + | ====Enable remote IP access==== | ||
| + | vi / | ||
| + | < | ||
| + | . | ||
| + | . | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | . | ||
| + | . | ||
| + | </ | ||
| + | ====Enable IPv6==== | ||
| + | < | ||
| + | cat >> / | ||
| + | # Enable IPv6 | ||
| + | JAVA_OPTS=" | ||
| + | EOF | ||
| + | </ | ||
| + | ====Create admin user==== | ||
| + | Edit add-user.properties to allow weaker passwords | ||
| + | < | ||
| + | su - jboss | ||
| + | cd jboss-as-eap/ | ||
| + | ./ | ||
| + | </ | ||
| + | ====Enable SSL==== | ||
| + | First create a keystore: | ||
| + | su - jboss | ||
| + | keytool -genkey -alias localhost -keyalg RSA -keystore localhost.keystore -validity 3650 | ||
| + | |||
| + | vi / | ||
| + | < | ||
| + | . | ||
| + | . | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <ssl name=" | ||
| + | </ | ||
| + | . | ||
| + | . | ||
| + | </ | ||
| + | {{tag> | ||