Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Obsah

...

Installation on Windows OS

...

Installation of JRE 1.8

SmartWeb platforma je implementovaná v Java EE a preto potrebuje na svoj beh aj nainštalovane a nakonfigurované Java Runtime Environment verzie 8.

Postup inštalácie je nasledovný:

The SmartWeb platform is implemented in the Java EE, that is why it needs for its running also installed and configured Java Runtime Environment version 8.

Installation steps are the following:

  1. Downloading and installing the newest JRE 1.8 from Stiahnuť a nainštalovať najnovšie JRE 1.8 z oracle.com.
  2. Nastaviť systémovú environment premennú Setting of the system environment variable JAVA_HOME na root adresár kde bola JRE nainštalovaná.to root directory where the JRE was installed.
  3. For the use of stronger cipher suites in the HTTPS protocol, it is necessary to download the Pre použitie silných šifier v HTTPS protokole je potrebné stiahnuť Java Cryptography Extension (JCE) súbory a prekopírovať ich do  files and copy them to the lib/security adresára JRE. Ak nie je potrebné konfigurovať HTTPS protokol tento krok je možné vynechať.

Inštalácia Wildfly AS a SmartWeb aplikácie

Postup pri inštalácii aplikačného servera Wildfly je je nasledovný:

  1. directory of JRE. It is possible to skip this step if it is not necessary to configure the HTTPS protocol.

Installation of Wildfly AS and the SmartWeb Application

Installation steps for the Wildfly application server are the following: 

  1. Unpacking installation files - in the installation directory Rozbaliť inštalačné súbory v inštalačnom adresári D2000 - D2000_EXE/web sa nachádzajú zazipované inštalačné súbory aplikačného servera , there are zip installation files of the application server Wildfly (wildfly.zip) ako aj and also Java EE aplikácie applications SmartWeb (smartweb.zip) a tutorial javascriptovej aplikácie and tutorial of the Javascript application (tutorial-application.zip). Všetky tieto archívy je potrebné rozpakovať do toho istého adresára.It is necessary to unzip all these archives into the same directory. 
  2. Installing the application server Wildfly - by running installation script Nainštalovať aplikačný server Wildfly spustením inštalačného skriptu D2000_EXE/web/installWildfly.bat sa automaticky nainštaluje aplikačný server ako Windows Service s menom, the application server is automatically installed as Windows Service with the nameD2000 SmartWeb.
  3. Nainštalovať Installing the SmartWeb Java EE aplikáciu spustením inštalačného skriptu application - by running installation script D2000_EXE/web/installSmartWeb.bat sa automaticky deployne (nakopíruje) SmartWeb aplikácia aj s preddefinovanou konfiguráciou javacriptovej tutorial aplikácie na aplikačný server., the SmartWeb application is automatically deployed also with the predefined configuration of the Javascript tutorial application to an application server.
  4. Importing to D2000 - the process SELF.DCS with the basic configuration D2Connector and a configuration of objects for Javascript tutorial application from Naimportovať do D2000 proces SELF.DCS so základnou konfiguráciou D2Connectora a konfiguráciu objektov pre javascriptovu tutorial aplikáciu z adresára D2000_EXE/web/install_files/D2000D2000 directory.  
  5. Spustiť Running of SELF.DCS (D2Connector) a aplikačný and the application server Wildfly (cez through the service.exe aplikáciuapplication)
  6. Otvoriť tutorial aplikáciu v prehliadači napr. adrese Opening of the tutorial application in a browser - for example http://localhost:8080/smartWeb.

Kotva
install_linux
install_linux

...

Installation on Linux OS (Ubuntu)

...

Installation of JRE 1.8

SmartWeb platforma je implementovaná v Java EE a preto potrebuje na svoj beh aj nainštalovane a nakonfigurované Java Runtime Environment verzie 8. Na linuxe sa inštaluje príkazmi cez package manager pod root používateľom. Pre Ubuntu distribúciu sú príkazy nasledovné :The SmartWeb platform is implemented in the Java EE, and that is why it needs for its running installed and configured Java Runtime Environment version 8. On Linux, we can install by the commands through package manager under the root user. For the Ubuntu distribution, the commands are the following: 

