WebSphere: differenze tra le versioni

Da GazziNet.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(13 versioni intermedie di uno stesso utente non sono mostrate)
Riga 14: Riga 14:
* Firewall configurato per consentire le porte necessarie (default: '''9060, 9043, 9080, 9443''')
* Firewall configurato per consentire le porte necessarie (default: '''9060, 9043, 9080, 9443''')
* Utente con privilegi di root
* Utente con privilegi di root
<pre>
dnf install glibc -y
dnf install libstdc++ -y (Attenzione su Oracle linux usare: sudo dnf install -y oracle-database-preinstall-19c)
dnf install unzip -y
dnf install xauth -y
dnf install -y gtk3 gtk2 libXtst libXrender libX11 \
    libXScrnSaver libxcb libXau libXdmcp alsa-lib \
    mesa-libGL mesa-libEGL fontconfig xorg-x11-fonts-Type1
reboot
</pre>


=== Installazione di IBM Installation Manager ===
=== Installazione di IBM Installation Manager ===
==== Estrarre e installare Installation Manager ====
==== Estrarre e installare Installation Manager ====
<pre>
<pre>
mkdir -p /opt/IBM/InstallationManager
mkdir -p /opt/IBM/WebSphere/Repository
unzip agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d /opt/IBM/InstallationManager
unzip agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d /opt/IBM/InstallationManager
cd /opt/IBM/InstallationManager
cd /opt/IBM/InstallationManager
Riga 24: Riga 43:


Verifica l'installazione:
Verifica l'installazione:
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages
/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages
</syntaxhighlight>


=== Installazione di WebSphere 9 ND ===
Esempio di output: "com.ibm.cic.agent_1.10.1000.20241118_1329"
==== Estrarre i file di WebSphere ====
<syntaxhighlight lang="bash">
unzip was.repo.90501.nd.zip -d /opt/IBM/WebSphere/Repository
</syntaxhighlight>


==== Installare WebSphere con Installation Manager ====
</pre>
<syntaxhighlight lang="bash">
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.ND.v90_9.0.5.1 \
  -repositories /opt/IBM/WebSphere/Repository \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -sharedResourcesDirectory /opt/IBM/WebSphere/Shared \
  -acceptLicense
</syntaxhighlight>
 
Verifica l'installazione:
<syntaxhighlight lang="bash">
/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh
</syntaxhighlight>


=== Installazione del Java SDK ===
=== Installazione del Java SDK ===
==== Estrarre i file SDK ====
==== Estrarre i file SDK ====
<syntaxhighlight lang="bash">
<pre>
unzip sdk-8.0-5.35-all-prt1-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt1-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt2-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt2-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt3-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt3-installmgr.zip -d /opt/IBM/WebSphere/SDK
</syntaxhighlight>
</pre>


==== Installare il Java SDK ====
==== Installare il Java SDK ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8 \
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8 \
   -repositories /opt/IBM/WebSphere/SDK \
   -repositories /opt/IBM/WebSphere/SDK \
   -installationDirectory /opt/IBM/WebSphere/AppServer \
   -installationDirectory /opt/IBM/WebSphere/AppServer \
   -acceptLicense
   -acceptLicense
</syntaxhighlight>
</pre>
 
=== Installazione di WebSphere 9 ND ===
==== Estrarre i file di WebSphere ====
<pre>
 
unzip was.repo.90501.nd.zip -d /opt/IBM/WebSphere/Repository
 
</pre>
 
==== Installare WebSphere con Installation Manager ====
<pre>
/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.ND.v90 \
  -repositories /opt/IBM/WebSphere/Repository \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -sharedResourcesDirectory /opt/IBM/WebSphere/Shared \
  -acceptLicense
</pre>
 
Verifica l'installazione:
<pre>
/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh
</pre>


=== Creazione e Configurazione del Deployment Manager ===
=== Creazione e Configurazione del Deployment Manager ===
==== Creare il profilo del Deployment Manager ====
==== Creare il profilo del Deployment Manager ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
   -profileName Dmgr01 \
   -profileName Dmgr01 \