Blok kódu
languagebash
add-apt-repository ppa:webupd8team/java # linking nalinkovanierepositories repozitárawith sthe java balíčkamipackages
apt-get update
apt-get install oracle-java8-set-default

Pre použitie silných šifier v HTTPS protokole je potrebné nainštalovať aj For the use of stronger cipher suites in the HTTPS protocol, it is necessary to download the Java Cryptography Extension (JCE) rozšírenie nasledovným príkazom extension by the following command:

Blok kódu
languagebash
apt install oracle-java8-unlimited-jce-policy 

...

Installation of Wildfly AS

...

and the SmartWeb

...

Postup pri inštalácii aplikačného servera Wildfly je je nasledovný:

Application

Installation steps for the Wildfly application server are the following: 

  1. Unpacking installation files -  in the installation directory Rozbaliť inštalačné súbory v inštalačnom adresári /opt/D2000/web (alebo v inom, závisí od miesta inštalácie D2000, resp. nakopírovania adresára web).  V tomto adresári sa nachádzajú zazipované inštalačné súbory aplikačného servera or in another directory, it depends on the place of D2000 installation or else copying of the web directory). In this directory, there are zip installation files of the application server Wildfly (wildfly.zip) ako aj and also Java EE aplikácie applications SmartWeb (smartweb.zip) a tutorial javascriptovej aplikácie and tutorial of the Javascript application (tutorial-application.zip). Všetky tieto archívy je potrebné rozpakovať do toho istého adresára, napríklad príkazom:It is necessary to unzip all these archives into the same directory, for example by this command: 

    Blok kódu
    languagebash
    cd /opt/D2000/web
    unzip *.zip -d .


  2. Vytvoriť používateľa wildfly. Kvôli bezpečnosti je vhodné aby Wildfly na Linuxe bežal pod samostatným používateľom ktorého je potrebné najskôr vytvoriť. V nasledujúcom skripte vytvoríme groupu a používateľa wildfly, a priradíme ho ako ownera adresára Creating of the user wildfly - for security reasons, it is convenient for Wildfly to run on Linux under an independent user that needs to be first created. In the following script, we create a group and the user wildfly, and we assign the user as an owner of the directory /opt/D2000/web.



Blok kódu
languagebash
groupadd -r wildfly
useradd -r -g wildfly -d /opt/D2000/web -s /sbin/nologin wildfly.
chown -R wildfly:wildfly /opt/D2000/web

...


3. Installing the application server Wildfly -  by running the installation script /opt/D2000/web/installWildfly.sh

...

with parameters with one-word service identifier (for example DEMO) and a port offset (moving ports for the case if more application servers are running on a server). Running of the script is possible in the following manner:


Blok kódu
languagebash
cd /opt/D2000/web
chmod +x *.sh
./installWildfly.sh DEMO 0

...

4. Installing the SmartWeb Java EE

...

application - by running installation script /opt/D2000/web/installSmartWeb.sh

...

, the SmartWeb application is automatically deployed also with the predefined configuration of the Javascript tutorial application to an application server. 

5. Importing to D2000 -  the process SELF.DCS with the basic configuration D2Connector and a configuration of objects for Javascript tutorial application from D2000_EXE

...

/web/install_files/

...

D2000 directory. 

...

6. Running of SELF.DCS (D2Connector)

...

 and the application server Wildfly

...

 by the command:


Blok kódu
languagebash
systemctl start wildfly-DEMO

...

7. Opening of the tutorial application in a browser - for example the address:  http://localhost:8080/smartWeb.

...

The use of ports 80/443

...

for the Wildfly server

...

on Linux

The general difference between configuration on Linux and Windows is that on Linux, the process of the application server cannot occupy directly ports  Všeobecný rozdiel medzi konfiguráciou Wildfly na Linuxe a Windows je ten že na Linuxe nemôže process aplikačného servera obsadiť priamo porty 80/443 (HTTP/HTTPS) kvoli for security. Rieši sa to presmerovaním default portov It is solved by redirecting default ports 8080/8443 cez IPTABLES nasledovnethrough IPTABLES in the following manner:

Blok kódu
languagebash
Iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 80 -j REDIRECT --to-port 8080
Iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 443 -j REDIRECT --to-port 8443

...