Riga 74: Riga 98:
   -nodeName ManagerNode \
   -nodeName ManagerNode \
   -hostName dmgr.example.com
   -hostName dmgr.example.com
</syntaxhighlight>
</pre>


==== Avvio del Deployment Manager ====
==== Avvio del Deployment Manager ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh
</syntaxhighlight>
</pre>


=== Creazione e Configurazione dei Server Primario e Secondario ===
=== Creazione e Configurazione dei Server Primario e Secondario ===
==== Creare il profilo del Server Primario ====
==== Creare il profilo del Server Primario ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
   -profileName PrimaryServerProfile \
   -profileName PrimaryServerProfile \
Riga 91: Riga 115:
   -nodeName PrimaryNode \
   -nodeName PrimaryNode \
   -hostName primary.example.com
   -hostName primary.example.com
</syntaxhighlight>
</pre>


Avvia il server:
Avvia il server:
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/profiles/PrimaryServer/bin/startServer.sh server1
/opt/IBM/WebSphere/AppServer/profiles/PrimaryServer/bin/startServer.sh server1
</syntaxhighlight>
</pre>


==== Creare il profilo del Server Secondario ====
==== Creare il profilo del Server Secondario ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
   -profileName SecondaryServerProfile \
   -profileName SecondaryServerProfile \
Riga 107: Riga 131:
   -nodeName SecondaryNode \
   -nodeName SecondaryNode \
   -hostName secondary.example.com
   -hostName secondary.example.com
</syntaxhighlight>
</pre>


==== Federare il nodo secondario ====
==== Federare il nodo secondario ====
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/addNode.sh primary.example.com 8879 -username admin -password password
/opt/IBM/WebSphere/AppServer/bin/addNode.sh primary.example.com 8879 -username admin -password password
</syntaxhighlight>
</pre>


Verifica la federazione:
Verifica la federazione:
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -conntype SOAP -host primary.example.com -port 8879 -username admin -password password
/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -conntype SOAP -host primary.example.com -port 8879 -username admin -password password
</syntaxhighlight>
</pre>


=== Configurazione della Console di Amministrazione ===
=== Configurazione della Console di Amministrazione ===
Riga 126: Riga 150:
=== Verifica dello Stato del Server ===
=== Verifica dello Stato del Server ===
Per controllare lo stato di tutti i server:
Per controllare lo stato di tutti i server:
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/serverStatus.sh -all
/opt/IBM/WebSphere/AppServer/bin/serverStatus.sh -all
</syntaxhighlight>
</pre>


Per riavviare il server primario:
Per riavviare il server primario:
<syntaxhighlight lang="bash">
<pre>
/opt/IBM/WebSphere/AppServer/bin/stopServer.sh server1
/opt/IBM/WebSphere/AppServer/bin/stopServer.sh server1
/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1
/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1
</syntaxhighlight>
</pre>


=== Conclusioni ===
=== Conclusioni ===
Con questa guida, hai configurato con successo un ambiente WebSphere 9 con un server primario e un server secondario. Assicurati di eseguire periodici backup delle configurazioni e monitorare lo stato dei servizi per garantire un funzionamento ottimale.
Con questa guida, hai configurato con successo un ambiente WebSphere 9 con un server primario e un server secondario. Assicurati di eseguire periodici backup delle configurazioni e monitorare lo stato dei servizi per garantire un funzionamento ottimale.

Versione attuale delle 13:47, 28 feb 2025

Guida all'Installazione di IBM WebSphere 9 con Server Primario e Secondario

Prerequisiti

Requisiti Hardware

  • CPU: Minimo 2 vCPU per nodo
  • RAM: Almeno 8 GB di memoria per nodo
  • Storage: Minimo 50 GB disponibili per nodo
  • Rete: Connettività stabile tra i server primario e secondario

Requisiti Software

  • Sistema operativo: Oracle Linux 8/9 o Red Hat Enterprise Linux 8/9
  • Pacchetti richiesti: glibc, libstdc++, compat-libstdc++, unzip
  • Firewall configurato per consentire le porte necessarie (default: 9060, 9043, 9080, 9443)
  • Utente con privilegi di root
 dnf install glibc -y
 dnf install libstdc++ -y (Attenzione su Oracle linux usare: sudo dnf install -y oracle-database-preinstall-19c)
 dnf install unzip -y
 dnf install xauth -y

 dnf install -y gtk3 gtk2 libXtst libXrender libX11 \
    libXScrnSaver libxcb libXau libXdmcp alsa-lib \
    mesa-libGL mesa-libEGL fontconfig xorg-x11-fonts-Type1


 reboot

Installazione di IBM Installation Manager

Estrarre e installare Installation Manager

mkdir -p /opt/IBM/InstallationManager
mkdir -p /opt/IBM/WebSphere/Repository


unzip agent.installer.linux.gtk.x86_64_1.10.1000.20241118_1329.zip -d /opt/IBM/InstallationManager
cd /opt/IBM/InstallationManager
./install

Verifica l'installazione:

/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages

Esempio di output: "com.ibm.cic.agent_1.10.1000.20241118_1329"

Installazione del Java SDK

Estrarre i file SDK

unzip sdk-8.0-5.35-all-prt1-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt2-installmgr.zip -d /opt/IBM/WebSphere/SDK
unzip sdk-8.0-5.35-all-prt3-installmgr.zip -d /opt/IBM/WebSphere/SDK

Installare il Java SDK

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.java.jdk.v8 \
  -repositories /opt/IBM/WebSphere/SDK \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -acceptLicense

Installazione di WebSphere 9 ND

Estrarre i file di WebSphere


unzip was.repo.90501.nd.zip -d /opt/IBM/WebSphere/Repository

Installare WebSphere con Installation Manager

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.ND.v90 \
  -repositories /opt/IBM/WebSphere/Repository \
  -installationDirectory /opt/IBM/WebSphere/AppServer \
  -sharedResourcesDirectory /opt/IBM/WebSphere/Shared \
  -acceptLicense

Verifica l'installazione:

/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh

Creazione e Configurazione del Deployment Manager

Creare il profilo del Deployment Manager

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
  -profileName Dmgr01 \
  -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \
  -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/management \
  -cellName PrimaryCell \
  -nodeName ManagerNode \
  -hostName dmgr.example.com

Avvio del Deployment Manager

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh

Creazione e Configurazione dei Server Primario e Secondario

Creare il profilo del Server Primario

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
  -profileName PrimaryServerProfile \
  -profilePath /opt/IBM/WebSphere/AppServer/profiles/PrimaryServer \
  -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
  -cellName PrimaryCell \
  -nodeName PrimaryNode \
  -hostName primary.example.com

Avvia il server:

/opt/IBM/WebSphere/AppServer/profiles/PrimaryServer/bin/startServer.sh server1

Creare il profilo del Server Secondario

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \
  -profileName SecondaryServerProfile \
  -profilePath /opt/IBM/WebSphere/AppServer/profiles/SecondaryServer \
  -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \
  -cellName PrimaryCell \
  -nodeName SecondaryNode \
  -hostName secondary.example.com

Federare il nodo secondario

/opt/IBM/WebSphere/AppServer/bin/addNode.sh primary.example.com 8879 -username admin -password password

Verifica la federazione:

/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -conntype SOAP -host primary.example.com -port 8879 -username admin -password password

Configurazione della Console di Amministrazione

Accedi alla console di amministrazione via browser: https://primary.example.com:9043/ibm/console Accedi con le credenziali amministrative.

Verifica dello Stato del Server

Per controllare lo stato di tutti i server:

/opt/IBM/WebSphere/AppServer/bin/serverStatus.sh -all

Per riavviare il server primario:

/opt/IBM/WebSphere/AppServer/bin/stopServer.sh server1
/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1

Conclusioni

Con questa guida, hai configurato con successo un ambiente WebSphere 9 con un server primario e un server secondario. Assicurati di eseguire periodici backup delle configurazioni e monitorare lo stato dei servizi per garantire un funzionamento ottimale.